Example to create animation movie by ffmpeg
Animated gif is an de-facto standard format to embed animation in the web, however, it can handle just 256 colors(!), and compression rate is not so good.
This repository describe how to create animation movies from stil pictures with ffmpeg.
out.mp4 is the result example.
Here is an input:
file '1.jpeg' duration 1 file '2.jpeg' duration 0.25 file '3.jpeg' duration 0.25 file '4.jpeg' duration 0.25 file '5.jpeg' duration 3 file '5.jpeg'
duration 0.25 means "0.25sec".
note that last
file '5.jpeg' appears twice to display 5.jpeg 3 sec in last.
ffmpeg -f concat -i input.txt -vf "scale=-1:1024" -vcodec libx264 -pix_fmt yuv420p -r 30 out.mp4
You can see also in here.
Licensed under CC-BY-SA 4.0.