mencoder | the command |
$infile | input file name |
-ovc lavc | use the lavc codec that comes with mplayer/mencoder to make the MPEG4 video
|
-oac mp3lame | use the mp3lame library to make the mp3 audio
|
-lameopts vbr=0:cbr:br=128 | Setup the audio for constant bitrate, 128 kbps
|
-lavcopts vcodec=mpeg4:vbitrate=1500 | Set the video to 1500 kpbs MPEG4
|
-vf pullup,softskip,format=yv12,scale=640:360 | These are the video filters. "pullup" converts telecined video back to 24fps. "softskip" helps optimize encoding by dropping frames before more cpu intensive filters. "format=yuv12" converts to 12 bit color. "scale=640:360" scales the video to the maximum horizontal resolution of the Zen Vision while preserving the aspect ratio. |
-ofps 24000/1001 | Output frame rate is about 24fps. This should match the source material. |
-ffourcc XVID | This forces the codec identity to be XVID. The Zen Vision host software won't let you transfer video unless it sees a codec id that it recognizes. The lavc library doesn't set this value, so you have to do it manually. |
-of avi | Output an AVI file format |
-noodml | Disable Open DML indexing. Open DML allows AVI files to be bigger than 2 GB, but the Zen Vision doesn't seem to support it. If you don't use this option, mencoder will switch from standard AVI indexing to Open DML when the file reaches 1 GB. The result is that after the Zen Vision has played the first 1 GB of file data, it loops back to the beginning. |
-o $outfile | Output file name |