Sunday, February 17, 2008

Generating videos for Philips DVD player using mencoder

The Philips DVD player, we need to set the file header to DX50 (any other representation for Divx movie files like DIVX DX30 etc might also work. I am using Philips DVP 5106K, but any DVP model (say 642) and any later models should also.
 
The following is the command I used for converting an MP4 file to Divx AVI
 
mencoder -ffourcc DX50 -ovc lavc -oac lavc -oac mp3lame -o output.avi input.mp4
 
The output file had the following properties:
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
 

No comments: