7bit
16th January 2008, 18:16
After searching for an easy way to produce SVCD on Linux and trying out a few of the available scripts based on transcode or mencoder I finally ended up writing my own automated svcd encoding script, because none of the existing ones fitted exactly my needs, and I am willing to share it with the community.
Current Version:
http://prof7test.googlecode.com/svn/trunk/mpeg/svcd.py
This script will take as input everything mplayer can play, calculate the bitrate to fit it exactly on an 80-Minute CD-R (can of course be configured for other sizes), scale and expand to letterboxed SVCD and will do a 2-pass encode with mencoder/lavc/twolame, optimized for maximum quality. (Letterboxed because I only have an old 4:3 CRT TV set)
The script is originally intended to be used in PAL-Land. If material with 24fps is detected it does a PAL-speedup (but it does not try to do a pullup from NTSC to PAL. If it is fed with 30000/1001 material it will encode it as it is and switch resolution to 480x480)
If you are on windows, you can install mplayer/mencoder for windows (in your path) and python 2.5 and the script should run on windows just as good as it does on linux.
Just call the script with the filename of the movie as argument and it will encode it and put the mpeg in the same directory.
Current Version:
http://prof7test.googlecode.com/svn/trunk/mpeg/svcd.py
This script will take as input everything mplayer can play, calculate the bitrate to fit it exactly on an 80-Minute CD-R (can of course be configured for other sizes), scale and expand to letterboxed SVCD and will do a 2-pass encode with mencoder/lavc/twolame, optimized for maximum quality. (Letterboxed because I only have an old 4:3 CRT TV set)
The script is originally intended to be used in PAL-Land. If material with 24fps is detected it does a PAL-speedup (but it does not try to do a pullup from NTSC to PAL. If it is fed with 30000/1001 material it will encode it as it is and switch resolution to 480x480)
If you are on windows, you can install mplayer/mencoder for windows (in your path) and python 2.5 and the script should run on windows just as good as it does on linux.
Just call the script with the filename of the movie as argument and it will encode it and put the mpeg in the same directory.