[FFmpeg-user] Audio is out of sync

chappy tuyenphan2010 at gmail.com
Mon Apr 9 17:03:34 CEST 2012


> Please provide the complete, uncut console output together
> with the command line. 

localadmin at u11:~$ ffmpeg -f alsa -i hw:1,0 -vol 16000 -f video4linux2 -i
/dev/video0 -vcodec libx264 -preset superfast -t 3 Test.mov 
ffmpeg version git-2012-03-30-3e1ff8e Copyright (c) 2000-2012 the FFmpeg
developers
  built on Mar 29 2012 09:49:06 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
--enable-x11grab
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 66.101 /  2. 66.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
[alsa @ 0xae02b00] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'hw:1,0':
  Duration: N/A, start: 1333957510.389761, bitrate: 1024 kb/s
    Stream #0:0: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
[video4linux2,v4l2 @ 0xae129a0] Estimating duration from bitrate, this may
be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1333957510.513805, bitrate: 124291 kb/s
    Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480,
124291 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
File 'Test.mov' already exists. Overwrite ? [y/N] y
w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[libx264 @ 0xae13640] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0xae13640] profile High, level 3.0
[libx264 @ 0xae13640] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=0 threads=3 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, mov, to 'Test.mov':
  Metadata:
    encoder         : Lavf54.3.100
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 720x480, q=-1--1,
30k tbn, 29.97 tbc
    Stream #0:1: Audio: aac (mp4a / 0x6134706D), 32000 Hz, 2 channels, s16,
128 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo -> libx264)
  Stream #0:0 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help
[alsa @ 0xae02b00] ALSA buffer xrun.
DTS 2510245, next:2630138 st:0 invalid droping
PTS 2510245, next:2630138 invalid droping st:0
DTS 2420166, next:2638138 st:0 invalid droping
PTS 2420166, next:2638138 invalid droping st:0
DTS 2344076, next:2646138 st:0 invalid droping
PTS 2344076, next:2646138 invalid droping st:0
DTS 2272773, next:2654138 st:0 invalid droping
PTS 2272773, next:2654138 invalid droping st:0
DTS 2206240, next:2662138 st:0 invalid droping
PTS 2206240, next:2662138 invalid droping st:0
DTS 2144402, next:2670138 st:0 invalid droping
PTS 2144402, next:2670138 invalid droping st:0
DTS 2087178, next:2678138 st:0 invalid droping
PTS 2087178, next:2678138 invalid droping st:0
DTS 2034474, next:2686138 st:0 invalid droping
PTS 2034474, next:2686138 invalid droping st:0
[alsa @ 0xae02b00] ALSA buffer xrun.
DTS 2867662, next:2881725 st:0 invalid droping
PTS 2867662, next:2881725 invalid droping st:0
DTS 2862843, next:2889725 st:0 invalid droping
PTS 2862843, next:2889725 invalid droping st:0
DTS 2858170, next:2897725 st:0 invalid droping
PTS 2858170, next:2897725 invalid droping st:0
DTS 2851878, next:2905725 st:0 invalid droping
PTS 2851878, next:2905725 invalid droping st:0
DTS 2846525, next:2913725 st:0 invalid droping
PTS 2846525, next:2913725 invalid droping st:0
DTS 2842034, next:2921725 st:0 invalid droping
PTS 2842034, next:2921725 invalid droping st:0
[alsa @ 0xae02b00] ALSA buffer xrun.
DTS 2934146, next:2946711 st:0 invalid droping
PTS 2934146, next:2946711 invalid droping st:0
DTS 2928980, next:2954711 st:0 invalid droping
PTS 2928980, next:2954711 invalid droping st:0
DTS 2924398, next:2962711 st:0 invalid droping
PTS 2924398, next:2962711 invalid droping st:0
DTS 2920384, next:2970711 st:0 invalid droping
PTS 2920384, next:2970711 invalid droping st:0
DTS 2916950, next:2978711 st:0 invalid droping
PTS 2916950, next:2978711 invalid droping st:0
DTS 2775795, next:2986711 st:0 invalid droping
PTS 2775795, next:2986711 invalid droping st:0
DTS 2664544, next:2994711 st:0 invalid droping
PTS 2664544, next:2994711 invalid droping st:0
DTS 2572903, next:3002711 st:0 invalid droping
PTS 2572903, next:3002711 invalid droping st:0
frame=   89 fps=0.0 q=23.0 size=     390kB time=00:00:02.56
bitrate=1244.4kbits/frame=   90 fps=0.0 q=10343451.0 Lsize=     484kB
time=00:00:02.93 bitrate=1349.4kbits/s dup=43 drop=0    
video:477kB audio:4kB global headers:0kB muxing overhead 0.531188%
[libx264 @ 0xae13640] frame I:1     Avg QP:19.37  size: 49004
[libx264 @ 0xae13640] frame P:23    Avg QP:17.42  size: 11639
[libx264 @ 0xae13640] frame B:66    Avg QP:19.44  size:  2590
[libx264 @ 0xae13640] consecutive B-frames:  2.2%  0.0%  0.0% 97.8%
[libx264 @ 0xae13640] mb I  I16..4: 21.0% 25.2% 53.9%
[libx264 @ 0xae13640] mb P  I16..4: 11.3%  0.9%  0.0%  P16..4: 64.8%  0.0% 
0.0%  0.0%  0.0%    skip:23.0%
[libx264 @ 0xae13640] mb B  I16..4:  0.2%  0.1%  0.0%  B16..8:  8.6%  0.0% 
0.0%  direct:28.9%  skip:62.3%  L0:21.9% L1:74.2% BI: 4.0%
[libx264 @ 0xae13640] 8x8 transform intra:12.7% inter:54.4%
[libx264 @ 0xae13640] coded y,uvDC,uvAC intra: 34.2% 96.4% 93.2% inter:
12.6% 33.6% 13.7%
[libx264 @ 0xae13640] i16 v,h,dc,p: 89%  2%  6%  2%
[libx264 @ 0xae13640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 21% 32%  6%  4%  4% 
6%  3% 13%
[libx264 @ 0xae13640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 13%  8%  7%  7% 
8%  6% 12%
[libx264 @ 0xae13640] i8c dc,h,v,p: 32% 39% 19% 10%
[libx264 @ 0xae13640] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0xae13640] kb/s:1299.04

Thanks in advance

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Audio-is-out-of-sync-tp4537705p4542995.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list