[FFmpeg-user] Issue with timecode burn-in with 29.97 file that reports tbc as 59.94
Christian Johannesen
chrisjohannesen at gmail.com
Wed Mar 11 18:58:59 CET 2015
I'm attempting to create a QuickTime proxy with H.264 video and multiple
tracks of aac audio, timecode track & timecode burn-in.
My source is 29.97 fps, but the tbc is reported as 59.94 and if I do not
pass -r 29.97 before -map 0:v the output proxy is encoded at 59.94 fps.
But even though I have r=29.97 set for drawtext, the frame rate of the
drawtext overlay advances two frames at a time and does not stay synced to
the timecode track inserted in the output file. Is there anything I can do
to override the input tbc?
ffmpeg -guess_layout_max 0 -i
D:\MEDIA\source_100i_2_track_8_channel_starting_0-1.mxf -filter_complex
"[0:1]pan=stereo|c0=c0|c1=c1[a1];[0:1]pan=stereo|c0=c2|c1=c3[a2];[0:1]pan=stereo|c0=c4|c1=c5[a3];[0:1]pan=stereo|c0=c6|c1=c7[a4];[0:2]pan=stereo|c0=c0|c1=c1[a5];[0:2]pan=stereo|c0=c2|c1=c3[a6]"
-r 29.97 -map 0:v -pix_fmt yuv420p -vf
yadif=deint=interlaced:mode=1,scale=768x432,drawtext=fontfile=c\\:\\\\Windows\\\\Fonts\\\\DroidSansMono.ttf:timecode='00\:59\:58\;04':r=29.97:x=(w-tw)/2:y=h-(2*lh):fontcolor=white:box=1:boxcolor=0x00000099
-c:v libx264 -profile:v main -level 3.1 -sc_threshold 0 -g 60 -keyint_min
60 -preset slow -crf 22 -maxrate 996k -bufsize 1835k -map "[a1]" -c:a
libvo_aacenc -b:a 128k -map "[a2]" -c:a libvo_aacenc -b:a 128k -map "[a3]"
-c:a libvo_aacenc -b:a 128k -map "[a4]" -c:a libvo_aacenc -b:a 128k -map
"[a5]" -c:a libvo_aacenc -b:a 128k -map "[a6]" -c:a libvo_aacenc -b:a 128k
-movflags faststart -timecode 00:59:58;04
D:\MEDIA\source_100i_2_track_8_channel_starting_0-1_proxy_768x432.mov
ffmpeg version N-70606-g2e5605f Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-lzma --enable-decklink --enable-zlib
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 12.100 / 5. 12.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mxf, from
'D:\MEDIA\source_100i_2_track_8_channel_starting_0-1.mxf':
Metadata:
product_name : MXFTk Advanced
uid : b6e3a4d0-c66b-11e4-9de7-78acc098f62d
generation_uid : b6e3a4d0-c66b-11e4-9de8-78acc098f62d
company_name : OpenCube
application_platform: Microsoft Windows 7 Professional Service Pack 1
(Build 7601)
product_uid : 3a4fe380-0d01-11e4-869f-3cd92b5c1dfc
product_version : 2.7.0.20141127
modification_date: 2015-03-09 10:51:06
material_package_umid:
0x060A2B340101010501010D2013000000A431B980C66B11E49DE378ACC098F62D
timecode : 00:59:58;04
Duration: 00:00:34.67, start: 0.000000, bitrate: 118346 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR 1:1
DAR 16:9], 100000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
Metadata:
file_package_umid:
0x060A2B340101010501010D2013000000A431E090C66B11E49DE378ACC098F62D
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 8 channels, s32 (24 bit), 9216
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D2013000000A431E090C66B11E49DE378ACC098F62D
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 8 channels, s32 (24 bit), 9216
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D2013000000A431E090C66B11E49DE378ACC098F62D
[Parsed_pan_0 @ 0000000004d03240] Pure channel mapping detected: 0 1
[Parsed_pan_1 @ 0000000004d03900] Pure channel mapping detected: 2 3
[Parsed_pan_2 @ 0000000004d02f40] Pure channel mapping detected: 4 5
[Parsed_pan_3 @ 0000000004d03540] Pure channel mapping detected: 6 7
[Parsed_pan_4 @ 0000000004d036c0] Pure channel mapping detected: 0 1
[Parsed_pan_5 @ 0000000004d02dc0] Pure channel mapping detected: 2 3
[libx264 @ 0000000004dafa20] using SAR=1/1
[libx264 @ 0000000004dafa20] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0000000004dafa20] profile Main, level 3.1
[libx264 @ 0000000004dafa20] 264 - core 146 r2538 121396c - H.264/MPEG-4
AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html -
options: cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0
cqm=0 dead
zone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=60 lookahead_threads=3
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=60 keyint_min=31 scenecut=0
intra_refresh=0 rc_lookahea
d=50 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
vbv_maxrate=996 vbv_bufsize=1835 crf_max=0.0 nal_hrd=none filler=0
ip_ratio=1.40 aq=1:1.00
Output #0, mov, to
'D:\MEDIA\source_100i_2_track_8_channel_starting_0-1_proxy_768x432.mov':
Metadata:
product_name : MXFTk Advanced
uid : b6e3a4d0-c66b-11e4-9de7-78acc098f62d
generation_uid : b6e3a4d0-c66b-11e4-9de8-78acc098f62d
company_name : OpenCube
application_platform: Microsoft Windows 7 Professional Service Pack 1
(Build 7601)
product_uid : 3a4fe380-0d01-11e4-869f-3cd92b5c1dfc
product_version : 2.7.0.20141127
modification_date: 2015-03-09 10:51:06
material_package_umid:
0x060A2B340101010501010D2013000000A431B980C66B11E49DE378ACC098F62D
timecode : 00:59:58;04
encoder : Lavf56.25.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
768x432 [SAR 1:1 DAR 16:9], q=-1--1, max. 996 kb/s, 29.97 fps, 11988 tbn,
29.97 tbc
Metadata:
file_package_umid:
0x060A2B340101010501010D2013000000A431E090C66B11E49DE378ACC098F62D
encoder : Lavc56.26.100 libx264
Stream #0:1: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream #0:2: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream #0:3: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream #0:4: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream #0:5: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream #0:6: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.26.100 libvo_aacenc
Stream mapping:
Stream #0:1 (pcm_s24le) -> pan (graph 0)
Stream #0:1 (pcm_s24le) -> pan (graph 0)
Stream #0:1 (pcm_s24le) -> pan (graph 0)
Stream #0:1 (pcm_s24le) -> pan (graph 0)
Stream #0:2 (pcm_s24le) -> pan (graph 0)
Stream #0:2 (pcm_s24le) -> pan (graph 0)
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
pan (graph 0) -> Stream #0:1 (libvo_aacenc)
pan (graph 0) -> Stream #0:2 (libvo_aacenc)
pan (graph 0) -> Stream #0:3 (libvo_aacenc)
pan (graph 0) -> Stream #0:4 (libvo_aacenc)
pan (graph 0) -> Stream #0:5 (libvo_aacenc)
pan (graph 0) -> Stream #0:6 (libvo_aacenc)
Press [q] to stop, [?] for help
[mov @ 0000000005775b40] Starting second pass: moving the moov atom to the
beginning of the file2
frame= 1041 fps= 59 q=-1.0 Lsize= 5644kB time=00:00:34.67
bitrate=1333.4kbits/s dup=0 drop=1037
video:2293kB audio:3254kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.756519%
[libx264 @ 0000000004dafa20] frame I:18 Avg QP:19.87 size: 25164
[libx264 @ 0000000004dafa20] frame P:333 Avg QP:23.88 size: 4517
[libx264 @ 0000000004dafa20] frame B:690 Avg QP:26.01 size: 565
[libx264 @ 0000000004dafa20] consecutive B-frames: 7.3% 6.3% 19.9% 66.5%
[libx264 @ 0000000004dafa20] mb I I16..4: 49.4% 0.0% 50.6%
[libx264 @ 0000000004dafa20] mb P I16..4: 6.2% 0.0% 6.3% P16..4: 16.0%
5.8% 4.3% 0.0% 0.0% skip:61.5%
[libx264 @ 0000000004dafa20] mb B I16..4: 0.1% 0.0% 0.2% B16..8: 13.0%
1.7% 0.4% direct: 0.6% skip:84.1% L0:45.3% L1:51.8% BI: 2.9%
[libx264 @ 0000000004dafa20] direct mvs spatial:95.2% temporal:4.8%
[libx264 @ 0000000004dafa20] coded y,uvDC,uvAC intra: 39.8% 45.1% 31.4%
inter: 2.3% 3.7% 1.1%
[libx264 @ 0000000004dafa20] i16 v,h,dc,p: 50% 31% 7% 12%
[libx264 @ 0000000004dafa20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 17% 18% 8%
8% 7% 9% 7% 10%
[libx264 @ 0000000004dafa20] i8c dc,h,v,p: 50% 32% 14% 4%
[libx264 @ 0000000004dafa20] Weighted P-Frames: Y:8.1% UV:5.7%
[libx264 @ 0000000004dafa20] ref P L0: 66.7% 6.9% 12.0% 6.6% 5.8% 2.0%
0.0%
[libx264 @ 0000000004dafa20] ref B L0: 80.9% 11.1% 5.7% 2.4%
[libx264 @ 0000000004dafa20] ref B L1: 94.9% 5.1%
[libx264 @ 0000000004dafa20] kb/s:540.57
>
More information about the ffmpeg-user
mailing list