[MPlayer-users] Problem with mencoder and interlaced DVD

Rémi Guyomarch rguyom at pobox.com
Thu Jun 27 00:46:01 CEST 2002


Hi,

I have a problem with an interlaced 25 fps PAL DVD. Mplayer can play
this DVD ok, but mencoder doesn't seems to be able to encode a single
bit of video.

The machine used is an AMD K6-2 400 Mhz under FreeBSD 4.6 and the
latest CVS was compiled with gcc 3.1.1 from FreeBSD's ports.

I'm attaching the log of a 1-pass encoding attempt. The command-line
is a bit complex but with a much shorter version (no -vop but pp and
-nosound insead of lame) I'm getting the same thing.

Note that it recognize the fact that it's a 25fps movie, but yet use
what it seems 50 fps while encoding (-endpos 1:00 and it stops at 3000
frames).

-- 
Rémi
-------------- next part --------------
rguyom at diabolic-cow ~ # mencoder -v -dvd-device /dev/acd1c -dvd 1 -vc mpeg12 -oac mp3lame -lameopts br=64:vbr=3:q=0:mode=3 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -o zz-1pass.avi -ss 15:00 -endpos 1:00 -vop scale=576:352,pp,crop=658:572:33:3 -npp lb


MEncoder CVS-020626-21:22-3.1.1 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 12)
CPUflags: Type: 5 MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Reading /home/rguyom/.mplayer/codecs.conf: 36 audio & 100 video codecs
File not found: 'frameno.avi'
get_path('font/font.desc') -> '/home/rguyom/.mplayer/font/font.desc'
Font /home/rguyom/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
get_path('') -> '/home/rguyom/.mplayer/'
get_path('DVDKeys') -> '/home/rguyom/.mplayer/DVDKeys'
Reading disc structure, please wait...
There are 2 titles on this DVD.
There are 22 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened!
[open] audio stream: 0 audio format: ac3 language: fr aid: 128
[open] number of audio channels on disk: 1.
[open] number of subtitles on disk: 0
DVD start cell: 0  pack: 0x0-0x5DF6  
DVD start=0 end=2214961  
success: format: 0  data: 0x0 - 0xE618800
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5DF6  
Angle-seek synced! skip=0  new_lba=0x0  
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x834a000  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x834a000  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x834a000  
Checking for MOV
DEMUXER: freeing demuxer at 0x834a000  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x834a000  
Checking for REAL
DEMUXER: freeing demuxer at 0x834a000  
DEMUXER: freeing demuxer at 0x834a000  
DEMUXER: freeing demuxer at 0x834a000  
DEMUXER: freeing demuxer at 0x834a000  
DEMUXER: freeing demuxer at 0x834a000  
DEMUXER: freeing demuxer at 0x834a000  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5DF6  
Angle-seek synced! skip=0  new_lba=0x0  
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  8750.0 kbps (1093.8 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Opening audio decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNow optimized IMDCT transform
AC3: 5.0 (3f+2r)  48000 Hz  224.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 28000->192000
libavcodec: CPU flags: mmx 3dnow
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale=576:352]
SwScale params: 576 x 352 (-1=no scaling)
Opening video filter: [pp]
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
[scale] query(Planar YV12) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
[scale] query(Planar I420) -> 1
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
[scale] query(Planar IYUV) -> 1
Opening video filter: [crop=658:572:33:3]
Crop: 658 x 572, 33 ; 3
==========================================================================
Forced video codec: mpeg12
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMX for IDCT transform
libmpeg2: Using 3DNOW for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)  
[PP] Using external postprocessing filter, max q = 6
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(Planar YV12) returned 0xC41 (i=0) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(Planar I420) returned 0xC41 (i=1) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(Planar IYUV) returned 0xC41 (i=2) 
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
video_out->init(720x576->1024x576,flags=0,'MPlayer',0x32315659)
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
REQ: flags=0xC41  req=0x400  
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
REQ: flags=0x441  req=0x0  
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: reducing / aligning filtersize 8 -> 7

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using 3DNOW
SwScaler: using 8-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 658x572 -> 576x352
REQ: flags=0x401  req=0x0  
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (576x352 fourcc=58564944 [DIVX])
Forcing video codec: [mpeg12] drv:1 (MPEG 1 or 2)
==========================================================================
MP3 audio selected
Writing AVI header...
LAME version 3.91 MMX  (http://www.mp3dev.org/)
CPU features: i387, MMX (ASM used), 3DNow!
Autoconverting from stereo to mono. Setting encoding to mono mode.
Using polyphase lowpass  filter, transition band: 13355 Hz - 13935 Hz

misc:

        scaling: 0.000000
        ch0 (left) scaling: 0.000000
        ch1 (right) scaling: 0.000000
        filter type: 0
        quantization: ISO
        huffman search: normal
        experimental X=0 Y=0 Z=0
        ...

stream format:

        MPEG-1 Layer 3
        1 channel - mono
        padding: auto
        variable bitrate - ABR 
        ...

psychoacoustic:

        tonality estimation limit: 8871.700195 Hz
        using short blocks: allowed
        adjust masking: 0.000000 dB
        psymodel: 1
        noise shaping: 1
         ^ amplification: 0
         ^ stopping: 0
        ATH: using
         ^ type: 2
         ^ adjust type: 0
         ^ adapt threshold type: 2
        using temporal masking effect: yes
        ...

dvd_next_cell: next1=0x0  
dvd_next_cell: next2=0x0  
dvd_next_cell: next3=0x1  
dvd_next_cell: next1=0x1  
dvd_next_cell: next2=0x1  
dvd_next_cell: next3=0x2  
dvd_next_cell: next1=0x2  
dvd_next_cell: next2=0x2  
dvd_next_cell: next3=0x3  
dvd_next_cell: next1=0x3  
dvd_next_cell: next2=0x3  
dvd_next_cell: next3=0x4  
dvd_next_cell: next1=0x4  
dvd_next_cell: next2=0x4  
dvd_next_cell: next3=0x5  
dvd_next_cell: next1=0x5  
dvd_next_cell: next2=0x5  
dvd_next_cell: next3=0x6  
dvd_next_cell: next1=0x6  
dvd_next_cell: next2=0x6  
dvd_next_cell: next3=0x7  
DVD Seek! lba=0x7558B  cell=7  packs: 0x696E5-0x756F6  
Angle-seek synced! skip=0  new_lba=0x75641  
--- END OF CELL !!! ---
dvd_next_cell: next1=0x7  
dvd_next_cell: next2=0x7  
dvd_next_cell: next3=0x8  
DVD next cell: 8  pack: 0x756F7-0xA216D  
*** [crop] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [crop] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytesms 15/17 D/S 0/1 
*** [crop] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytesms 15/20 D/S 0/2 
Pos:  60.0s   3000f (22%)  42fps Trem:   4min   1mb  A-V:0.057 [0:57] A/Vms 10/12 D/S 0/1500 
Writing AVI index...
Fixup AVI header...

Video stream:    0.000 kbit/s  (0 bps)  size: 0 bytes  60.000 secs  3000 frames

Audio stream:   57.568 kbit/s  (7195 bps)  size: 435384 bytes  60.504 secs


More information about the MPlayer-users mailing list