[MPlayer-users] mencoder problem

Robert Zelic zrobi at uns.ns.ac.yu
Sun Oct 15 13:50:24 CEST 2006


There is a delay in sound when I encode from raw video material.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
mencoder input.avi -oac mp3lame -lameopts abr:br=128 -ovc xvid -xvidencopts 
bitrate=500:pass=2:min_bquant=2:max_bquant=31 -noskip -o ~/probe.avi
MEncoder 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team
CPU:        Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0x198f94f2
AVI file format detected.
Detected NON-INTERLEAVED AVI file format.
VIDEO:  [YUY2]  720x576  16bpp  25.000 fps  165888.0 kbps (20250.0 kbyte/s)
[V] filefmt:3  fourcc:0x32595559  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: XviD (720x576 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=720x576, sampled=720x576
xvid: 2Pass Rate Control -- 2nd pass -- bitrate=500kbit/s
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Writing header...
ODML: vprp aspect is 16384:13107.
Setting audio delay to 0.026s.
Writing header...
ODML: vprp aspect is 16384:13107.
Setting audio delay to 0.026s.
Pos:   0.8s     22f ( 4%)  6.99fps Trem:   1min  46mb  A-V:0.084 [0:129]
Skipping frame!
Pos:   1.2s     33f ( 6%)  7.12fps Trem:   1min  44mb  A-V:0.082 [18503:129]
Skipping frame!
Pos:   1.9s     50f ( 9%)  7.14fps Trem:   1min  43mb  A-V:0.083 [18300:129]
Skipping frame!
Pos:   2.6s     69f (13%)  7.14fps Trem:   1min  43mb  A-V:0.080 [18268:128]
Skipping frame!
Pos:   3.8s    101f (19%)  7.09fps Trem:   0min  43mb  A-V:0.084 [18377:127]
Skipping frame!
Pos:  20.2s    512f (99%)  6.48fps Trem:   0min  44mb  A-V:0.020 [18441:127]
Flushing video frames
Writing index...
Writing header...
ODML: vprp aspect is 16384:13107.
Setting audio delay to 0.026s.

Video stream: 18425.988 kbit/s  (2303248 B/s)  size: 46709879 bytes  20.280 secs  512 frames

Audio stream:  127.050 kbit/s  (15881 B/s)  size: 325662 bytes  20.506 secs
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I've tried with -audio-delay -0.026, and there is a little improvement, but its not 
that I want. Audio delay is 0.026s for every video file.


The same happens with -ovc lavc, but there is no delay report:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
mencoder input.avi -o ~/output4.avi -oac mp3lame -lameopts abr:br=128 -ovc lavc 
-lavcopts vcodec=mpeg4:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 32000
MEncoder 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team
CPU:        Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0x198f94f2
AVI file format detected.
Detected NON-INTERLEAVED AVI file format.
VIDEO:  [YUY2]  720x576  16bpp  25.000 fps  165888.0 kbps (20250.0 kbyte/s)
[V] filefmt:3  fourcc:0x32595559  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.

SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.9s     22f ( 4%)  7.83fps Trem:   1min  11mb  A-V:0.084 [0:133]
Skipping frame!
Pos:   1.2s     32f ( 6%)  9.29fps Trem:   0min   8mb  A-V:0.084 [3152:133]
Skipping frame!
Pos:   1.8s     47f ( 8%) 10.65fps Trem:   0min   5mb  A-V:0.084 [2285:132]
Skipping frame!
Pos:   2.5s     66f (12%) 11.57fps Trem:   0min   4mb  A-V:0.080 [1751:132]
Skipping frame!
Pos:   3.6s     95f (18%) 12.22fps Trem:   0min   3mb  A-V:0.083 [1351:131]
Skipping frame!
Pos:   9.2s    234f (45%) 12.92fps Trem:   0min   2mb  A-V:0.081 [834:131]]
Skipping frame!
Pos:  20.2s    512f (99%) 13.43fps Trem:   0min   1mb  A-V:-0.007 [604:131]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:  604.111 kbit/s  (75513 B/s)  size: 1528400 bytes  20.240 secs  512 frames

Audio stream:  131.196 kbit/s  (16399 B/s)  size: 336289 bytes  20.506 secs
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


But in this case I can't open the file with mswindows bsplayer:

Warning: Unknown file format (FMP4)

Movie info:
Frames Played: 0
Video sizye: 0x0
Surface type: UNKN-Overlay
Video: FMP4
Audio 1: MPEG Layer III (Ch:2, 22050Hz)

The same happens when I use vcodec=xvid instead of vcodec=mpeg4





More information about the MPlayer-users mailing list