[MPlayer-users] 3pass divx audio not sync'ing

Steven Adeff adeffs at rpi.edu
Sat Mar 1 17:38:23 CET 2003


Hello all. I noticed this with a build from like a week or two ago, then 
downloaded lastnights cvs tarball and it still does it. Whenever I do a 3 
pass divx (I'll paste the commands below) the audio slowly goes out of sync. 
This is with playing back in mplayer and on both my desktop and my laptop. I 
also notice that at the end when it gives the time for the video and audio 
they don't match(?!)...
Video stream:  799.353 kbit/s  (99919 bps)  size: 126414672 bytes  1265.169 
secs  37917 frames
Audio stream:  143.519 kbit/s  (17939 bps)  size: 22705704 bytes  1265.652 
secs 

Also, has anyone played around with the deinterlacers to see which ones are 
good in which situations? Particularly I'm looking for whats best for normal 
tv shows and whats best for cartoons.

thanks!!

Commands I'm using... (its actually in a script i wrote, so replace $1 with 
the input filename.)
mencoder $1 -ovc frameno -oac mp3lame -lameopts br=128:vbr=4:q=0 -o 
frameno.avi
mencoder $1 -vop pp=lb -ovc lavc -lavcopts 
vcodec=mpeg4:vhq:vbitrate=$bitrate:vpass=1 -oac copy -sws 2 -o output.avi
mencoder $1 -vop pp=lb -ovc lavc -lavcopts 
vcodec=mpeg4:vhq:vbitrate=$bitrate:vpass=2 -oac copy -sws 2 -o output.avi

and the encoding output...

Beginning Audio Encoding...

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder dev-CVS-030228-00:00-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 
3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/adeffs/.mplayer/codecs.conf: can't open 
'/home/adeffs/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs
File not found: 'frameno.avi'
Reading config file /home/adeffs/.mplayer/mencoder
success: format: 0  data: 0x0 - 0x3986880A
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  7250.0 kbps (906.2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->128000 (192.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
MP3 audio selected
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
Writing AVI header...
Pos:   1.2s     36f ( 0%)   0fps Trem:   4min  20mb  A-V:0.070 [0:138]
Skipping frame!
Pos:   1.5s     46f ( 0%)   0fps Trem:   4min  20mb  A-V:0.067 [0:139]
Skipping frame!
Pos: 812.3s  24347f (64%) 132fps Trem:   1min  22mb  A-V:-0.070 [0:142]
1 duplicate frame(s)!
Pos: 855.3s  25635f (67%) 132fps Trem:   1min  22mb  A-V:-0.067 [0:142]
1 duplicate frame(s)!
Pos:1211.5s  36310f (95%) 131fps Trem:   0min  22mb  A-V:-0.067 [0:143]
1 duplicate frame(s)!
Pos:1264.9s  37907f (99%) 131fps Trem:   0min  22mb  A-V:-0.014 [0:143]
Broken frame at 0x1CF812F
Pos:1265.2s  37917f (100%) 131fps Trem:   0min  22mb  A-V:-0.044 [0:143]
Writing AVI index...
Fixing AVI header...
Recommended video bitrate for 650MB CD: 4154
Recommended video bitrate for 700MB CD: 4485
Recommended video bitrate for 800MB CD: 5148
Recommended video bitrate for 2 x 650MB CD: 8463
Recommended video bitrate for 2 x 700MB CD: 9126
Recommended video bitrate for 2 x 800MB CD: 10452

Video stream:    0.959 kbit/s  (119 bps)  size: 151660 bytes  1265.203 secs  
37917 frames

Audio stream:  143.519 kbit/s  (17939 bps)  size: 22706856 bytes  1265.724 
secs
Audio encoding done, starting video encoding pass 1

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder dev-CVS-030228-00:00-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 
3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/adeffs/.mplayer/codecs.conf: can't open 
'/home/adeffs/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs
AVI file format detected.
VIDEO:  [FrNo]  720x480  24bpp  29.97 fps    1.0 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/adeffs/.mplayer/mencoder
success: format: 0  data: 0x0 - 0x3986880A
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  7250.0 kbps (906.2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=ci]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
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 480 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=32000 bits=0 bps=17940 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:   1.2s     36f ( 0%)  13fps Trem:  46min 350mb  A-V:0.000 [2352:138]
Skipping frame!
Pos:   1.5s     46f ( 0%)  13fps Trem:  44min 298mb  A-V:0.000 [2000:138]
Skipping frame!
Pos: 812.3s  24347f (64%)  14fps Trem:  15min 142mb  A-V:0.000 [800:142]]
1 duplicate frame(s)!
Pos: 855.3s  25635f (67%)  14fps Trem:  14min 143mb  A-V:0.000 [801:142]
1 duplicate frame(s)!
Pos:1211.5s  36310f (95%)  14fps Trem:   1min 143mb  A-V:0.000 [800:143]
1 duplicate frame(s)!
Pos:1265.2s  37917f (99%)  14fps Trem:   0min 142mb  A-V:0.000 [799:143]
Writing AVI index...
Fixing AVI header...

Video stream:  799.496 kbit/s  (99936 bps)  size: 126437227 bytes  1265.169 
secs  37917 frames

Audio stream:  143.519 kbit/s  (17939 bps)  size: 22705704 bytes  1265.652 
secs
Video Pass 1 done, beginning video encoding pass 2

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder dev-CVS-030228-00:00-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 
3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/adeffs/.mplayer/codecs.conf: can't open 
'/home/adeffs/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs
AVI file format detected.
VIDEO:  [FrNo]  720x480  24bpp  29.97 fps    1.0 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/adeffs/.mplayer/mencoder
success: format: 0  data: 0x0 - 0x3986880A
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  7250.0 kbps (906.2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=ci]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
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 480 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=32000 bits=0 bps=17940 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:   1.2s     36f ( 0%)  11fps Trem:  52min 255mb  A-V:0.000 [1654:138]
Skipping frame!
Pos:   1.5s     46f ( 0%)  12fps Trem:  48min 235mb  A-V:0.000 [1533:138]
Skipping frame!
Pos: 812.3s  24347f (64%)  15fps Trem:  15min 142mb  A-V:0.000 [798:142]]
1 duplicate frame(s)!
Pos: 855.3s  25635f (67%)  15fps Trem:  13min 143mb  A-V:0.000 [801:142]
1 duplicate frame(s)!
Pos:1211.5s  36310f (95%)  15fps Trem:   1min 143mb  A-V:0.000 [803:143]
1 duplicate frame(s)!
Pos:1265.2s  37917f (99%)  14fps Trem:   0min 142mb  A-V:0.000 [799:143]
Writing AVI index...
Fixing AVI header...

Video stream:  799.353 kbit/s  (99919 bps)  size: 126414672 bytes  1265.169 
secs  37917 frames

Audio stream:  143.519 kbit/s  (17939 bps)  size: 22705704 bytes  1265.652 
secs




-- 
Steven Adeff
AOLIM:"IndieRockSteve"

Those who can think, do; those who cannot, dress funny.

"Bodies are for hookers and fat people" - Bender

You can teach the ignorant, with the stupid there is no hope.

"You see, eventually your music will help put an end to war 
and poverty, it will align the planets and bring them into 
universal harmony, allowing meaningful contact with all 
forms of life."
-Bill 'n' Teds Excellent Adventure



More information about the MPlayer-users mailing list