----<snip>----Message: 14 Date: Tue, 25 Feb 2003 02:21:33 +0000 From: [EMAIL PROTECTED] Subject: Re: [Mjpeg-users] Need help with script To: [EMAIL PROTECTED]
Here is my edited script I changed it so the audio and video use fifo's to get rid of tmp files. I also changed
mkfifo stream.wav mplayer recording.avi -ao pcm -aofile stream.wav -vc null -vo null </dev/null & cat stream.wav | mp2enc -v 2 -b 96 -o sound.mp2 ## Convert audio to mp2
mkfifo stream.yuv mplayer -nosound -vo yuv4mpeg recording.avi -vop lavcdeint </dev/null & mpeg2enc -o video.m2v -B 122 -f 4 -q 10 -I 0 -V 230 -n n -F 4 -r 32 -4 1 -2 1 -b 2430 stream.yuv --correct-svcd-hds --aspect 2 ## Convert video to svcd
Mplayer is a great tool for dealing with damaged streams, but I found if I seperate the audio and video decode process, the audio can get out of sync. So, I combined the audio and video steps by using two fifos and placing the audio encoder in the background, see example:
mkfifo stream.wav mkfifo stream.yuv
mplayer recording.avi -vo yuv4mpeg -ao pcm -aofile stream.wav </dev/null &
mp2enc -v 2 -b 96 -o sound.mp2 < stream.wav &
mpeg2enc -o video.m2v <ADD OPTIONS>
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users