[FFmpeg-user] slideshow with crossfade
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sun Nov 5 22:38:17 EET 2017
2017-11-05 11:56 GMT+01:00 Michael Koch <astroelectronic at t-online.de>:
> I just figured out how to make a slideshow with crossfade. It's a two step
> process. The first step reads the pictures with framerate 0.5 (which means 2
> seconds for each picture), and produces an intermediate video with framerate
> 2. That means each picture is repeated 4 times. The second step applies the
> framerate filter. In the output video each picture is shown for 1.5 seconds,
> followed by a 0.5 second crossfade.
>
> ffmpeg -framerate 0.5 -i IMG_%3d.jpg -r 2 -codec:v mpeg4 temp.mp4
> ffmpeg -i temp.mp4 -vf "framerate=fps=25" -codec:v mpeg4 out.mp4
You should be able to combine the command lines using the fps filter.
Carl Eugen
More information about the ffmpeg-user
mailing list