˜ ffmpeg -i image-%03d.png output.gif
%0Nd is used when the sequential numbers to be 0-padded and the number of digits is denoted by N, in the example above %03d demotes 3 digits, i.e. image-001.png image-002.png image-003.png etc. of course image- can vary depending on your base file name, sometimes it's just numbers.
The following will covert the first 10s of your mp4 video to a gif with a frame rate of 10fps
˜ ffmpeg -ss 00:00:00.000 -i xyz.mp4 -pix_fmt rgb24 -r 10 -t 00:00:10.000 output.gif
˜ gifsicle -i soundLetters.gif -O3 --colors 16 -o soundLetters_s.gif
˜ gifsicle -i ./c_waves.gif -O3 -d5 "#0-156" --colors 16 -o ./c_waves_sf.gif
˜ gifsicle ./d_waves_sf_a.gif ./d_waves_sf_a.gif -d5 "#309-0" > reversed.gif
˜ ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf ˜ "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
˜ movflags – This option optimizes the structure of the MP4 file so the ˜ browser can load it as quickly as possible.
˜ pix_fmt – MP4 videos store pixels in different formats. We include this ˜ option to specify a specific format which has maximum compatibility across ˜ all browsers.
˜ vf – MP4 videos using H.264 need to have a dimensions that are divisible by 2. ˜ This option ensures that’s the case.