[MEncoder-users] mencoder avi-->flv a-v sync issue.
peng shao
shallpion at gmail.com
Fri Feb 5 09:25:57 CET 2010
I have an avi file which I tried to use mencoder to transfer it to flv
format. The mencoder command I used was
mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate
22050 -ovc lavc -lavcopts
vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf
scale=640:480 -mc 0 -noskip -skiplimit 1 input.avi -o output.flv
But I have an a-v sync issue. The audio is about half a second later
than the video. I have no idea what I should do because I tried
almost all of the possible solution I could find from google but with
no luck. Is it because the duplicate frames? On the other hand if I
use ffmpeg to transfer the file, it has no sync problem. :(
Thanks
Encoder SVN-r29318-4.1.2 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x5bd6bf0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: Generated index table for 6774 chunks!
VIDEO: [XVID] 1024x576 24bpp 25.000 fps 1540.8 kbps (188.1 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:1024x576 fps:25.000 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)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=480]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
MP3 audio selected.
[mpeg4 @ 0x277efa0]Invalid and inefficient vfw-avi packed B frames detected
VDec: vo config request - 1024 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x28ddd80]BICUBIC scaler, from yuv420p to yuv420p using MMX2
videocodec: libavcodec (640x480 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
[mpeg4 @ 0x277efa0]frame skip 8fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
[flv @ 0x277bf30]Codec for stream 0 does not use global headers but
container format requires global headers
[flv @ 0x277bf30]Codec for stream 1 does not use global headers but
container format requires global headers
[mpeg4 @ 0x277efa0]frame skip 8fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 2mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 0.3s 9f ( 0%) 0.00fps Trem: 0min 2mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 195.9s 4899f (81%) 77.80fps Trem: 0min 11mb A-V:0.000 [351:42]]
1 duplicate frame(s)!
Pos: 196.0s 4902f (81%) 77.83fps Trem: 0min 11mb A-V:0.000 [351:42]
1 duplicate frame(s)!
Pos: 196.1s 4903f (81%) 77.84fps Trem: 0min 11mb A-V:0.000 [351:42]
1 duplicate frame(s)!
Pos: 196.8s 4920f (82%) 77.95fps Trem: 0min 11mb A-V:0.000 [351:42]
1 duplicate frame(s)!
Pos: 196.9s 4923f (82%) 77.98fps Trem: 0min 11mb A-V:0.000 [351:42]
1 duplicate frame(s)!
Pos: 197.0s 4926f (82%) 78.00fps Trem: 0min 11mb A-V:0.000 [350:42]
1 duplicate frame(s)!
Pos: 197.1s 4929f (82%) 78.03fps Trem: 0min 11mb A-V:0.000 [350:42]
1 duplicate frame(s)!
Pos: 197.2s 4932f (82%) 78.06fps Trem: 0min 11mb A-V:0.000 [350:42]
1 duplicate frame(s)!
Pos: 197.4s 4935f (82%) 78.09fps Trem: 0min 11mb A-V:0.000 [350:42]
1 duplicate frame(s)!
Pos: 199.9s 4998f (82%) 78.44fps Trem: 0min 11mb A-V:0.000 [346:42]
1 duplicate frame(s)!
Pos: 200.0s 5001f (82%) 78.47fps Trem: 0min 11mb A-V:0.000 [346:42]
1 duplicate frame(s)!
Pos: 200.1s 5004f (82%) 78.50fps Trem: 0min 11mb A-V:0.000 [346:42]
1 duplicate frame(s)!
Pos: 200.2s 5007f (82%) 78.52fps Trem: 0min 11mb A-V:0.000 [346:42]
1 duplicate frame(s)!
Pos: 200.4s 5010f (82%) 78.55fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 200.5s 5013f (82%) 78.58fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 200.6s 5016f (82%) 78.61fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 200.7s 5019f (82%) 78.63fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 200.8s 5022f (82%) 78.66fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 201.0s 5025f (82%) 78.69fps Trem: 0min 11mb A-V:0.000 [345:42]
1 duplicate frame(s)!
Pos: 201.1s 5028f (83%) 78.72fps Trem: 0min 11mb A-V:0.000 [344:42]
1 duplicate frame(s)!
Pos: 201.1s 5029f (83%) 78.73fps Trem: 0min 11mb A-V:0.000 [344:42]
1 duplicate frame(s)!
Pos: 260.5s 6514f (100%) 82.86fps Trem: 0min 10mb A-V:0.000 [296:43]
Flushing video frames.
Writing index...
Video stream: 296.333 kbit/s (37041 B/s) size: 9650073 bytes
260.520 secs 6514 frames
Audio stream: 43.554 kbit/s (5444 B/s) size: 1414917 bytes 259.892 secs
More information about the MEncoder-users
mailing list