Changes between Version 2 and Version 3 of Create a video slideshow from images
- Timestamp:
- 03/04/2013 12:08:25 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Create a video slideshow from images
v2 v3 13 13 If you want to create a video out of just one image, this will do (output video duration is set to 30 seconds): 14 14 {{{ 15 ffmpeg -loop 1 -f image2 -i img.png - vcodeclibx264 -t 30 out.mp415 ffmpeg -loop 1 -f image2 -i img.png -c:v libx264 -t 30 out.mp4 16 16 }}} 17 17 18 If you don't have images numbered and ordered in series (img001.jpg, img002.jpg, img003.jpg) but rather random bunch of images, you might try this:18 If you don't have images numbered and ordered in series (img001.jpg, img002.jpg, img003.jpg) but rather random bunch of images, ffmpeg also supports bash-style globbing - though glod wildcards (such as `?`, representing a single random character, and `*` representing any number of random characters) have to be prefixed with a `%`: 19 19 {{{ 20 cat *.jpg | ffmpeg -f image2pipe -r 1 -vcodec mjpeg -i - -vcodeclibx264 out.mp420 ffmpeg -f image2 -r 1 -i %*.jpg -c:v libx264 out.mp4 21 21 }}} 22 22 or for png images: 23 23 {{{ 24 cat *.png | ffmpeg -f image2pipe -r 1 -vcodec png -i - -vcodeclibx264 out.mp424 ffmpeg -f image2 -r 1 -i %*.png -c:v libx264 out.mp4 25 25 }}} 26 26


