[MEncoder-users] Need help to rip DVD to DivX

Nagy Tibor nagyt at hu.inter.net
Mon Nov 26 14:24:34 CET 2012


I have an LG home movie system, which can play DivX files from USB (pen drive, 
hard disc), but the accepted file formats are quite limited (from the manual):

----------------------------------------------------------------------------
DivX file requirement
**********************
• Available resolution size: 800x600 (W x H) pixel
• The file name of the DivX subtitle is available by 45 characters.
• If the number of the screen frame is over 30 per 1 second, this unit may not
operate normally.
• If the video and audio structure of recorded files are not interleaved, either
video or audio is outputted.
• MPEG4 file extensions: “.avi”, “.mpg”, “.mpeg”
• Playable DivX subtitle: SubRip (.srt / .txt), SAMI (.smi),
SubStation Alpha(.ssa/.txt), MicroDVD (.sub/.txt), VobSub (.sub)
SubViewer 2.0 (.sub/.txt), TMPlayer(.txt), DVD Subtitle System(.txt)
(Files (VobSub(.sub)) included with USB device is not supported)
• Playable Codec format: “DIVX3.xx”, “DIVX4.xx “, “DIVX5.xx”, “MP43”, “3IVX”
• Playable Audio format: “AC3”, “DTS”, “PCM”, “MP3”, “WMA”
• Sampling frequency: within 32 - 48 kHz (MP3), within 24 - 48kHz (WMA)
• Bit rate: within 32 - 320kbps (MP3), 40 - 192kbps (WMA)
----------------------------------------------------------------------------

I'm unable to rip a DVD to a file which is accepted my LG player. Mencoder 
displays the following info for an accepted file:

----------------------------------------------------------------------------
$ mencoder -msglevel  identify=4 input.avi -o /dev/null -oac copy -ovc copy 
-frames 0
MEncoder dev-SVN-r35127-4.6-openSUSE Linux 12.1 (x86_64)-Packman (C) 2000-2012 
MPlayer Team
success: format: 0  data: 0x0 - 0x7d7676cc
libavformat version 54.25.104 (internal)
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
AVI: ODML: Building ODML index (2 superindexchunks).
VIDEO:  [XVID]  720x400  24bpp  25.000 fps  1795.1 kbps (219.1 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:720x400  fps:25.000  ftime:=0.0400
videocodec: framecopy (720x400 24bpp fourcc=44495658)
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1)
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp 
header.
----------------------------------------------------------------------------

I try to rip my DVD with following commands:

----------------------------------------------------------------------------
mencoder dvd://1 -dvd-device /dev/sr0 \
         -chapter 1-1 \
         -vf crop=720:416:0:80 \
         -ovc xvid \
         -oac copy \
         -vobsubout output_en -vobsuboutindex 0 -sid 0 \
         -o /dev/null

mencoder dvd://1 -dvd-device /dev/sr0 \
         -chapter 1-1 \
         -vf crop=720:416:0:80 \
         -ovc xvid \
         -oac copy \
         -vobsubout output_hu -vobsuboutindex 0 -sid 2 \
         -o output.avi
----------------------------------------------------------------------------

Mencoder displays the following info for this file not accepted by the LG player:

----------------------------------------------------------------------------
$ mencoder -msglevel  identify=4 output.avi -o /dev/null -oac copy -ovc copy 
-frames 0
MEncoder dev-SVN-r35127-4.6-openSUSE Linux 12.1 (x86_64)-Packman (C) 2000-2012 
MPlayer Team
success: format: 0  data: 0x0 - 0x3ea3dd0
libavformat version 54.25.104 (internal)
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [FMP4]  720x416  24bpp  25.000 fps  1634.9 kbps (199.6 kbyte/s)
[V] filefmt:3  fourcc:0x34504D46  size:720x416  fps:25.000  ftime:=0.0400
videocodec: framecopy (720x416 24bpp fourcc=34504d46)
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1)
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp 
header.
----------------------------------------------------------------------------

The main difference are in this lines:

----------------------------------------------------------------------------
AVI: ODML: Building ODML index (2 superindexchunks).
VIDEO:  [XVID]  720x400  24bpp  25.000 fps  1795.1 kbps (219.1 kbyte/s)

VIDEO:  [FMP4]  720x416  24bpp  25.000 fps  1634.9 kbps (199.6 kbyte/s)
----------------------------------------------------------------------------

How can I achive, the format above (AVI: ODML and VIDEO: [XVID])?

Any help is appreciated.

Tibor


More information about the MEncoder-users mailing list