So far so good. I can take a directory of JPEGs and AVIs from my digital 
camera(s), and make them into a(n) (S)VCD compatable movie. 

Only one slight problem, though. I am certain MJPEG tools have done an 
excellent job. But, as the movie progresses, there is a considerable 
difference in the synchronization of sound and video. By the end of a 'slide 
and movie show' with around 120 entries, there is about a  2 second gap 
between video and sound (ie video preceeds sound).

I think that the problem is in the way I generate and use silence. 

Below is how I use silence. But, mplayer claims that the 1s of silence (wav) 
that I had generated is only 0.9s. If that was not enough, sum.m2v = 108 
seconds (only JPEG shots). Yet, sum.wav = 110.2s. 

I would be grateful if anyone could point out my error(s). Here is the method: 
(video bits removed)

(1) generate a second of silence for the pictures:
record -c -v -i line -t 00:01 -o /vcdtemp/silence
mp2enc -r 44100 -o /vcdtemp/silence.mp2 < /vcdtemp/silence000.wav
sox /vcdtemp/silence000.wav -r44100 -c2 -b -sw /vcdtemp/silence.raw 
(2) for each JPEG:
        symbolically link a sound file for the JPEG to the raw silence file
later on, all the wav files are combined as are the yuv files. The combined 
mp2 and m2v are multiplexed into a mpeg suitable for use with vcdimager. 

(cat {f_name1}.raw ; cat {f_name2}.raw ; cat {f_nameN}.raw ;  ) > sum.raw
sox -r44100 -c2 -sw -t .raw sum.raw -t .wav sum.wav
mp2enc -V -o sum.mp2 < sum.wav




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to