[FFmpeg-trac] #2696(undetermined:new): Audio/Video sync issues when reducing fps from 59.94 to 29.97
FFmpeg
trac at avcodec.org
Sun Jun 23 20:42:37 CEST 2013
#2696: Audio/Video sync issues when reducing fps from 59.94 to 29.97
-------------------------------------+-------------------------------------
Reporter: smblr75 | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by smblr75):
Thanks for the quick reply. I took the latest ffmpeg and x264 from the
version control and rebuilt ffmpeg. I still see the same lip sync issue.
Uploaded the file at http://www.datafilehost.com/download-cacda369.html
{{{
ffmpeg -i dejavu_orig.mp4 -r 29.97 -s 848x476 -g 15 ff_2997_gop_15.mp4
ffmpeg version N-54152-g730e07f Copyright (c) 2000-2013 the FFmpeg
developers
built on Jun 23 2013 13:27:07 with gcc 4.4.6 (GCC) 20120305 (Red Hat
4.4.6-4)
configuration: --enable-gpl --enable-version3 --enable-zlib --enable-
bzlib --enable-pthreads --enable-libvorbis --enable-libtheora --enable-
libspeex --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-
libopencore_amrwb --enable-libopencore_amrnb --enable-libfdk_aac --enable-
libvpx --enable-libgsm --enable-nonfree --enable-shared --enable-static
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dejavu_orig.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-06-10 21:03:17
Duration: 00:02:41.34, start: 0.000000, bitrate: 10227 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
stereo, s16, 1536 kb/s
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720, 8684 kb/s, 59.94 fps, 59.94 tbr, 5994 tbn, 11988 tbc
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
[libx264 @ 0x12ab400] using cpu capabilities: MMX2 SSE Cache64 BMI1
[libx264 @ 0x12ab400] profile High, level 3.1
[libx264 @ 0x12ab400] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 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=2 keyint=15 keyint_min=1
scenecut=40 intra_refresh=0 rc_lookahead=15 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'ff_2997_gop_15.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf55.9.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 848x476, q=-1--1, 11988 tbn, 29.97 tbc
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040),
48000 Hz, stereo, s16, 139 kb/s
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> libfdk_aac)
Press [q] to stop, [?] for help
frame= 4838 fps= 42 q=-1.0 Lsize= 23685kB time=00:02:41.36
bitrate=1202.4kbits/s dup=0 drop=4833
video:20764kB audio:2751kB subtitle:0 global headers:0kB muxing overhead
0.725098%
[libx264 @ 0x12ab400] frame I:331 Avg QP:19.79 size: 42081
[libx264 @ 0x12ab400] frame P:1844 Avg QP:24.27 size: 3090
[libx264 @ 0x12ab400] frame B:2663 Avg QP:26.69 size: 614
[libx264 @ 0x12ab400] consecutive B-frames: 22.1% 10.9% 7.5% 59.4%
[libx264 @ 0x12ab400] mb I I16..4: 12.1% 53.8% 34.1%
[libx264 @ 0x12ab400] mb P I16..4: 1.8% 3.1% 1.0% P16..4: 19.5% 5.4%
3.4% 0.0% 0.0% skip:65.8%
[libx264 @ 0x12ab400] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 20.4% 1.1%
0.2% direct: 0.3% skip:77.9% L0:42.7% L1:53.7% BI: 3.7%
[libx264 @ 0x12ab400] 8x8 transform intra:53.2% inter:76.5%
[libx264 @ 0x12ab400] coded y,uvDC,uvAC intra: 71.1% 47.7% 29.2% inter:
4.1% 4.7% 0.4%
[libx264 @ 0x12ab400] i16 v,h,dc,p: 29% 39% 4% 28%
[libx264 @ 0x12ab400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 12% 25% 8% 9%
7% 10% 6% 6%
[libx264 @ 0x12ab400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 12% 5% 8%
7% 8% 5% 5%
[libx264 @ 0x12ab400] i8c dc,h,v,p: 61% 18% 17% 4%
[libx264 @ 0x12ab400] Weighted P-Frames: Y:1.6% UV:1.2%
[libx264 @ 0x12ab400] ref P L0: 68.4% 11.2% 13.2% 7.1% 0.0%
[libx264 @ 0x12ab400] ref B L0: 81.2% 14.6% 4.3%
[libx264 @ 0x12ab400] ref B L1: 92.6% 7.4%
[libx264 @ 0x12ab400] kb/s:1053.66
}}}
Note: I also increased IFrame rate to 1 every 1/2 second (to match the
source video).
Also tried mpeg4 instead of h264 as recommended but still see the same
issue. Uploaded at http://www.datafilehost.com/download-81b0bed0.html
{{{
ffmpeg -i dejavu_orig.mp4 -r 29.97 -s 848x476 -g 15 -vcodec mpeg4 -acodec
aac -strict -2 -b:v 1500k mpeg4_2997_gop_15.mp4
ffmpeg version N-54152-g730e07f Copyright (c) 2000-2013 the FFmpeg
developers
built on Jun 23 2013 13:27:07 with gcc 4.4.6 (GCC) 20120305 (Red Hat
4.4.6-4)
configuration: --enable-gpl --enable-version3 --enable-zlib --enable-
bzlib --enable-pthreads --enable-libvorbis --enable-libtheora --enable-
libspeex --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-
libopencore_amrwb --enable-libopencore_amrnb --enable-libfdk_aac --enable-
libvpx --enable-libgsm --enable-nonfree --enable-shared --enable-static
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dejavu_orig.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-06-10 21:03:17
Duration: 00:02:41.34, start: 0.000000, bitrate: 10227 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
stereo, s16, 1536 kb/s
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720, 8684 kb/s, 59.94 fps, 59.94 tbr, 5994 tbn, 11988 tbc
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
File 'mpeg4_2997_gop_15.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'mpeg4_2997_gop_15.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf55.9.100
Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p,
848x476, q=2-31, 1500 kb/s, 11988 tbn, 29.97 tbc
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, fltp, 128 kb/s
Metadata:
creation_time : 2013-06-10 21:10:02
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> mpeg4)
Stream #0:0 -> #0:1 (pcm_s16le -> aac)
Press [q] to stop, [?] for help
frame= 4838 fps= 42 q=2.0 Lsize= 32180kB time=00:02:41.42
bitrate=1633.0kbits/s dup=0 drop=4833
video:29510kB audio:2532kB subtitle:0 global headers:0kB muxing overhead
0.431357%
}}}
I will try to get rhozet EULA for you.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2696#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list