[MPlayer-users] mencoder, audio stream shorter than video stream

T o n g mlist4suntong at yahoo.com
Sat Nov 28 04:09:28 CET 2009


Hi, 

I am using mencoder to covert my video to x264/mp3 format, but just 
noticed that the converted avi file's audio stream is about 10% shorter 
than the video stream:

Video stream:  196.012 kbit/s  (24501 B/s)  size: 656639 bytes  26.800 
secs  405 frames
Audio stream:   46.635 kbit/s  (5829 B/s)  size: 140184 bytes  24.048 secs

The command that I used is:

 mencoder -noskip -of avi -oac mp3lame -lameopts abr:br=48:vol=2.2 -ovc 
x264 -vf harddup -srate 8000 -o imgp2161-.avi imgp2161.avi

Here is its full log:

MPlayer SVN-r29809 (C) 2000-2009 MPlayer Team
success: format: 0  data: 0x0 - 0x29d8f3e
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [MJPG]  320x240  24bpp  15.000 fps  1370.2 kbps (167.3 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:320x240  fps:15.000  ftime:=0.0667
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
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: 0
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
MP3 audio selected.
There are no EDL actions to take care of.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0xca3620]BICUBIC scaler, from yuv422p to yuv420p using MMX2
[swscaler @ 0xca3620]using 4-tap MMX scaler for horizontal luminance 
scaling
[swscaler @ 0xca3620]using 4-tap MMX scaler for horizontal chrominance 
scaling
[swscaler @ 0xca3620]using 1-tap MMX "scaler" for vertical scaling (YV12 
like)
[swscaler @ 0xca3620]320x240 -> 320x240
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile High, level 1.2
Pos:   0.0s     22f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.140 [0:0]
Skipping frame!
Pos:   0.0s     32f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.140 [0:0]
Skipping frame!
Pos:   0.0s     42f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.140 [0:0]
Skipping frame!
Writing header...2f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.121 [0:0]
ODML: vprp aspect is 4:3.
Setting audio delay to 0.144s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.144s.
Pos: 229.9s   3501f (99%) 54.45fps Trem:   0min   5mb  A-V:0.107 [145:46]
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.144s.

Video stream:  146.033 kbit/s  (18254 B/s)  size: 4256861 bytes  233.200 
secs  3501 frames

Audio stream:   46.201 kbit/s  (5775 B/s)  size: 1330992 bytes  230.472 
secs
x264 [info]: frame I:24    Avg QP:23.76  size:  6928
x264 [info]: frame P:1751  Avg QP:27.20  size:  1957
x264 [info]: frame B:1723  Avg QP:30.38  size:   385
x264 [info]: consecutive B-frames:  4.6% 84.4%  9.9%  1.0%  0.0%
x264 [info]: mb I  I16..4:  4.1% 50.8% 45.1%
x264 [info]: mb P  I16..4:  2.0% 15.7%  1.9%  P16..4: 28.8% 21.0% 10.2%  
0.0%  0.0%    skip:20.5%
x264 [info]: mb B  I16..4:  0.2%  1.6%  0.2%  B16..8: 21.3%  1.5%  0.9%  
direct: 2.8%  skip:71.5%  L0:36.3% L1:40.9% BI:22.8%
x264 [info]: 8x8 transform intra:78.6% inter:49.4%
x264 [info]: coded y,uvDC,uvAC intra: 56.9% 58.7% 14.8% inter: 15.9% 9.0% 
0.3%
x264 [info]: i16 v,h,dc,p: 38% 12%  8% 42%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 16% 30%  3%  3%  3%  3%  
4%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 20% 14%  6%  9%  8%  9%  
6%  8%
x264 [info]: ref P L0: 71.7% 13.4%  9.4%  5.5%
x264 [info]: ref B L0: 82.4% 10.6%  7.0%
x264 [info]: SSIM Mean Y:0.9664429
x264 [info]: kb/s:146.03

See, this time it is a longer file, and the audio stream is also shorter. 

Any way I can troubleshoot this?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/



More information about the MPlayer-users mailing list