[MPlayer-users] STILL a/v sync problems with divx encoding

christopher j bottaro cjb at cs.utexas.edu
Fri May 9 23:56:52 CEST 2003


using MPlayer-0.90.  i'm doing a simple divx encoding, no multiple passes or 
anything.

mencoder -oac mp3lame -lameopts abr:br=96 -ovc lavc -lavcopts 
vcodec=mpeg4:vhq:vbitrate=900 -vop scale,crop=720:374:0:50 -dvd 1 -chapter 
1-1 -zoom -xy 640 -o test.avi -ofps 23.976

i get a nasty 300ms delay.

thanks for the help.  i'd just like to say i've been having this problem for 
literally months.  i see other people have this problem also, and many 
(including myself) have uploaded samples and full bug reports to the 
mplayer's ftp site.  i guess what i'm getting at is...is this >ever< going to 
be resolved?  everytime mplayer releases a new version i try it out, it 
fails, then i revert back to cvs snapshot from dec 10, 2002.

-- christopher

here is mencoder's output from that command line:

[cjb at semaphore divx]$ /usr/local/bin/mencoder -oac mp3lame -lameopts abr:br=96 
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=900 -vop 
scale,crop=720:374:0:50 -dvd 1 -chapter 1-1 -zoom -xy 640 -o test.avi -ofps 
23.976
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: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP 
Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading /home/cjb/.mplayer/codecs.conf: can't open 
'/home/cjb/.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/cjb/.mplayer/mencoder: No such file or directory
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 29 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0  data: 0x0 - 0x6228000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.97 fps  9001.6 kbps (1125.2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale]
Opening video filter: [crop=720:374:0:50]
Crop: 720 x 374, 0 ; 50
==========================================================================
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 -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)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x280 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
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.1s      4f ( 0%)   0fps Trem:   0min   1mb  A-V:0.010 [0:0]
1 duplicate frame(s)!
Pos:   0.3s      7f ( 0%)   0fps Trem:   0min   1mb  A-V:0.020 [0:0]
demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 
23.976!

1 duplicate frame(s)!
Pos:   1.0s     23f ( 1%)   0fps Trem:   1min   9mb  A-V:0.086 [919:32]
Skipping frame!
Pos:   1.5s     35f ( 1%)  32fps Trem:   1min  14mb  A-V:0.085 [1122:40]
Skipping frame!
Pos:   8.6s    206f ( 6%)  40fps Trem:   1min  16mb  A-V:0.070 [959:75]]
demux_mpg: Progressive seq detected, leaving 3:2 TELECINE mode
Warning! FPS changed 23.976 -> 29.970  (-5.994000) [4]  :0.074 [955:74]
Pos:   9.0s    216f ( 6%)  40fps Trem:   1min  16mb  A-V:0.016 [925:74]
1 duplicate frame(s)!
Pos:   9.2s    221f ( 6%)  40fps Trem:   1min  15mb  A-V:-0.000 [904:74]
1 duplicate frame(s)!
Pos:   9.5s    226f ( 6%)  40fps Trem:   1min  15mb  A-V:-0.014 [885:74]
1 duplicate frame(s)!
Pos:   9.7s    231f ( 6%)  39fps Trem:   1min  15mb  A-V:-0.024 [866:75]
1 duplicate frame(s)!
Pos:  10.0s    236f ( 7%)  39fps Trem:   1min  15mb  A-V:-0.030 [848:75]
1 duplicate frame(s)!
Pos:  10.2s    241f ( 7%)  39fps Trem:   1min  15mb  A-V:-0.033 [831:75]
1 duplicate frame(s)!
Pos:  10.5s    246f ( 7%)  39fps Trem:   1min  15mb  A-V:-0.033 [814:75]
1 duplicate frame(s)!
Pos:  10.7s    251f ( 7%)  39fps Trem:   1min  14mb  A-V:-0.037 [799:75]
1 duplicate frame(s)!
Pos:  11.2s    262f ( 7%)  39fps Trem:   1min  14mb  A-V:-0.046 [794:76]
demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 
23.976!
Pos:  18.3s    432f (13%)  40fps Trem:   1min  13mb  A-V:-0.023 [729:76]
demux_mpg: Progressive seq detected, leaving 3:2 TELECINE mode
Warning! FPS changed 23.976 -> 29.970  (-5.994000) [4]  :-0.021 [728:76]
Pos:  18.5s    437f (13%)  39fps Trem:   1min  13mb  A-V:-0.028 [721:76]
1 duplicate frame(s)!
Pos:  18.9s    446f (13%)  39fps Trem:   1min  13mb  A-V:-0.056 [708:76]
1 duplicate frame(s)!
Pos:  19.4s    456f (14%)  39fps Trem:   1min  13mb  A-V:-0.084 [709:77]
demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 
23.976!

1 duplicate frame(s)!
Pos: 109.8s   2623f (100%)  35fps Trem:   0min  12mb  A-V:-0.086 [879:85]
1 duplicate frame(s)!
Pos: 110.0s   2627f (100%)  35fps Trem:   0min  12mb  A-V:-0.061 [878:85]
Writing AVI index...
Fixing AVI header...

Video stream:  878.894 kbit/s  (109861 bps)  size: 12087779 bytes  110.027 
secs  2627 frames

Audio stream:   85.320 kbit/s  (10665 bps)  size: 1178952 bytes  110.544 secs



More information about the MPlayer-users mailing list