lafoundation.blogg.se

Ffmpeg gif loop
Ffmpeg gif loop






The following arguments fix the looping issue, but screw up the colors (in VLC it looks fine, but when Google Chrome plays the WEBM a greenish hue is visible, as if it's only displaying one of the YUV channels): ffmpeg -i in.gif -c:v libvpx-vp9 -b:v 10M -crf 0 -filter_complex " scale=-1:-1:flags=lanczos,split palettegen=reserve_transparent=on:transparency_color=000000 paletteuse" out.webm

ffmpeg gif loop

I am using the following arguments to convert the GIFs to WEBMs (note: although the CRF/bitrate are set very high, yet the resulting file sizes are still way smaller): ffmpeg -i in.gif -c:v libvpx-vp9 -b:v 10M -crf 0 out.webm -yĪfter some experimentation, I think the problematic GIF files are utilizing tricks to give the illusion of seamless looping, such as transparency. However, there are some GIF images that do not seamlessly loop after being converted, almost as if some frames are cut from the output. A majority of these GIFs convert with no problem, and the resulting WEBM files are seamless as well.

ffmpeg gif loop

I have a collection of seamlessly-looping GIF images that I am trying to convert to VP9(WEBM) to cut down on filesize.








Ffmpeg gif loop