What am I doing wrong?

The 'interleave' filter is not completing. Does it not recognize end-of-frames for [C]? What do I need to do?

Note: I've tried runs with 2 differing stream sources.
Note: When I break out at the end (Ctrl-C), the target video plays, so the problem is not unsurmountable, just irritating.

Thanks,
Mark.


SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
SET TELECINE=telecine=pattern=5,split[A][B]
SET BLOCK=[A]select='not(bitor(eq(mod(n+1\,10)\,3)\,eq(mod(n+1\,10)\,8)))'[C]
SET 
PASS=[B]select='bitor(eq(mod(n+1\,10)\,3)\,eq(mod(n+1\,10)\,8))',smartblur[D]
SET INTERLEAVE=[C][D]interleave
FOR %X IN ("M:\Test Videos\23.976p.mp4") DO SET OUT=C:\AVOut\%~nX.MKV
SET OUT=C:\AVOut\23.976p.MKV
ffmpeg -i %1 -filter_complex "%TELECINE%,%BLOCK%,%PASS%,%INTERLEAVE%" -map 0 -c:v libx264 -crf 28 -c:a copy -c:s copy "%OUT%"

ffmpeg -i "M:\Test Videos\23.976p.mp4" -filter_complex "telecine=pattern=5,split[A][B],[A]select='not(bitor(eq(mod(n+1\,10)\,3)\,eq(mod(n+1\,10)\,8)))'[C],[B]select='bitor(eq(mod(n+1\,10)\,3)\,eq(mod(n+1\,10)\,8))',smartblur[D],[C][D]interleave" -map 0 -c:v libx264 -crf 28 -c:a copy -c:s copy "C:\AVOut\23.976p.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, mov,mp4,m4a,3gp,3g2,mj2, from 'M:\Test Videos\23.976p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isom
    creation_time   : 2020-04-02T02:32:09.000000Z
  Duration: 00:00:10.01, start: 0.000000, bitrate: 542 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 539 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2020-04-02T02:32:09.000000Z
      handler_name    : L-SMASH Video Media Handler
      encoder         : AVC Coding
[Parsed_telecine_0 @ 000001b40c78f340] Telecine pattern 5 yields up to 3 frames per frame, pts advance factor: 2/5
File 'C:\AVOut\23.976p.MKV' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 (h264) -> telecine
  interleave -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[Parsed_telecine_0 @ 000001b40c85ee00] Telecine pattern 5 yields up to 3 frames per frame, pts advance factor: 2/5
[libx264 @ 000001b40c78da00] using SAR=1/1
[libx264 @ 000001b40c78da00] MB rate (8160000000) > level limit (16711680)
[libx264 @ 000001b40c78da00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX FMA3 BMI2 AVX2
[libx264 @ 000001b40c78da00] profile High, level 6.2, 4:2:0, 8-bit
[libx264 @ 000001b40c78da00] 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=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'C:\AVOut\23.976p.MKV':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isom
    encoder         : Lavf58.31.104
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1k tbn, 1000k tbc (default)
    Metadata:
      encoder         : Lavc58.55.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: 
18446744073709551615
frame=  598 fps= 50 q=-1.0 Lsize=     271kB time=00:00:09.92 bitrate= 
223.4kbits/s speed=0.824x
video:266kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 1.842582%
[libx264 @ 000001b40c78da00] frame I:3     Avg QP:19.21  size:  6450
[libx264 @ 000001b40c78da00] frame P:213   Avg QP:28.22  size:   857
[libx264 @ 000001b40c78da00] frame B:382   Avg QP:25.59  size:   183
[libx264 @ 000001b40c78da00] consecutive B-frames:  1.0% 30.1% 34.1% 34.8%
[libx264 @ 000001b40c78da00] mb I  I16..4: 25.5% 71.9%  2.6%
[libx264 @ 000001b40c78da00] mb P I16..4: 0.4% 0.6% 0.1% P16..4: 2.1% 0.2% 0.0% 0.0% 0.0% skip:96.6% [libx264 @ 000001b40c78da00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.4% 0.0% 0.0% direct: 0.0% skip:98.5% L0:52.9% L1:46.6% BI: 0.5%
[libx264 @ 000001b40c78da00] 8x8 transform intra:64.2% inter:60.4%
[libx264 @ 000001b40c78da00] coded y,uvDC,uvAC intra: 6.1% 16.5% 14.0% inter: 
0.0% 0.1% 0.1%
[libx264 @ 000001b40c78da00] i16 v,h,dc,p: 75% 22%  3%  0%
[libx264 @ 000001b40c78da00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 10% 45%  1%  0% 
 1%  0%  2%  0%
[libx264 @ 000001b40c78da00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 19% 21%  3%  2% 
 6%  2%  5%  1%
[libx264 @ 000001b40c78da00] i8c dc,h,v,p: 69% 12% 16%  2%
[libx264 @ 000001b40c78da00] Weighted P-Frames: Y:5.6% UV:4.7%
[libx264 @ 000001b40c78da00] ref P L0: 69.8%  3.5% 18.0%  7.4%  1.2%
[libx264 @ 000001b40c78da00] ref B L0: 79.6% 14.7%  5.7%
[libx264 @ 000001b40c78da00] ref B L1: 97.8%  2.2%
[libx264 @ 000001b40c78da00] kb/s:217.78
Exiting normally, received signal 2.
Terminate batch job (Y/N)?
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to