# Create a named pipe mkfifo stream.yuv # Dump the video to stream.yuv as yuv mplayer -vo yuv4mpeg -nosound # Catch the stream and encode it # This one makes NTSC cat stream.yuv | yuvscaler -n n -O SVCD | mpeg2enc -p -F 4 -f 4 -S 750 -B 224 -q 7 -V 300 -I 0 -o video_svcd.m2v # And this one for PAL cat stream.yuv | yuvscaler -n p -O SVCD | mpeg2enc -F 3 -f 4 -S 750 -B 224 -q 7 -V 300 -I 0 -o video_svcd.m2v # Can mabye change -S to a little bit more, 750 gave [76:59.18] # And mabye -I 0 to -I 1 for NTSC # Change fps, input after cat stream.yuv and before yuvscaler # Change to PAL yuvfps -r 25:1 # Create audio mplayer -vo null -ao pcm -aofile audio.wav # Convert to MPEG layer-II, (mp2) cat audio.wav | mp2enc -V -o audio.mp2 # Put together # -b the same as specified as -V when encoding video # -r, the total rate: 2500 from movie, 224 from audio and the rest for mplex information mplex -f 4 -b 300 -r 2750 audio.mp2 video_svcd.m2v -o filename.%dof2.mpg