Some suggestions from someone who does this a lot :)

Change the script to this:

cd /tmp
mkfifo stream.yuv
mkfifo audiodump.wav
mpeg2enc YOURFLAGSHERE -o blah.mpv < stream.yuv&
mp2enc YOURFLAGSHERE -o blah.mpa < audiodump.wav &
mplayer -benchmark -ao pcm -vo yuv4mpeg THEFILE
WAIT FOR COMPLETION OF ALL TASKS
mplex YOURFLAGSHERE -o blah.mpg blah.mpv blah.mpa

The -benchmark flag will prevent mplayer for dropping frames and just make
it take whatever time it needs to process the file.  Note that you CANNOT
redirect the output of mplayer or else it will get a SIGSTP.  If you want
to use yuvscaler or yuvfps, that's fine, too.  For VCD encoding, I usually
have my mpeg2enc command line look like this:

yuvfps -r 30000:1001 < stream.yuv | yuvscaler -O VCD -n n | mpeg2enc -f 1
-o myfile.m1v

and my mp2enc command line look like this:

mp2enc -V -o blah.mpa < audiodump.wav

and my mplex command line:

mplex -f 1 -o blah.mpg myfile.m1v blah.mpa

PLEASE NOTE - the stream.yuv and audiodump.wav files are hard-coded and
cannot be changed.

Also, I have a script called makeVCDMPEG which automates all of this to
create VCD-compatible MPEGs from any mplayer-supported file if anyone is
interested.

Jon


> cd /tmp
> mkfifo stream.yuv
> mplayer -vo yuv4mpeg bla.mov &
> mpeg2enc -o bla.m1v < stream.yuv
> ( ... this will take a while ... )
>
> HTH,
> Ronald
>
> --
> Ronald Bultje <[EMAIL PROTECTED]>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> Mjpeg-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users
>



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to