Advanced slide show from images - 2020
This is the continuation from Basic slide show from images.
if we want to start the slide show not from the beginning but from a specific image (i.e., from the 30th image), then we may want to use the -start_number option:
ffmpeg -r 1/5 -start_number 30 -i e%02d.png -c:v libx264 -r 30 -pix_fmt yuv420p EinsteinSlideShowFrom30th.mp4
Here is the output slide:
If weu want to create a video out of just one image Einstein_500_460.jpg, this will do:
ffmpeg -loop 1 -i Einstein_500_460.jpg -c:v libx264 -t 30 -pix_fmt yuv420p EinsteinSlideShowSingleImage.mp4
The output video duration is set to 30 seconds with -t 30:
We may want to add audio (X-Files.mp3) to one "poster" image, we need -shortest to tell it to stop after the audio stream is finished. The internal AAC encoder is used in this example, we you can use any other supported AAC encoder as well:
ffmpeg -loop 1 -i Einstein_500_460.jpg -i X-Files.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 16k -shortest EinsteinXFilesTheme.mp4
Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization