Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save viniciusCamargo/bfd48f3861d1cbbc432a231c74c431a1 to your computer and use it in GitHub Desktop.
Save viniciusCamargo/bfd48f3861d1cbbc432a231c74c431a1 to your computer and use it in GitHub Desktop.
ffmpeg hq gif
ffmpeg -i input.mov -vf fps=15,scale=600:-1:flags=lanczos,palettegen palette.png
ffmpeg -i input.mov -i palette.png -filter_complex "\
fps=15,scale=600:-1:flags=lanczos[x];\
[x][1:v]paletteuse output.gif
@viniciusCamargo
Copy link
Author

ffmpeg -ss 00:00:43 -i input.mp4 -t 00:00:08 -c copy output.mp4
[inicio] [duracao]

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