FFmpeg: Difference between revisions
| Line 97: | Line 97: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Here is another script from [https://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality https://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality] | |||
{{hiddne | mp4 to gif | | |||
<syntaxhighlight lang="bash"> | |||
#!/bin/sh | |||
ffmpeg -i $1 -vf "fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $2 | |||
</syntaxhighlight> | |||
===Resizing/Scaling=== | ===Resizing/Scaling=== | ||