On Sat, 14 Dec 2002, Laurent Pinchart wrote: > > I'm trying to author an SVCD or DVD from an MPEG4 avi file. > ... > I thus ended doing something like this: > > mkfifo yuvfifo > transcode -i myavifile -x ffmpeg,null -y yuv4mpeg -z -o yuvfifo & > cat yuvfifo | yuvscale -O SVCD | mpeg2enc -f 4 [...] -o mympegfile > > This seems to work, but is awfully slow (about 1.5fps on a P3 933MHz).
I don't know what kind of speed you'll see on your system, but the script below works quite nicely on my system. I usually do VCD instead of SVCD, and that goes a bit faster than realtime for me, so I'd think you'd get better than 1 fps... This script takes an AVI as input and produces one or more SVCD files as output. It presumes NTSC frame rates, and 4:3 aspect ratio, so you might want to adjust to fit your source material. ----- cut here --- #! /bin/sh mkfifo stream.yuv mplayer -nofs -nosound -vo yuv4mpeg -ni -quiet -benchmark "$1" \ </dev/null & cat stream.yuv | yuvscaler -O SVCD -v 0 | mpeg2enc -f 4 -F 4 -S 768 \ -B 224 -n n -a 2 -o video.m1v mplayer -nofs -vo null -hardframedrop -dumpaudio "$1" mpg123 -w audio.wav stream.dump rm -f stream.dump sox -t wav audio.wav -t wav -r 44100 /dev/stdout | toolame -p 2 -b 224 \ /dev/stdin audio.mp2 rm -f audio.wav mplex -f 4 audio.mp2 video.m1v -o "${1%.avi}%02d.mpg" --- end script --- -- Robert Kesterson [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users