[MPlayer-users] dvd encoding - bug? (fwd)
Sergey Ilyevsky
selik at techst02.technion.ac.il
Fri Apr 4 21:55:30 CEST 2003
Distribution: Mandrake 9.0 release (dolphin)
Kernel version: 2.4.19-16mdk
libc version: 2.2.5
X version: XFree86 Version 4.2.1
gcc version: 3.2 (Mandrake Linux 9.0 3.2-1mdk)
ld version: 2.12.90.0.15 20020717
binutils: GNU assembler 2.12.90.0.15 20020717
CPU: Pentium III 800
Video Card: Voodoo 3 3000 (AGP)
Sound Card: Ensoniq 5880 (PCI)
DVD: TOSHIBA DVD-ROM SD-M1402
Hi!
I'm trying to encode dvd into avi. When I'm just playing it with mplayer
- it's perfect. But with mencoder I'm getting .avi file, in wich video
and audio are not synchronized. Audio lates for about 0.2 ms. Well, it's
not a big deal, but with original dvd there's no such problem.
May be, some skipped frames are the reason? Again, with
"mplayer -dvd 1 -alang en" there are no skipped frames.
This problem exists with ALL dvds, that I encode.
I'm using 3-path encoding, but it's the same thing with 2-path.
Here is the log:
########################################################
######################### Pass 1 #######################
### mencoder -dvd 1 -alang ru,en -ovc frameno -o frameno.avi\
### -oac mp3lame -lameopts vbr=3
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MEncoder 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/sergey/.mplayer/codecs.conf: can't open '/home/sergey/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /home/sergey/.mplayer/mencoder: No such file or directory
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 42 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x7B9000 - 0x7DF69000
Selected DVD audio channel: 128 language: en
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.00 fps 7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
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, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
Pos: 0.9s 22f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:31]
Skipping frame!
Pos: 1.2s 32f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:32]
Skipping frame!
Pos: 1.6s 42f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:31]
Skipping frame!
Pos: 2.0s 52f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:32]
Skipping frame!
Pos: 2.3s 62f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:32]
Skipping frame!
Pos: 2.7s 72f ( 0%) 0fps Trem: 0min 0mb A-V:0.084 [0:31]
Skipping frame!
Pos: 3.2s 87f ( 0%) 0fps Trem: 0min 0mb A-V:0.082 [0:31]
Skipping frame!
Pos: 14.1s 359f ( 0%) 156fps Trem: 29min 59mb A-V:-0.084 [0:37]
1 duplicate frame(s)!
Pos: 14.6s 370f ( 0%) 156fps Trem: 30min 63mb A-V:-0.081 [0:40]
1 duplicate frame(s)!
Pos:4606.3s 115163f (57%) 89fps Trem: 15min 114mb A-V:-0.083 [0:115]
1 duplicate frame(s)!
Pos:7957.9s 198952f (100%) 90fps Trem: 0min 113mb A-V:0.015 [0:115]
Writing AVI index...
Fixing AVI header...
Recommended video bitrate for 650MB CD: 556
Recommended video bitrate for 700MB CD: 609
Recommended video bitrate for 800MB CD: 714
Recommended video bitrate for 2 x 650MB CD: 1241
Recommended video bitrate for 2 x 700MB CD: 1347
Recommended video bitrate for 2 x 800MB CD: 1557
Video stream: 0.800 kbit/s (99 bps) size: 795780 bytes 7957.920 secs 198952 frames
Audio stream: 115.052 kbit/s (14381 bps) size: 114454344 bytes 7958.424 secs
######################### Pass 2 #######################
### mencoder -dvd 1 -oac copy -o a_Perfect_World.avi -vop crop=718:432:2:72 -ovc lavc\
### -lavcopts vbitrate=609:vpass=1:vcodec=mpeg4:aspect=2.3637860082\
### -info name=a_Perfect_World
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MEncoder 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/sergey/.mplayer/codecs.conf: can't open '/home/sergey/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
AVI file format detected.
VIDEO: [FrNo] 720x576 24bpp 25.00 fps 0.8 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/sergey/.mplayer/mencoder: No such file or directory
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 42 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x7B9000 - 0x7DF69000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.00 fps 7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [crop=718:432:2:72]
Crop: 718 x 432, 2 ; 72
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop 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 v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (718x432 fourcc=58564944 [DIVX])
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=14382 sample=0)
Writing AVI header...
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos: 0.8s 22f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:31]
Skipping frame!
Pos: 1.2s 32f ( 0%) 31fps Trem: 0min 0mb A-V:0.000 [53:32]
Skipping frame!
Pos: 1.6s 42f ( 0%) 34fps Trem: 0min 0mb A-V:0.000 [48:32]
Skipping frame!
Pos: 1.9s 52f ( 0%) 36fps Trem: 0min 0mb A-V:0.000 [49:32]
Skipping frame!
Pos: 2.3s 62f ( 0%) 37fps Trem: 0min 0mb A-V:0.000 [49:32]
Skipping frame!
Pos: 2.6s 72f ( 0%) 39fps Trem: 0min 0mb A-V:0.000 [47:31]
Skipping frame!
Pos: 3.2s 87f ( 0%) 40fps Trem: 0min 0mb A-V:0.000 [44:31]
Skipping frame!
Pos: 14.0s 359f ( 0%) 26fps Trem: 176min 891mb A-V:0.000 [640:37]
1 duplicate frame(s)!
Pos: 14.5s 370f ( 0%) 27fps Trem: 178min 889mb A-V:0.000 [620:40]
1 duplicate frame(s)!
Pos:4606.3s 115163f (57%) 22fps Trem: 62min 689mb A-V:0.000 [608:115]
1 duplicate frame(s)!
Pos:7957.9s 198952f (99%) 22fps Trem: 0min 691mb A-V:0.000 [609:115]
Writing AVI index...
Fixing AVI header...
Video stream: 609.272 kbit/s (76158 bps) size: 606063941 bytes 7957.880 secs 198952 frames
Audio stream: 115.053 kbit/s (14381 bps) size: 114454056 bytes 7958.352 secs
######################### Pass 1 #######################
### mencoder -dvd 1 -oac copy -o a_Perfect_World.avi -vop crop=718:432:2:72 -ovc lavc\
### -lavcopts vbitrate=609:vpass=2:vcodec=mpeg4:aspect=2.3637860082\
### -info name=a_Perfect_World
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MEncoder 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/sergey/.mplayer/codecs.conf: can't open '/home/sergey/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
AVI file format detected.
VIDEO: [FrNo] 720x576 24bpp 25.00 fps 0.8 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/sergey/.mplayer/mencoder: No such file or directory
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 42 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x7B9000 - 0x7DF69000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.00 fps 7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [crop=718:432:2:72]
Crop: 718 x 432, 2 ; 72
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop 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 v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (718x432 fourcc=58564944 [DIVX])
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=14382 sample=0)
Writing AVI header...
New_Face failed. Maybe the font path is wrong. 0mb A-V:0.000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos: 0.8s 22f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:31]
Skipping frame!
Pos: 1.2s 32f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [53:32]
Skipping frame!
Pos: 1.6s 42f ( 0%) 37fps Trem: 0min 0mb A-V:0.000 [48:32]
Skipping frame!
Pos: 1.9s 52f ( 0%) 37fps Trem: 0min 0mb A-V:0.000 [47:32]
Skipping frame!
Pos: 2.3s 62f ( 0%) 34fps Trem: 0min 0mb A-V:0.000 [46:32]
Skipping frame!
Pos: 2.6s 72f ( 0%) 36fps Trem: 0min 0mb A-V:0.000 [44:31]
Skipping frame!
Pos: 3.2s 87f ( 0%) 36fps Trem: 0min 0mb A-V:0.000 [42:31]
Skipping frame!
Pos: 14.0s 359f ( 0%) 22fps Trem: 207min 453mb A-V:0.000 [303:37]
1 duplicate frame(s)!
Pos: 14.5s 370f ( 0%) 23fps Trem: 208min 455mb A-V:0.000 [294:40]
1 duplicate frame(s)!
Pos:4606.3s 115163f (57%) 19fps Trem: 73min 701mb A-V:0.000 [620:115]
1 duplicate frame(s)!
Pos:7957.4s 198939f (99%) 19fps Trem: 0mi%) 19fps Trem: 0min 691mb A-V:0.Pos:7957.9s 198952f (99%) 19fps Trem: 0min 691mb A-V:0.000 [609:115]
Writing AVI index...
Fixing AVI header...
Video stream: 609.161 kbit/s (76145 bps) size: 605954271 bytes 7957.880 secs 198952 frames
Audio stream: 115.053 kbit/s (14381 bps) size: 114454056 bytes 7958.352 secs
########################################################
--
With best wishes,
Sergey Ilyevsky.
More information about the MPlayer-users
mailing list