[FFmpeg-user] video delay after audio fix
funtastic
officemab at gmail.com
Sun Mar 4 21:18:05 CET 2012
Am 4. März 2012 19:22 schrieb Carl Eugen Hoyos <cehoyos at ag.or.at>:
> funtastic <officemab <at> gmail.com> writes:
>
> > Sorry for the missing details... (will provide them now in greater
> detail)
> > Please see the output of "ffmpeg -i share.mp4 -sameq output.mp4"
> > here: http://pastebin.com/n40GJG3s
>
> Please provide complete, uncut console output (that is everything that
> ffmpeg prints on the console) together with the command line you used here
> on this mailing lists, external resources may disappear.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
Sorry for that but:
I don't want to distribute private material or stuff
that is not intended for public distribution.
And: I don't want to paste stuff
that could be under copyright by somebody else....
Nevertheless, the same effects I described can be seen
with the following command:
ffmpeg -i rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov -vcodec copy
-acodec copy -ss 0.0001 -t 30 -y share.mp4
(BigBuckBunny is a free to distribute video from the Blender Foundation |
www.blender.org under the Creative Commons Attribution
3.0<http://creativecommons.org/licenses/by/3.0/>licencse)
(Big Buck Bunny video © Blender Foundation | www.bigbuckbunny.org)
Complete console output:
ffmpeg -i rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov -vcodec copy
-acodec copy -ss 0.0001 -t 30 -y share.mp4
ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the
Libav developers
built on Jan 4 2012 16:21:50 with gcc 4.6.1
configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared
--disable-static
WARNING: library configuration mismatch
avutil configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avcodec configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avformat configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avdevice configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avfilter configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
swscale configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
postproc configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
libavutil 51. 7. 0 / 51. 7. 0
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 3. 0 / 53. 3. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 52. 0. 0 / 52. 0. 0
[rtsp @ 0x9d362a0] Estimating duration from bitrate, this may be inaccurate
Seems stream 1 codec frame rate differs from container frame rate: 48.00
(48/1) -> 1000.00 (1000/1)
Input #0, rtsp, from 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov':
Metadata:
title : BigBuckBunny_175k.mov
Duration: 00:09:56.45, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: aac, 48000 Hz, stereo, s16
Stream #0.1: Video: h264 (Constrained Baseline), yuv420p, 240x160, 24
fps, 1k tbr, 90k tbn, 48 tbc
Output #0, mp4, to 'share.mp4':
Metadata:
title : BigBuckBunny_175k.mov
encoder : Lavf53.3.0
Stream #0.0: Video: ![0][0][0] / 0x0021, yuv420p, 240x160, q=2-31, 24
tbn, 24 tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press ctrl-c to stop encoding
frame= 718 fps= 25 q=-1.0 Lsize= 714kB time=30.02 bitrate=
195.0kbits/s
video:341kB audio:358kB global headers:0kB muxing overhead 2.147997%
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
With Totem, the video shows the choppy audio as described... other players
work better.
After applying the following command, the video gets its video delay at the
beginning (although this would be a tiny problem with this special
example...)
Other streams show some really bad video delay....
Please see the "multiple edit list entries, a/v desync might occur, patch
welcome" message I talked about earlier.
Output for:
ffmpeg -i share.mp4 -sameq output.mp4
ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the
Libav developers
built on Jan 4 2012 16:21:50 with gcc 4.6.1
configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared
--disable-static
WARNING: library configuration mismatch
avutil configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avcodec configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avformat configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avdevice configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
avfilter configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
swscale configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
postproc configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
libavutil 51. 7. 0 / 51. 7. 0
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 3. 0 / 53. 3. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 52. 0. 0 / 52. 0. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8d192a0] multiple edit list entries, a/v
desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'share.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : BigBuckBunny_175k.mov
encoder : Lavf53.3.0
Duration: 00:00:30.04, start: 0.000000, bitrate: 194 kb/s
Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 240x160,
93 kb/s, 23.90 fps, 24 tbr, 24 tbn, 48 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 97 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
File 'output.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x8d21740] w:240 h:160 pixfmt:yuv420p
Output #0, mp4, to 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : BigBuckBunny_175k.mov
encoder : Lavf53.3.0
Stream #0.0(und): Video: mpeg4, yuv420p, 240x160, q=2-31, 200 kb/s, 24
tbn, 24 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 64 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Multiple frames in a packet from stream 1
frame= 720 fps=219 q=0.0 Lsize= 1997kB time=29.99 bitrate= 545.3kbits/s
dup=2 drop=0
video:1737kB audio:241kB global headers:0kB muxing overhead 0.913233%
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thats all I can provide....
Regards,
Martin
More information about the ffmpeg-user
mailing list