>>1216523To convert the GIF, run ffmpeg with these parameters:
> Loop the GIF 3 times-stream_loop 3
> Input file-i animation.gif
> Video codec (VP8)-c:v libvpx
> Video quality (4-63) 4 is best-crf 4
> Max bitrate. Tweak it to get desired size-b:v 1500K
> To make sure there is no transparency, convert the colorspace-pix_fmt yuv420p
> Output fileno_audio.webm
And to add audio, run it with these:
> Video input file-i no_audio.webm
> Audio input file-i audio.mp3
> Video codec (don't re-encode)-c:v copy
> Audio codec (vorbis)-c:a libvorbis
> Audio bitrate-b:a 128K
> To cut the audio or video to whichever is shortest-shortest
> Output fileoutput.webm