![]() Looking forward to it!Į: usage is 'gifenc input-movie output. That's also why i start T at 11 btw, i makes better quality for clips which should use less but increases the filesize very much! When it works out however gifsicle shaves off only a couple of bytes (which i guess is the description of imagemagick, i should remove that also). ![]() When i use this for small clips it's excellent but the longer they get the more the dither pattern is noticable. We get a little bit of colour banding, but I think that’s acceptable. It would indeed be very nice if that could be done in one step and even take it further by using local palette on a scene change (although that messes up frame/transparency optimization i think). For our longer gifs, this method cut our file size down by about 40. Before 18. The idea is from the imagemagick gif video optimization wiki. sudo apt-get install ffmpeg ffmpeg -i in.mp4 out.gif also works, but the output GIF would be way larger than the input video, because video formats can compress more efficiently across frames with advanced algorithms, while GIF can only does a simple rectangular frame diff. T is the parameter used for searching the maximum of colors which i don't know how to get otherwise but to loop over it multiple times to see how many colors the dithering uses. The most basic form of the command to create a video from images using FFmpeg is as follows: ffmpeg -framerate 10 -i filename-03d.jpg output.mp4 If the -framerate parameter is not provided, FFmpeg selects the default rate of 25 fps. What you point out is what my imagemagick script does i think (i don't have these options in ffmpeg yet though) % sed 's/^/ /g' /home/balkenbrij/bin/gifencįfmpeg -ss $3 -t $4 -i "$1" -an -y -vf scale=512:-1:flags=lanczos,fps=12.5 /tmp/gifenc/%03d.png >/dev/null 2>&1Ĭ=$(convert -quiet /tmp/gifenc/*png -ordered-dither o8x8,$T -append -format %k info:)Ĭonvert -quiet /tmp/gifenc/*png -delay 8 -loop 0 -ordered-dither o8x8,$T -layers RemoveDups -layers OptimizePlus -layers OptimizeTransparency +map $2 I'm stupid, the first example uses transparency optimization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |