[FFmpeg-user] telecine pattern 5555 - Judder-free, 60 FPS telecine (?)

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Sun Mar 29 13:58:50 EEST 2020


Basically, I have successfully telecined 24 FPS video to a higher frame rate and totally banished 
judder on a 60Hz TV (which should be true of 120Hz TV, too). WOO-HOO!

After searching the net all night, I found one sample of a telecine command that used the 'pattern' 
parameter -- see output (below).

Deinterlacing didn't work, and the audio is trashed, but I'm going to ignore those for now.

My big issue is this:
With a soft-telecined, 24/1.001 FPS source, and with a telecine pattern of 5555 (i.e., 8 fields to 
20 fields), the output MKV should be 60/1.001 FPS. But it's not 60/1.001 FPS.

It's 75/1.001 FPS.

That's totally mystifying to me. Any idea how I can fix it?

Regards,
Mark.

 >ffmpeg -i H:\VIDEO_TS\VTS_01_1.VOB -vf "telecine=pattern=5555" -deinterlace -y TEST.MKV
ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg developers
   built with gcc 9.1.1 (GCC) 20190807
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls 
--enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora 
--enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp 
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex 
--enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid 
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.101 / 58. 55.101
   libavformat    58. 31.104 / 58. 31.104
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.101 /  7. 58.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
Input #0, mpeg, from 'h:\VIDEO_TS\VTS_01_1.VOB':
   Duration: 00:22:07.55, start: 0.066633, bitrate: 6470 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 
16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
     Stream #0:2[0x83]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:4[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:5[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream mapping:
   Stream #0:1 -> #0:0 (mpeg2video (native) -> h264 (libx264))
   Stream #0:2 -> #0:1 (ac3 (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[Parsed_telecine_0 @ 000002b0c85ead80] Telecine pattern 5555 yields up to 3 frames per frame, pts 
advance factor: 8/20
[libx264 @ 000002b0c8b9aa00] using SAR=32/27
[libx264 @ 000002b0c8b9aa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000002b0c8b9aa00] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 000002b0c8b9aa00] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 
2003-2019 - 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=12 
lookahead_threads=2 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 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, matroska, to 'C:\ToDo\test.mkv':
   Metadata:
     encoder         : Lavf58.31.104
     Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 
q=-1--1, 74.93 fps, 1k tbn, 74.93 tbc
     Metadata:
       encoder         : Lavc58.55.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: 18446744073709551615
     Stream #0:1: Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, 5.1(side), fltp
     Metadata:
       encoder         : Lavc58.55.101 libvorbis
[mpeg @ 000002b0c85293c0] New subtitle stream 0:6 at pos:4487182 and DTS:6.106s/s speed=6.41x
[mpeg @ 000002b0c85293c0] New subtitle stream 0:7 at pos:4489230 and DTS:6.106s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:8 at pos:55965710 and DTS:71.4713sspeed=5.57x
[mpeg @ 000002b0c85293c0] New subtitle stream 0:9 at pos:55967758 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:10 at pos:55969806 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:11 at pos:55971854 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:12 at pos:55982094 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:13 at pos:55984142 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:14 at pos:55986190 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:15 at pos:55988238 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:16 at pos:55990286 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:17 at pos:55992334 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:18 at pos:55994382 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:19 at pos:55996430 and DTS:71.4713s
[mpeg @ 000002b0c85293c0] New subtitle stream 0:20 at pos:60086286 and DTS:77.0102speed=5.53x
[mpeg @ 000002b0c85293c0] New subtitle stream 0:21 at pos:60088334 and DTS:77.0102s
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp= 874.5kbits/s speed=5.16x
     Last message repeated 20 times
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp= 881.0kbits/s speed=5.15x
     Last message repeated 40 times
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp= 888.2kbits/s speed=5.14x
     Last message repeated 29 times

::::::::::::::::::::::::::::::::::::
::                                ::
::   Thousands of similar lines   ::
::                                ::
::::::::::::::::::::::::::::::::::::

[matroska @ 000002b0c853d080] Starting new cluster due to timestamp=1000.0kbits/s speed=4.65x
     Last message repeated 45 times
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp= 999.1kbits/s speed=4.65x
     Last message repeated 47 times
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp= 998.8kbits/s speed=4.65x
     Last message repeated 20 times
[mpeg2video @ 000002b0c8b9b7c0] ac-tex damaged at 16 17
[mpeg2video @ 000002b0c8b9b7c0] Warning MVs not available
[mpeg2video @ 000002b0c8b9b7c0] concealing 585 DC, 585 AC, 585 MV errors in B frame
H:\VIDEO_TS\VTS_01_1.VOB: corrupt decoded frame in stream 1
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp
[ac3 @ 000002b0c8b9bc40] incomplete frame
H:\VIDEO_TS\VTS_01_1.VOB: corrupt decoded frame in stream 2
[matroska @ 000002b0c853d080] Starting new cluster due to timestamp
frame=79575 fps=278 q=-1.0 Lsize=  162271kB time=00:22:07.54 bitrate=1001.3kbits/s speed=4.64x
video:122768kB audio:37691kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 
1.129738%
[libx264 @ 000002b0c8b9aa00] frame I:564   Avg QP:21.02  size: 18152
[libx264 @ 000002b0c8b9aa00] frame P:24177 Avg QP:25.56  size:  3591
[libx264 @ 000002b0c8b9aa00] frame B:54834 Avg QP:25.29  size:   523
[libx264 @ 000002b0c8b9aa00] consecutive B-frames:  2.7% 10.8% 16.7% 69.9%
[libx264 @ 000002b0c8b9aa00] mb I  I16..4: 24.0% 56.8% 19.2%
[libx264 @ 000002b0c8b9aa00] mb P  I16..4:  0.8%  2.6%  0.6%  P16..4: 25.3%  6.6%  4.0%  0.0%  0.0% 
   skip:60.1%
[libx264 @ 000002b0c8b9aa00] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 15.7%  0.6%  0.1%  direct: 
1.3%  skip:82.1%  L0:46.5% L1:51.6% BI: 1.9%
[libx264 @ 000002b0c8b9aa00] 8x8 transform intra:62.3% inter:73.8%
[libx264 @ 000002b0c8b9aa00] coded y,uvDC,uvAC intra: 57.2% 46.5% 14.8% inter: 4.9% 2.5% 0.1%
[libx264 @ 000002b0c8b9aa00] i16 v,h,dc,p: 31% 45%  6% 18%
[libx264 @ 000002b0c8b9aa00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 21%  5%  6%  8%  6%  7%  7%
[libx264 @ 000002b0c8b9aa00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 40% 13%  4%  6%  6%  5%  5%  5%
[libx264 @ 000002b0c8b9aa00] i8c dc,h,v,p: 59% 21% 16%  4%
[libx264 @ 000002b0c8b9aa00] Weighted P-Frames: Y:2.5% UV:0.5%
[libx264 @ 000002b0c8b9aa00] ref P L0: 56.9% 16.2% 19.7%  7.1%  0.1%
[libx264 @ 000002b0c8b9aa00] ref B L0: 85.3%  9.1%  5.5%
[libx264 @ 000002b0c8b9aa00] ref B L1: 98.5%  1.5%
[libx264 @ 000002b0c8b9aa00] kb/s:946.94


More information about the ffmpeg-user mailing list