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
@okhaimie-dev
Copy link

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

tried this in May 2025 and it works

@Q-V-91
Copy link

Q-V-91 commented Jul 21, 2025

Hi, it works nicely but, do we have a way to retain the alpha channel from the .mov ? the terminal says this :
alpha is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. i wonder if it's already supported and i didn't put the right command into the line you provided ?

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