expowhe.blogg.se

Linux ffmpeg convert jpg to gif
Linux ffmpeg convert jpg to gif





You can get my test data with: wget -O opengl-rotating-triangle.zip The simplest conversion command is: ffmpeg \ Sorting numerically is quite tricky on Mac OS X though, I guess you'll need to build a custom script.Īs of Ubuntu 18.10, ffpmeg 4.0.2-2, ImageMagick 6.9.10-8, I have found that ffmpeg is much faster than ImageMagick, and uses much less memory. On ubuntu you can use ls -v instead, something like: convert -resize 768x576 -delay 20 -loop 0 `ls -v` myimage.gif $ ls|catĪs the shots were taken very quickly (10/s) they all have the same modification time and you can't trick using ls -t for example. *.jpg sucks a bit when dealing with numeric values, you may generate a gif with unsorted pics.

linux ffmpeg convert jpg to gif

Or convert -resize 768x576 -delay 20 -loop 0 *.jpg myimage.gif In my case, I have 4608x3456 images and the generated gif was more than 300M for 32 images convert -resize 20% -delay 20 -loop 0 *.jpg myimage.gif

linux ffmpeg convert jpg to gif

To complete answer: To avoid generating a very large file, you can use -resize option:







Linux ffmpeg convert jpg to gif