Re: [Encode2mpeg-users] encoding for the Philips DVP642
Brought to you by:
encode2mpeg
|
From: Giacomo C. <enc...@us...> - 2005-10-24 15:58:00
|
On Sat, Oct 22, 2005 at 10:54:21PM -0700, Adam Monsen wrote: > Hi Giacomo (and others), > > I have a Philips DVP642 standalone DVD player (product spec sheet: > http://forum.doom9.org/showpost.php?p=654516&postcount=1 or > http://snipurl.com/ivaz ). It's supposed to be able to play DivX files, but > I'm having a little trouble encoding DivX video so it will play perfectly. I > know this isn't a Philips hardware forum, but you seem to be quite > knowledgeable about video encoding, and I thought something on the product > spec sheet would mean more to you than it means to me. > > Here's an example I used recently: > > encode2mpeg in.avi -o out -avionly -encode 3:1:2 -ffourcc DIVX -turbo 1 > -setaspect 6 > > I then burn out.avi to a data CD or DVD, and the player is able to play the > file. The only problem is that (1) when there is a lot of movement, the > video gets choppy, and (2) the audio gradually slows down compared to the > video. Any ideas of options I might add to make this video a bit more > playable on this particular standalone player? The spec sheet mentions that > GMC and Q-Pel are not supported, but I don't think mencoder enables these by > default, so this shouldn't be a problem. Video encoded with > Nandub/VirtualDubMod (Windows) seems to play perfectly. For problem (2) you should add the option -fixasync. Please try it and tell me if this elimitane the the a/v desync when you play it with your player. For problem (1) the solution should be to reduce the video bitrate. During fast motion scenes, the encoder need to use a higher bit rate in order to preserve the quality. This is not a problem with a software player where the data transfer rate from the harddisk or DVD drive is big. But a hardware DVD player is more limited and the peak data rate can be a problem. You have different options in order to reduce the bit rate: 1) Add bframes. Use the options -bframes 2 or 2) Use a better compression option: -encode 3:3:2 (with this option bframes are used automatically, add -bframes 0 to turn them off). or 3) Decrease the video bit rate: use -usesbr or -vbitrate You can try to find the maximum data transfer rate of your player. Do diffenrent encoding with different argument values of -vbitrate and check the high motion scene. Do a binary search until you find the maximum video bit rate that do not produce choppy video. (in order to be reliable you should also use a cbr audio encoding) Of course all these seggestions are valid if the high bit rate is the cause of your choppy video. It may also be that the cause is another and the suggestion are useless :(. Test my suggestions and keep me informed. A question, what kind of media are you using? DVD+-R[W], CD-R[W], etc. Giacomo > > Here's a little more info that might be helpful. The video in.avi (in this > case) was ripped from a DVD I own using the following command line: > > mencoder dvd://1 -quiet -oac copy -ovc copy -o in.avi > > And was subsequently encoded into DivX format using the aforementioned > encode2mpeg command line. When in.avi is played by mplayer, it reports the > following: > > $ mplayer in.avi > ... > MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team > ... > Playing in.avi. > AVI file format detected. > AVI: ODML: Building odml index (2 superindexchunks) > VIDEO: [] 720x480 24bpp 29.970 fps 3930.8 kbps (479.8 kbyte/s) > VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 8891.6 kbps (1111.5 kbyte/s) > Clip info: > Software: MEncoder 1.0pre7-3.4.3 > ========================================================================== > Opening audio decoder: [liba52] AC3 decoding with liba52 > Using SSE optimized IMDCT transform > AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s > Using MMX optimized resampler > AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) > Selected audio codec: [a52] afm:liba52 (AC3-liba52) > ========================================================================== > vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local > display) > vo_xvmc: X-Video extension 2.2 > vo_xvmc: No X-Video MotionCompensation Extension on :0.0 > ========================================================================== > Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough > VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > The selected video_out device is incompatible with this codec. > VDecoder init failed :( > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b > Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2)) > ========================================================================== > Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... > AF_pre: 48000Hz/2ch/s16le > AO: [oss] 48000Hz 2ch s16le (2 bps) > Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... > Starting playback... > VDec: vo config request - 720 x 480 (preferred csp: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > VO: [xv] 720x480 => 720x540 Planar YV12 > ... > > When out.avi is played, mplayer reports the following: > > $ mplayer out.avi > ... > MPlayer 1.0pre7-4.0.0 (C) 2000-2005 MPlayer Team > ... > Playing out.avi. > AVI file format detected. > VIDEO: [DIVX] 640x480 24bpp 24.000 fps 1951.2 kbps (238.2 kbyte/s) > Clip info: > Software: MEncoder 1.0pre7-4.0.0 > Comments: encode2mpeg-0.5.2 > ========================================================================== > Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 > AUDIO: 48000 Hz, 2 ch, s16le, 40.0 kbit/2.60% (ratio: 5000->192000) > Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) > ========================================================================== > vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local > display) > vo_xvmc: X-Video extension 2.2 > vo_xvmc: No X-Video MotionCompensation Extension on :0.0 > ========================================================================== > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family > Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4) > ========================================================================== > Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... > AF_pre: 48000Hz/2ch/s16le > AO: [oss] 48000Hz 2ch s16le (2 bps) > Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... > Starting playback... > VDec: vo config request - 640 x 480 (preferred csp: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > VO: [xv] 640x480 => 640x480 Planar YV12 > ... > > Any ideas? Might I need to lower the quality of the audio or lower the > vbitrate? > > Thank you, > -Adam > > For reference, here are some related posts on other forums: > * http://forum.doom9.org/showpost.php?p=654516&postcount=1 > http://snipurl.com/ivaz > > * > http://forums.divx.com/groupee/forums/a/tpc/f/531101651/m/505107852/r/505107852 > http://snipurl.com/ivb9 > > * http://forums.divx.com/eve/ubb.x/a/tpc/f/531101651/m/248100742/r/456101742 > http://snipurl.com/ivba > > * http://forum.doom9.org/showthread.php?t=98463 > http://snipurl.com/ivbc > > -- > Adam Monsen -- |