On Fri, 26 Nov 2004, A. Lanza wrote:
Hi list,
i have some avi files (divx, xvid, etc.) arround 730 MB. in size. What i would like is to convert each one of these files into VCD or SVCD format, so i can watch it on TV through my home DVD player. Also, i would like to convert/compress it in a way that it fits in a single CD, if possible.
Many new set-top DVD players can already play DivX/XVid from CD-R.
I would recommend using MPlayer to decode the AVI to the native video format of mjpegtools, like so:
mplayer youravi.avi -vf-add pp=hb/vb/dr -vo yuv4mpeg -ao null -noframedrop
This will dump the video to a file called stream.yuv. The '-vf-add pp=hb/vb/dr' is useful for suppressing compression artifacts in the avi file. Even if the avi file is high quality, using this option will allow mpeg2enc to do a *much* better job.
After that, you can just pipe the stream.yuv file into any mjpeg tool you want:
cat stream.yuv | yuvscaler ... | mpeg2enc ...
The stream.yuv will be HUGE, so you might want create a named pipe:
mkfifo stream.yuv
and run mplayer and the 'cat stream.yuv ...' command at the same time. MPlayer will write into the stream.yuv pipe while the mjpeg tools will read from it.
You will also need to use MPlayer to dump the sound stream to a PCM wave file. You can use mp2enc to encode it to mp2 and multiplex it with the mpeg2 stream.
I'd appreciate your ideas and help,
You're welcome.
Dik
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users