Changes between Version 2 and Version 3 of Create a video slideshow from images


Ignore:
Timestamp:
Mar 4, 2013, 1:08:25 AM (4 years ago)
Author:
evilsoup
Comment:

removed the cat | pipe stuff, since ffmpeg can support globbing internally...

Legend:

Unmodified
Added
Removed
Modified
  • Create a video slideshow from images

    v2 v3  
    1313If you want to create a video out of just one image, this will do (output video duration is set to 30 seconds): 
    1414{{{ 
    15 ffmpeg -loop 1 -f image2 -i img.png -vcodec libx264 -t 30 out.mp4 
     15ffmpeg -loop 1 -f image2 -i img.png -c:v libx264 -t 30 out.mp4 
    1616}}} 
    1717 
    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: 
     18If 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 `%`: 
    1919{{{ 
    20 cat *.jpg | ffmpeg -f image2pipe -r 1 -vcodec mjpeg -i - -vcodec libx264 out.mp4 
     20ffmpeg -f image2 -r 1 -i %*.jpg -c:v libx264 out.mp4 
    2121}}} 
    2222or for png images: 
    2323{{{ 
    24 cat *.png | ffmpeg -f image2pipe -r 1 -vcodec png -i - -vcodec libx264 out.mp4 
     24ffmpeg -f image2 -r 1 -i %*.png -c:v libx264 out.mp4 
    2525}}} 
    2626