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
On 11/26/2012 08:24 AM, Nagy Tibor wrote:
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
• 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:
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
Mencoder displays the following info for this file not accepted by the LG player:
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
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])?
Actually, those lines look OK at a glance (assuming the bitrate limitations stated above are for audio, not video). The first thing I would check is the fourcc. Your "accepted" file has a fourcc of 0x44495658, which is 'XVID'. Your "not accepted" file has a fourcc of 0x34504D46, which is 'FMP4'. FMP4 is the default fourcc used by libavcodec's MPEG-4 encoder. Most hardware video players don't recognize that fourcc, and therefore mistakenly think they can't play the video format. Try adding '-ffourcc XVID' to your MEncoder command line, and see what results you get. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Every time you let somebody set a limit they start moving it. - LiveJournal user antonia_tiger
Thanks Wanderer. It works perfectly with -ffourcc XVID. The final script: #--------------------------------------------------------------------- mencoder dvd://1 -dvd-device /dev/sr0 \ -chapter 1-1 \ -vf crop=720:416:0:80,spp,scale=720:405 \ -ovc lavc \ -lavcopts vbitrate=1800:autoaspect:vpass=1 \ -ffourcc XVID \ -mc 0 -noskip \ -oac copy \ -o /dev/null mencoder dvd://1 -dvd-device /dev/sr0 \ -chapter 1-1 \ -vf crop=720:416:0:80,spp,scale=720:405 \ -ovc lavc \ -lavcopts vbitrate=1800:autoaspect:vpass=2 \ -ffourcc XVID \ -mc 0 -noskip \ -oac copy \ -o out.avi
participants (2)
-
Nagy Tibor -
The Wanderer