Tue Apr 13 15:12:09 EDT 2010
wav + jpeg -> dvd
Creating a movie files with a single image and an audio track. There
are several ways to do that; all of them a bit messy. The
ffmpeg/mencoder tool combo is quite powerful, put a pain to figure
* Using mencoder (info from ):
Use two copies of the same picture. Name them pic1.jpg and
pic2.jpg. Then enter the following:
mencoder "mf://pic*.jpg" -mf fps=0.1 -ovc x264 -o movie.avi
The reason why we are using two frames here is because movie players
will treat 1-frame movies different. A 1-frame movie in mplayer will
have zero duration, i.e. the player window will close
immediately. Since we don't know how Youtube will treat them while
transcoding to Flash video format, it's better to use at least 2
frames just to be on the safe side.
Adapted from , with 2 image files, this also worked:
mencoder -ovc lavc -mf fps=.1:type=jpg 'mf://*.jpg' -o test.avi
The problem however seems to be to "duplicate" the frames, which I
think is necessary for DVD.
* Using ImageMagick:
convert -delay 10 *.jpg m2v:time_lapse-test.mpg
* Using KIPI. The KDE Image Plugin Interface contains command line
scrips to create videos from images + allows to add sound tracks.
images2mpg -f SVCD -S 420mpeg2 -d 2 -t 2 -w ~/Music/mytune.wav -o car.mpg -i *.jpg
* Using ffmpeg:
From one of the comments on : use "-loop_input". This worked:
ffmpeg -loop_input -f image2 -i img_0156.jpg test.mpg
However, when combined with an audio file it doesn't stop.
I'm thinking that the easiest way to do this is to just generate a
directory full of links to a single jpeg file, based on the length
of the wav and the frame rate.