[MPlayer-users] convert *.avi to vcd/scvd

sting sting zstingx at hotmail.com
Sun Oct 5 17:34:14 CEST 2003


Hello,
What is the way , using mplayer libs , to convert *.avi files to
vcd/scvd ?

I saw on the net  a script like this :

#! /bin/sh
mkfifo stream.yuv
mplayer -nofs -nosound -vo yuv4mpeg -ni -quiet -fps 24 $1 </dev/null &
cat stream.yuv | yuvscaler -n n -O VCD -M BICUBIC -M WIDE2VCD -v 0 | \
    mpeg2enc -n n -f 1 -a 1 -F 2 -4 1 -2 1 -r 16 -S 768 -B 224  \
    -o video.m1v
mplayer -nofs -vo null -ao pcm -waveheader -ni $1
mv audiodump.wav audio.wav
sox -t wav -r 42336 audio.wav -t wav -r 44100 /dev/stdout | toolame -p 2 -b 
224 /dev/stdin audio.mp2
mplex -f 1 audio.mp2 video.m1v -o myvcd%d.mpg
rm -f audio.mp2 video.m1v stream.yuv audio.wav


but I had errors using it (the video.m1v file created was damaged, as I 
understand (it was to short)
so I could nor go on.

Is it the correct way ?
regards,
sting

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



More information about the MPlayer-users mailing list