Next, you need to push the right buttons on the Render page. These instructions assume you already know what the buttons do; I'm just going to tell you which ones you need for a VCD or SVCD.
Set up the rendering as follows:
"Fields"? | SizeX x SizeY | AspX:AspY | "Frs/sec:" | ||
SVCD | NTSC | yes | 480 x 480 | 15:11 | 30 |
PAL | yes | 480 x 576 | 59:36 | 25 | |
VCD | NTSC | no | 352 x 240 | 10:11 | 30 |
PAL | no | 352 x 288 | 59:54 | 25 |
Finally, hit "ANIM" to start the rendering process. Go read a book for a while.
cd to the directory containing your rendered frames, and use the following command-line to convert them an MPEG video stream (this should all be on one line):
ls *.tga | xargs -n1 tgatoppm |
ppmtoy4m -Iilace -FFPS |
mpeg2enc -f MPTYPE -o YOUR_MOVIE.mXv
The "*.tga" should be replaced by whatever shell wildcard expression you want to select the animation frames. (tgatoppm is a program in the NetPBM distribution. What the first line up there does is to call tgatoppm for each .tga filename in the current directory.)
The italicized arguments above can be filled in from the table below. By convention, the extension on the output filename should be ".m1v" if it is a VCD stream (MPEG-1 encoding) or ".m2v" if it is an SVCD stream (MPEG-2 encoding).
ilace | FPS | MPTYPE | ||
---|---|---|---|---|
SVCD | NTSC | 'b' or 't' | 30000:1001 | 4 |
PAL | 'b' or 't' | 25:1 | 4 | |
VCD | NTSC | 'p' | 30000:1001 | 1 |
PAL | 'p' | 25:1 | 1 |
For SVCD, the ilace parameter should match the field dominance you chose during rendering: 'b' for bottom/lower-field first and 't' for top/upper-field first.
The video stream created above cannot directly be used on a VCD or SVCD. The last step is to encapsulate it into a "system stream" This step is called "multiplexing", because this is where a video stream and an audio stream are jammed together to create a complete movie. The MPEG audio stream is optional, but the repackaging into a system stream is not.
Use the following command-line:
mplex -f MPTYPE -o YOUR_MOVIE.mpg YOUR_MOVIE.mXvUse the same MPTYPE parameter that you used in Step 2. You could optionally add an MPEG-1 (Layer II) encoded audio stream after the video stream filename, but creating that is a subject for another web page!
You'll have to consult other documentation to do this.
Matt Marjanovic Digital Media Group, maximum impact research <dmg at mir.com> |
Last modified: Thu Dec 6 01:58:51 EST 2001 |
©2001 Matthew Marjanovic.
This material may not be republished in any form
without express written consent of the author.