mencoder Mini-HOWTO

http://www.mplayerhq.hu/
http://oss.netfarm.it/mplayer-win32.php
2010-02-08

Index


Grab Information

1. Select dvd-device and Identify main track

mplayer dvd:// -dvd-device D:/ -identify

[...]
ID_DVD_TITLE_1_LENGTH=120.000
ID_DVD_TITLE_2_LENGTH=5400.000
ID_DVD_TITLE_3_LENGTH=120.000
[...]

2. Select correct audio stream

mplayer dvd://2 -dvd-device D:/ -v

[...]
audio stream: 0 format: ac3 (5.1) language: de aid: 128.
audio stream: 1 format: ac3 (5.1) language: en aid: 129.
[...]

3. Review movie

mplayer dvd://2 -dvd-device D:/ -aid 128


Encode Video

1. Calculate bitrate

700 MB * 1024 = 716 800 kB
716 800 kB * 8 = 5 734 400 kBit
5 734 400 kBit / 5 400 sec = 1 061 kBit/sec
1 061 kBit/sec - 128 kBit/sec = 933 kBit/sec

2. Select movie resolution (with correct aspect ratio)

16:9 (1.778:1)
The resolution should be a multiple of 16
720:400 (1.8:1) = (16*45 : 16*25)

mencoder dvd://2 -dvd-device D:/ -aid 128 -ovc xvid -xvidencopts bitrate=920 -vf scale=720:400,dsize=720:400 -oac mp3lame -lameopts cbr:br=128 -o output.avi