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 [1]):

  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 [3], 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[2] 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 [3]: 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.

[1] http://ubuntuforums.org/archive/index.php/t-573006.html
[2] http://www.linux.com/archive/feature/136606
[3] http://www.munz.li/?p=48