[FFmpeg-user] Audio sync problem

Bojan Petrović bojan85 at gmail.com
Tue Jul 31 23:43:31 CEST 2012


That's great! Splitting the input did the trick.

This the command I used now:
ffmpeg.exe -f dshow -i video="screen-capture-recorder" -f dshow -i
audio="virtual-audio-capturer" -vcodec libx264 -crf 0 -preset UltraFast
-tune ZeroLatency -acodec ac3 -t 7 asdf.mp4

So do you have any clue why it's not working with sources combined? And are
there any downsides of split input?

And I am getting "real-time buffer 189% full! frame dropped!" messages.
Should I worry about those?

Here's the whole output:

ffmpeg version N-42704-g85761ef Copyright (c) 2000-2012 the FFmpeg
developers
built on Jul 20 2012 20:37:16 with gcc 4.7.1 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-runtime-cpudetect
--enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 51. 65.100 / 51. 65.100
libavcodec 54. 42.100 / 54. 42.100
libavformat 54. 18.100 / 54. 18.100
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 2.100 / 3. 2.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[dshow @ 0052e840] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from 'video=screen-capture-recorder':
Duration: N/A, start: 56018.366000, bitrate: N/A
Stream #0:0: Video: rawvideo, rgb555le, 1600x900, 30 tbr, 10000k tbn, 30 tbc
[dshow @ 0287b3c0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, dshow, from 'audio=virtual-audio-capturer':
Duration: N/A, start: 56018.404000, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
[libx264 @ 02877220] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle Cache64
[libx264 @ 02877220] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 02877220] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0
ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0
me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=0 chroma_qp_offset=0 threads=2 lookahead_threads=2
sliced_threads=1 slices=2 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0
intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, mp4, to 'asdf.mp4':
Metadata:
encoder : Lavf54.18.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 1600x900,
q=-1--1, 10000k tbn, 30 tbc
Stream #0:1: Audio: ac3 ([165][0][0][0] / 0x00A5), 44100 Hz, stereo, flt,
192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Stream #1:0 -> #0:1 (pcm_s16le -> ac3)
Press [q] to stop, [?] for help
frame= 16 fps=0.0 q=0.0 size= 701kB time=00:00:00.48 bitrate=11914.0kbits/s
frame= 30 fps= 29 q=0.0 size= 748kB time=00:00:00.89 bitrate=6813.0kbits/s
dup=1 drop=0
frame= 45 fps= 29 q=0.0 size= 955kB time=00:00:01.38 bitrate=5638.0kbits/s
dup=1 drop=0
frame= 60 fps= 29 q=0.0 size= 1014kB time=00:00:01.90 bitrate=4352.2kbits/s
dup=1 drop=0
frame= 76 fps= 30 q=0.0 size= 1127kB time=00:00:02.43 bitrate=3799.5kbits/s
dup=1 drop=0
frame= 89 fps= 29 q=0.0 size= 1199kB time=00:00:02.88 bitrate=3406.4kbits/s
dup=1 drop=0
real-time buffer 189% full! frame dropped!
frame= 107 fps= 29 q=0.0 size= 1371kB time=00:00:03.47
bitrate=3230.3kbits/s dup=7 drop=0
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
Last message repeated 2 times
frame= 116 fps= 28 q=0.0 size= 1738kB time=00:00:03.72
bitrate=3826.2kbits/s dup=7 drop=3
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
Last message repeated 5 times
frame= 125 fps= 27 q=0.0 size= 1803kB time=00:00:04.06
bitrate=3630.4kbits/s dup=8 drop=3
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
Last message repeated 3 times
frame= 144 fps= 28 q=0.0 size= 4129kB time=00:00:04.69
bitrate=7202.9kbits/s dup=16 drop=3
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
frame= 162 fps= 28 q=0.0 size= 4302kB time=00:00:05.28
bitrate=6664.3kbits/s dup=21 drop=3
real-time buffer 189% full! frame dropped!
frame= 178 fps= 29 q=0.0 size= 4385kB time=00:00:05.88
bitrate=6109.0kbits/s dup=22 drop=3
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
Last message repeated 2 times
frame= 190 fps= 28 q=0.0 size= 4435kB time=00:00:06.26
bitrate=5800.8kbits/s dup=23 drop=3
real-time buffer 189% full! frame dropped!
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!
frame= 208 fps= 29 q=0.0 size= 4776kB time=00:00:06.82
bitrate=5736.0kbits/s dup=28 drop=3
real-time buffer 189% full! frame dropped!
frame= 211 fps= 29 q=0.0 Lsize= 4812kB time=00:00:06.99
bitrate=5636.1kbits/s dup=29 drop=3

video:4642kB audio:164kB subtitle:0 global headers:0kB muxing overhead
0.131516%
[libx264 @ 02877220] frame I:1 Avg QP: 0.00 size:665684
[libx264 @ 02877220] frame P:210 Avg QP: 0.00 size: 19461
[libx264 @ 02877220] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 02877220] mb P I16..4: 41.3% 0.0% 0.0% P16..4: 0.4% 0.0% 0.0%
0.0% 0.0% skip:58.4%
[libx264 @ 02877220] coded y,u,v intra: 1.8% 1.8% 1.7% inter: 0.3% 0.3% 0.3%
[libx264 @ 02877220] i16 v,h,dc,p: 97% 3% 0% 0%
[libx264 @ 02877220] kb/s:5405.68
[dshow @ 0052e840] real-time buffer 189% full! frame dropped!

On 31 July 2012 20:14, Roger Pack <rogerdpack2 at gmail.com> wrote:

> > gives good video BUT audio is too fast and choppy
> > ffmpeg.exe -f dshow -i
> > video="UScreenCapture":audio="virtual-audio-capturer" -vcodec libx264
> -crf
> > 0 -preset UltraFast -tune ZeroLatency -acodec ac3 -t 10 asdf.mp4
>
> Have you tried with "split" input, one with -i video= and one with -i
> audio=?
> In general though, it's a problem I want to/wish to solve but I'm not
> sure why it fails.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list