On Fri, 18 Apr 2008 22:13:57 +1200, Lee Begg <[EMAIL PROTECTED]> wrote: > On Fri, 18 Apr 2008, Barry wrote: >> Sorry, I did not explain what I want to do very well.... >> >> I have some short avi clips which I have combined/modified and put on a >> vcd. >> >> I now wish to start the process again but insert into the movie some >> jpeg images as well as the avi files. >> >> How do I convert the jpg files and set the period for which they are >> displayed in the movie? > > mjpegtools has the tools you need. > > Basically, you convert the correct size jpg to pnm, then feed it into > ppmtoy4m, then mpeg2enc to encode it to the correct format, then use mplex > to > multiplex sound (or silence) and you have a dvd ready mpeg file. > > It is the same process for the background of a dvd menu. See > http://www.tappin.me.uk/Linux/dvd.html#menus for details. Set the -n > parameter to ppmtoy4m to the number of frames you need (ie, number of > seconds > times 25 (frames per second)). > > Use mencoder on the result if you need something other than mpeg2. > > Hope this helps > > Later > Lee
Alternatively use something like what Barry was doing, except you need to have a series of files, one for each frame. Something like take the first frame and rename it frame001.jpg Say you want 5 second view, you need 25x5=125 frames (assuming PAL frame rate). Now make 124 soft link files all pointing to frame001.jpg and consecutively numbered so you end up with: frame001.jpg frame002.jpg ... frame125.jpg That step is tedious to do by hand but of course you can script it. You now have 125 frames to feed to mencoder. Alternatively use a simple editor like avidemux to add in the 125 frames. You can also use a more sophisticated editor like kino or cinelerra to add the jpg once, and specify the number of seconds it should be inserted for. If you are wanting to add to an existing video you will first need to resize the frames to the same dimensions as the frame size in the existing video. This may involve cropping/resizing.
