Skip to content

Instantly share code, notes, and snippets.

@dreampiggy
Created March 6, 2017 05:31
Show Gist options
  • Save dreampiggy/52c658253de3ba22fd3dec4d3f3182ab to your computer and use it in GitHub Desktop.
Save dreampiggy/52c658253de3ba22fd3dec4d3f3182ab to your computer and use it in GitHub Desktop.
ffmpeg MOV to Animated WebP
ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 output.webp
Copy link

ghost commented May 26, 2020

@vijkmr somehow like that I guess:

ffmpeg -i video.mp4 ... -vf scale=320:240 output.webp

@vijkmr
Copy link

vijkmr commented May 26, 2020

Thanks @scpketer, i tried this and it worked

ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 -s 320:240 output.webp

@setanarut
Copy link

@ht55ght55
Copy link

-q:60 should be -q 60

@tcstory
Copy link

tcstory commented Aug 20, 2024

ffmpeg -i input.mov -loop 1 -an -vf scale=750:-2 -r 24 output.webp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment