Is there something about inputting raw frames

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there something about inputting raw frames

Mark Filipak (ffmpeg)
Is there something about inputting raw frames that I don't know?

I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
The vapoursynth script, 'Mark's.vpy', is known good.
The output of vapoursynth is known good.
I've tried to be careful to retain valid PTSs, but apparently have failed.
The output should be around 1200 frames, but 364 frames are dropped.
I've frame stepped through the target, 'Mark's_script_6.mkv', and the frames that are there are in
the correct order.
The only thing I can guess is that ffmpeg handles 48/1.001fps raw video frames in such a way that
PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
Can anyone see an error. Or, lacking an error, does anyone know of a workaround?

Thanks.

Mark's_script_6.cmd
=====
ECHO from vapoursynth import core>Mark's.vpy
ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
ECHO import havsfunc as havsfunc>>Mark's.vpy
ECHO video = havsfunc.InterFrame(video, Preset="medium", Tuning="smooth", InputType="2D",
NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
ECHO video.set_output()>>Mark's.vpy
vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe: -filter_complex
"setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3, select=not(eq(mod(n\,5)\,4))[3],
[2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0 1 2 2 3,
select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map 0:v -map 1:a -codec:v
libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy Mark's_script_6.mkv -y

PAUSE
@GOTO :EOF

+----------------------------------------------------------+ 1/12 second
[A.a_________________________][B.b_________________________] 24/1.001 FPS
[A.a__________][AB.ab________][B.b__________][BC.bc________] raw: havsfunc.InterFrame(...
NewNum=48000, NewDen=1001 ...)
[A.a_______][AB.ab_____][B.b_______][BC.bc_____][C.c_______] setpts=N*1001/60000/TB
------------------------------------------------------------
[A.a_______][AB.ab_____][B.b_______][BC.bc_____][BC.bc_____] shuffleframes=0 1 2 3 3
[A.a_______][AB.ab_____][B.b_______][BC.bc_____]             select=not(eq(mod(n\,5)\,4))
------------------------------------------------------------
[A~AB.a~ab_][AB~B.ab~b_][B~BC.b~bc_][BC~C.bc~c_][C~CD.c~cd_]
tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
[A~AB.a~ab_][AB~B.ab~b_][B~BC.b~bc_][B~BC.b~bc_][BC~C.bc~c_] shuffleframes=0 1 2 2 3
                                                 [BC~C.bc~c_] select=eq(mod(n\,5)\,4)
------------------------------------------------------------
[A.a_______][AB.ab_____][B.b_______][BC.bc_____][BC~C.bc~c_] interleave
=====

ffmpeg-20210212-001609.log
=====
ffmpeg started on 2021-02-12 at 00:16:09
Report written to "ffmpeg-20210212-001609.log"
Log level: 32
Command line:
ffmpeg -thread_queue_size 2048 -i pipe: -filter_complex "setpts=N*1001/60000/TB, split[1][2],
[1]shuffleframes=0 1 2 3 3, select=not(eq(mod(n\\,5)\\,4))[3],
[2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0 1 2 2 3,
select=eq(mod(n\\,5)\\,4)[4], [3][4]interleave" -i "Mark's_source.mkv" -map 0:v -map 1:a -codec:v
libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy "Mark's_script_6.mkv" -y
ffmpeg version N-100851-g9f38fac053 Copyright (c) 2000-2021 the FFmpeg developers
   built with gcc 9.3-win32 (GCC) 20200320
   configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3
--disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2
--enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
--enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom
--enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm
--enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband
--enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx26
libavutil      56. 64.100 / 56. 64.100
   libavcodec     58.119.100 / 58.119.100
   libavformat    58. 65.101 / 58. 65.101
   libavdevice    58. 11.103 / 58. 11.103
   libavfilter     7.100.100 /  7.100.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc    55.  8.100 / 55.  8.100
Input #0, yuv4mpegpipe, from 'pipe:':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 1920x1080, 47.95 fps,
47.95 tbr, 47.95 tbn, 47.95 tbc
[matroska,webm @ 0000018879c886c0] Could not find codec parameters for stream 3 (Subtitle:
hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #1, matroska,webm, from 'Mark's_source.mkv':
   Metadata:
     encoder         : libebml v1.4.0 + libmatroska v1.6.2
     creation_time   : 2021-01-23T03:12:17.000000Z
   Duration: 00:00:20.11, start: 0.000000, bitrate: 26228 kb/s
     Stream #1:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9],
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
     Metadata:
       BPS-eng         : 24046529
       DURATION-eng    : 00:00:20.020000000
       NUMBER_OF_FRAMES-eng: 480
       NUMBER_OF_BYTES-eng: 60176441
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #1:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, stereo, s32p (24 bit) (default)
     Metadata:
       BPS-eng         : 2085565
       DURATION-eng    : 00:00:20.096000000
       NUMBER_OF_FRAMES-eng: 1884
       NUMBER_OF_BYTES-eng: 5238940
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #1:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Metadata:
       BPS-eng         : 192000
       DURATION-eng    : 00:00:20.096000000
       NUMBER_OF_FRAMES-eng: 628
       NUMBER_OF_BYTES-eng: 482304
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #1:3(eng): Subtitle: hdmv_pgs_subtitle
     Metadata:
       BPS-eng         : 0
       DURATION-eng    : 00:00:00.000000000
       NUMBER_OF_FRAMES-eng: 0
       NUMBER_OF_BYTES-eng: 0
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
   Stream #0:0 (rawvideo) -> setpts
   interleave -> Stream #0:0 (libx265)
   Stream #1:1 -> #0:1 (copy)
   Stream #1:2 -> #0:2 (copy)
Output #0, matroska, to 'Mark's_script_6.mkv':
   Metadata:
     encoder         : Lavf58.65.101
     Stream #0:0: Video: hevc, yuv420p(progressive), 1920x1080, q=2-31, 1k tbn
     Metadata:
       encoder         : Lavc58.119.100 libx265
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
     Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, stereo, s32p (24 bit)
(default)
     Metadata:
       BPS-eng         : 2085565
       DURATION-eng    : 00:00:20.096000000
       NUMBER_OF_FRAMES-eng: 1884
       NUMBER_OF_BYTES-eng: 5238940
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:2(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
     Metadata:
       BPS-eng         : 192000
       DURATION-eng    : 00:00:20.096000000
       NUMBER_OF_FRAMES-eng: 628
       NUMBER_OF_BYTES-eng: 482304
       _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
       _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
frame=    1 fps=0.0 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=    1 fps=0.8 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=    6 fps=3.1 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=3 speed=   0x
frame=    7 fps=2.8 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=3 speed=   0x
frame=   10 fps=3.3 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=5 speed=   0x
frame=   13 fps=3.6 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=6 speed=   0x
frame=   16 fps=3.9 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=8 speed=   0x
frame=   19 fps=4.0 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=10 speed=   0x
frame=   22 fps=4.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=11 speed=   0x
frame=   24 fps=4.1 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=11 speed=   0x
frame=   27 fps=4.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=13 speed=   0x
frame=   27 fps=3.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=13 speed=   0x
frame=   29 fps=3.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=15 speed=   0x
frame=   30 fps=2.6 q=22.2 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=15 speed=   0x
frame=   32 fps=2.6 q=23.6 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
speed=0.0068x
frame=   32 fps=2.4 q=23.6 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
speed=0.00624x
frame=   33 fps=2.2 q=25.8 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
speed=0.0055x
frame=   35 fps=2.2 q=22.6 size=       4kB time=00:00:00.10 bitrate= 307.6kbits/s dup=0 drop=19
speed=0.00673x
frame=   36 fps=2.2 q=24.5 size=       4kB time=00:00:00.13 bitrate= 235.7kbits/s dup=0 drop=19
speed=0.00826x
frame=   37 fps=1.9 q=25.9 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
speed=0.0101x
frame=   38 fps=1.8 q=25.9 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
speed=0.00948x
frame=   39 fps=1.8 q=22.2 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
speed=0.00923x
frame=   42 fps=1.8 q=22.4 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=22
speed=0.0143x
frame=   43 fps=1.7 q=24.4 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=22
speed=0.0134x
frame=   45 fps=1.7 q=25.9 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=23
speed=0.0131x
frame=   47 fps=1.8 q=24.7 size=       4kB time=00:00:00.42 bitrate=  76.0kbits/s dup=0 drop=23
speed=0.0161x
frame=   50 fps=1.8 q=25.8 size=       4kB time=00:00:00.54 bitrate=  59.6kbits/s dup=0 drop=25
speed=0.02x
frame=   53 fps=1.9 q=25.7 size=       4kB time=00:00:00.54 bitrate=  59.6kbits/s dup=0 drop=27
speed=0.0196x
frame=   56 fps=2.0 q=24.5 size=       4kB time=00:00:00.68 bitrate=  47.4kbits/s dup=0 drop=29
speed=0.0241x
frame=   59 fps=2.1 q=22.4 size=       4kB time=00:00:00.68 bitrate=  46.9kbits/s dup=0 drop=31
speed=0.0239x
frame=   61 fps=2.1 q=22.6 size=       4kB time=00:00:00.79 bitrate=  40.5kbits/s dup=0 drop=33
speed=0.0272x
frame=   64 fps=2.1 q=26.1 size=       4kB time=00:00:00.93 bitrate=  34.5kbits/s dup=0 drop=35
speed=0.0314x
frame=   67 fps=2.2 q=25.9 size=       4kB time=00:00:00.93 bitrate=  34.5kbits/s dup=0 drop=37
speed=0.0308x
frame=   70 fps=2.3 q=22.3 size=       4kB time=00:00:01.07 bitrate=  30.0kbits/s dup=0 drop=39
speed=0.0347x
frame=   72 fps=2.3 q=26.1 size=       4kB time=00:00:01.07 bitrate=  30.0kbits/s dup=0 drop=41
speed=0.0341x
frame=   75 fps=2.3 q=22.8 size=       4kB time=00:00:01.16 bitrate=  27.8kbits/s dup=0 drop=43
speed=0.0362x
frame=   77 fps=2.4 q=26.1 size=       4kB time=00:00:01.16 bitrate=  27.8kbits/s dup=0 drop=43
speed=0.0356x
frame=   81 fps=2.4 q=22.8 size=       4kB time=00:00:01.28 bitrate=  25.1kbits/s dup=0 drop=44
speed=0.0388x
frame=   83 fps=2.5 q=26.2 size=       4kB time=00:00:01.41 bitrate=  22.8kbits/s dup=0 drop=46
speed=0.0419x
frame=   87 fps=2.5 q=22.7 size=       4kB time=00:00:01.53 bitrate=  21.1kbits/s dup=0 drop=47
speed=0.0447x
frame=   89 fps=2.6 q=26.2 size=       4kB time=00:00:01.53 bitrate=  21.1kbits/s dup=0 drop=49
speed=0.044x
frame=   92 fps=2.6 q=26.1 size=       4kB time=00:00:01.57 bitrate=  20.5kbits/s dup=0 drop=51
speed=0.0445x
frame=   95 fps=2.6 q=26.2 size=       4kB time=00:00:01.67 bitrate=  19.3kbits/s dup=0 drop=53
speed=0.0463x
frame=   98 fps=2.7 q=26.1 size=       4kB time=00:00:01.79 bitrate=  18.0kbits/s dup=0 drop=55
speed=0.0488x
frame=  101 fps=2.7 q=26.2 size=       4kB time=00:00:01.83 bitrate=  17.6kbits/s dup=0 drop=57
speed=0.0491x
frame=  103 fps=2.7 q=22.0 size=       4kB time=00:00:01.89 bitrate=  17.0kbits/s dup=0 drop=57
speed=0.0502x
frame=  106 fps=2.8 q=26.2 size=       4kB time=00:00:02.03 bitrate=  15.9kbits/s dup=0 drop=59
speed=0.053x
frame=  111 fps=2.8 q=26.2 size=       4kB time=00:00:02.04 bitrate=  15.8kbits/s dup=0 drop=63
speed=0.0524x
frame=  113 fps=2.8 q=25.2 size=       4kB time=00:00:02.16 bitrate=  14.9kbits/s dup=0 drop=65
speed=0.0546x
frame=  117 fps=2.9 q=26.3 size=       4kB time=00:00:02.28 bitrate=  14.2kbits/s dup=0 drop=67
speed=0.0564x
frame=  120 fps=2.9 q=24.5 size=       4kB time=00:00:02.28 bitrate=  14.2kbits/s dup=0 drop=69
speed=0.0557x
frame=  123 fps=3.0 q=22.2 size=       4kB time=00:00:02.41 bitrate=  13.4kbits/s dup=0 drop=71
speed=0.0584x
frame=  126 fps=3.0 q=24.5 size=       4kB time=00:00:02.53 bitrate=  12.7kbits/s dup=0 drop=73
speed=0.0603x
frame=  128 fps=3.0 q=26.3 size=       4kB time=00:00:02.53 bitrate=  12.7kbits/s dup=0 drop=75
speed=0.0595x
frame=  131 fps=3.0 q=22.5 size=       4kB time=00:00:02.66 bitrate=  12.1kbits/s dup=0 drop=77
speed=0.0618x
frame=  134 fps=3.1 q=26.3 size=       4kB time=00:00:02.67 bitrate=  12.1kbits/s dup=0 drop=79
speed=0.0612x
frame=  136 fps=3.1 q=26.3 size=       4kB time=00:00:02.79 bitrate=  11.6kbits/s dup=0 drop=79
speed=0.0632x
frame=  139 fps=3.1 q=26.3 size=       4kB time=00:00:02.82 bitrate=  11.4kbits/s dup=0 drop=81
speed=0.0631x
frame=  142 fps=3.1 q=26.3 size=       4kB time=00:00:02.92 bitrate=  11.1kbits/s dup=0 drop=83
speed=0.0644x
frame=  145 fps=3.2 q=26.3 size=       4kB time=00:00:03.04 bitrate=  10.6kbits/s dup=0 drop=85
speed=0.0663x
frame=  148 fps=3.2 q=26.2 size=       4kB time=00:00:03.04 bitrate=  10.6kbits/s dup=0 drop=87
speed=0.0656x
frame=  151 fps=3.2 q=26.3 size=       4kB time=00:00:03.16 bitrate=  10.2kbits/s dup=0 drop=89
speed=0.0673x
frame=  155 fps=3.3 q=22.7 size=       4kB time=00:00:03.30 bitrate=   9.8kbits/s dup=0 drop=90
speed=0.0694x
frame=  157 fps=3.3 q=26.3 size=       4kB time=00:00:03.30 bitrate=   9.8kbits/s dup=0 drop=92
speed=0.0687x
frame=  160 fps=3.3 q=26.2 size=       4kB time=00:00:03.42 bitrate=   9.4kbits/s dup=0 drop=94
speed=0.0702x
frame=  163 fps=3.3 q=26.3 size=       4kB time=00:00:03.52 bitrate=   9.2kbits/s dup=0 drop=96
speed=0.0714x
frame=  167 fps=3.3 q=22.5 size=       4kB time=00:00:03.66 bitrate=   8.8kbits/s dup=0 drop=97
speed=0.0733x
frame=  169 fps=3.3 q=26.3 size=       4kB time=00:00:03.66 bitrate=   8.8kbits/s dup=0 drop=99
speed=0.0725x
frame=  172 fps=3.4 q=26.3 size=       4kB time=00:00:03.78 bitrate=   8.5kbits/s dup=0 drop=101
speed=0.074x
frame=  175 fps=3.4 q=26.3 size=       4kB time=00:00:03.79 bitrate=   8.5kbits/s dup=0 drop=103
speed=0.0732x
frame=  178 fps=3.4 q=25.2 size=       4kB time=00:00:03.92 bitrate=   8.2kbits/s dup=0 drop=105
speed=0.075x
frame=  180 fps=3.4 q=26.3 size=       4kB time=00:00:03.97 bitrate=   8.1kbits/s dup=0 drop=105
speed=0.0751x
frame=  184 fps=3.4 q=26.4 size=       4kB time=00:00:04.04 bitrate=   8.0kbits/s dup=0 drop=106
speed=0.0754x
frame=  189 fps=3.5 q=26.3 size=       4kB time=00:00:04.17 bitrate=   7.7kbits/s dup=0 drop=110
speed=0.0767x
frame=  190 fps=3.5 q=22.2 size=       4kB time=00:00:04.29 bitrate=   7.5kbits/s dup=0 drop=110
speed=0.0782x
frame=  193 fps=3.5 q=26.2 size=       4kB time=00:00:04.29 bitrate=   7.5kbits/s dup=0 drop=112
speed=0.0775x
frame=  197 fps=3.5 q=26.4 size=       4kB time=00:00:04.42 bitrate=   7.3kbits/s dup=0 drop=113
speed=0.0791x
frame=  199 fps=3.5 q=22.8 size=       4kB time=00:00:04.42 bitrate=   7.3kbits/s dup=0 drop=115
speed=0.0783x
frame=  201 fps=3.5 q=26.5 size=       4kB time=00:00:04.55 bitrate=   7.1kbits/s dup=0 drop=117
speed=0.0798x
frame=  204 fps=3.5 q=26.3 size=       4kB time=00:00:04.55 bitrate=   7.1kbits/s dup=0 drop=119
speed=0.0788x
frame=  207 fps=3.5 q=26.5 size=       4kB time=00:00:04.67 bitrate=   6.9kbits/s dup=0 drop=121
speed=0.08x
frame=  211 fps=3.6 q=26.5 size=    5120kB time=00:00:04.80 bitrate=8721.8kbits/s dup=0 drop=123
speed=0.0813x
frame=  214 fps=3.6 q=26.5 size=    5120kB time=00:00:04.80 bitrate=8721.8kbits/s dup=0 drop=125
speed=0.0806x
frame=  216 fps=3.6 q=22.3 size=    5120kB time=00:00:04.92 bitrate=8514.6kbits/s dup=0 drop=127
speed=0.0818x
frame=  219 fps=3.6 q=24.5 size=    5120kB time=00:00:04.96 bitrate=8440.9kbits/s dup=0 drop=129
speed=0.0817x
frame=  221 fps=3.6 q=26.6 size=    5120kB time=00:00:05.03 bitrate=8333.6kbits/s dup=0 drop=129
speed=0.082x
frame=  224 fps=3.6 q=26.4 size=    5120kB time=00:00:05.17 bitrate=8111.2kbits/s dup=0 drop=131
speed=0.0835x
frame=  227 fps=3.6 q=26.6 size=    5120kB time=00:00:05.17 bitrate=8111.2kbits/s dup=0 drop=133
speed=0.0828x
frame=  229 fps=3.6 q=22.4 size=    5120kB time=00:00:05.28 bitrate=7930.2kbits/s dup=0 drop=135
speed=0.084x
frame=  232 fps=3.7 q=24.5 size=    5120kB time=00:00:05.28 bitrate=7930.2kbits/s dup=0 drop=137
speed=0.0833x
frame=  234 fps=3.7 q=26.6 size=    5120kB time=00:00:05.42 bitrate=7728.6kbits/s dup=0 drop=139
speed=0.0847x
frame=  238 fps=3.7 q=24.7 size=    5120kB time=00:00:05.48 bitrate=7652.4kbits/s dup=0 drop=141
speed=0.0848x
frame=  240 fps=3.7 q=26.6 size=    5120kB time=00:00:05.54 bitrate=7564.1kbits/s dup=0 drop=143
speed=0.085x
frame=  243 fps=3.7 q=22.5 size=    5120kB time=00:00:05.67 bitrate=7394.8kbits/s dup=0 drop=145
speed=0.0862x
frame=  245 fps=3.7 q=26.7 size=    5120kB time=00:00:05.67 bitrate=7394.8kbits/s dup=0 drop=145
speed=0.0855x
frame=  248 fps=3.7 q=26.6 size=    5120kB time=00:00:05.80 bitrate=7230.3kbits/s dup=0 drop=147
speed=0.0867x
frame=  251 fps=3.7 q=26.7 size=    5120kB time=00:00:05.80 bitrate=7230.3kbits/s dup=0 drop=149
speed=0.0858x
frame=  254 fps=3.7 q=26.7 size=    5120kB time=00:00:05.92 bitrate=7075.4kbits/s dup=0 drop=151
speed=0.087x
frame=  257 fps=3.7 q=26.7 size=    5120kB time=00:00:06.02 bitrate=6961.5kbits/s dup=0 drop=153
speed=0.0878x
frame=  260 fps=3.8 q=26.7 size=    5120kB time=00:00:06.07 bitrate=6900.8kbits/s dup=0 drop=155
speed=0.0879x
frame=  262 fps=3.8 q=24.9 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=157
speed=0.0901x
frame=  265 fps=3.8 q=21.9 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=159
speed=0.0894x
frame=  268 fps=3.8 q=24.7 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=161
speed=0.0883x
frame=  271 fps=3.8 q=21.9 size=    5120kB time=00:00:06.41 bitrate=6534.2kbits/s dup=0 drop=163
speed=0.0895x
frame=  274 fps=3.8 q=24.8 size=    5120kB time=00:00:06.54 bitrate=6406.5kbits/s dup=0 drop=165
speed=0.0906x
frame=  276 fps=3.8 q=26.6 size=    5120kB time=00:00:06.54 bitrate=6406.5kbits/s dup=0 drop=167
speed=0.0898x
frame=  280 fps=3.8 q=26.8 size=    7424kB time=00:00:06.66 bitrate=9124.9kbits/s dup=0 drop=169
speed=0.0907x
frame=  283 fps=3.8 q=26.7 size=    7424kB time=00:00:06.80 bitrate=8939.8kbits/s dup=0 drop=171
speed=0.0919x
frame=  286 fps=3.8 q=24.7 size=    7424kB time=00:00:06.80 bitrate=8939.8kbits/s dup=0 drop=173
speed=0.0911x
frame=  289 fps=3.8 q=21.8 size=    7424kB time=00:00:06.92 bitrate=8787.4kbits/s dup=0 drop=175
speed=0.092x
frame=  292 fps=3.9 q=24.7 size=    7424kB time=00:00:07.04 bitrate=8629.0kbits/s dup=0 drop=177
speed=0.093x
frame=  295 fps=3.9 q=21.7 size=    7424kB time=00:00:07.04 bitrate=8627.8kbits/s dup=0 drop=179
speed=0.0923x
frame=  298 fps=3.9 q=25.5 size=    7424kB time=00:00:07.16 bitrate=8486.9kbits/s dup=0 drop=181
speed=0.0932x
frame=  302 fps=3.9 q=22.1 size=    7424kB time=00:00:07.30 bitrate=8325.4kbits/s dup=0 drop=182
speed=0.0943x
frame=  305 fps=3.9 q=26.6 size=    7424kB time=00:00:07.30 bitrate=8325.4kbits/s dup=0 drop=184
speed=0.0937x
frame=  308 fps=3.9 q=26.7 size=    7424kB time=00:00:07.42 bitrate=8194.2kbits/s dup=0 drop=186
speed=0.0945x
frame=  310 fps=3.9 q=24.7 size=    7424kB time=00:00:07.44 bitrate=8167.8kbits/s dup=0 drop=188
speed=0.0942x
frame=  312 fps=3.9 q=26.6 size=    7424kB time=00:00:07.55 bitrate=8055.3kbits/s dup=0 drop=188
speed=0.0949x
frame=  316 fps=3.9 q=24.8 size=    7424kB time=00:00:07.68 bitrate=7909.7kbits/s dup=0 drop=192
speed=0.0959x
frame=  319 fps=4.0 q=21.2 size=    7424kB time=00:00:07.69 bitrate=7902.5kbits/s dup=0 drop=194
speed=0.0953x
frame=  323 fps=4.0 q=26.6 size=    7424kB time=00:00:07.80 bitrate=7791.1kbits/s dup=0 drop=196
speed=0.0961x
frame=  324 fps=4.0 q=26.6 size=    7424kB time=00:00:07.84 bitrate=7748.4kbits/s dup=0 drop=196
speed=0.0959x
frame=  328 fps=4.0 q=26.6 size=    7424kB time=00:00:08.04 bitrate=7564.4kbits/s dup=0 drop=197
speed=0.0976x
frame=  332 fps=4.0 q=26.7 size=    7424kB time=00:00:08.04 bitrate=7563.4kbits/s dup=0 drop=198
speed=0.0968x
frame=  335 fps=4.0 q=24.9 size=    7424kB time=00:00:08.16 bitrate=7445.8kbits/s dup=0 drop=200
speed=0.0977x
frame=  338 fps=4.0 q=21.8 size=    7424kB time=00:00:08.29 bitrate=7330.0kbits/s dup=0 drop=202
speed=0.0987x
frame=  341 fps=4.0 q=24.6 size=    7424kB time=00:00:08.29 bitrate=7330.0kbits/s dup=0 drop=204
speed=0.098x
frame=  344 fps=4.0 q=21.6 size=    7424kB time=00:00:08.42 bitrate=7219.5kbits/s dup=0 drop=206
speed=0.0989x
frame=  347 fps=4.0 q=24.6 size=    7424kB time=00:00:08.44 bitrate=7199.9kbits/s dup=0 drop=208
speed=0.0985x
frame=  349 fps=4.0 q=26.6 size=    7424kB time=00:00:08.54 bitrate=7119.8kbits/s dup=0 drop=210
speed=0.099x
frame=  353 fps=4.1 q=26.6 size=    7424kB time=00:00:08.68 bitrate=7005.8kbits/s dup=0 drop=212
speed= 0.1x
frame=  357 fps=4.1 q=26.6 size=    7424kB time=00:00:08.69 bitrate=6992.9kbits/s dup=0 drop=213
speed=0.0995x
frame=  360 fps=4.1 q=21.9 size=    7424kB time=00:00:08.79 bitrate=6912.6kbits/s dup=0 drop=214
speed= 0.1x
frame=  363 fps=4.1 q=26.7 size=    7424kB time=00:00:08.90 bitrate=6829.6kbits/s dup=0 drop=216
speed=0.101x
frame=  366 fps=4.1 q=21.5 size=    7424kB time=00:00:09.04 bitrate=6725.4kbits/s dup=0 drop=218
speed=0.102x
frame=  369 fps=4.1 q=26.6 size=    7424kB time=00:00:09.04 bitrate=6725.4kbits/s dup=0 drop=220
speed=0.101x
frame=  372 fps=4.1 q=25.5 size=    7424kB time=00:00:09.17 bitrate=6631.5kbits/s dup=0 drop=222
speed=0.102x
frame=  376 fps=4.1 q=21.3 size=    7424kB time=00:00:09.28 bitrate=6547.3kbits/s dup=0 drop=224
speed=0.102x
frame=  378 fps=4.1 q=21.1 size=    7424kB time=00:00:09.28 bitrate=6547.3kbits/s dup=0 drop=226
speed=0.102x
frame=  381 fps=4.2 q=26.6 size=    7424kB time=00:00:09.42 bitrate=6451.4kbits/s dup=0 drop=228
speed=0.103x
frame=  385 fps=4.2 q=26.6 size=    7424kB time=00:00:09.54 bitrate=6372.3kbits/s dup=0 drop=229
speed=0.103x
frame=  389 fps=4.2 q=24.2 size=    7424kB time=00:00:09.54 bitrate=6372.3kbits/s dup=0 drop=230
speed=0.103x
frame=  392 fps=4.2 q=21.6 size=    7424kB time=00:00:09.67 bitrate=6287.3kbits/s dup=0 drop=232
speed=0.104x
frame=  395 fps=4.2 q=26.6 size=    7424kB time=00:00:09.80 bitrate=6205.9kbits/s dup=0 drop=234
speed=0.104x
frame=  398 fps=4.2 q=25.4 size=    7424kB time=00:00:09.80 bitrate=6205.9kbits/s dup=0 drop=236
speed=0.104x
frame=  401 fps=4.2 q=26.6 size=    7424kB time=00:00:09.92 bitrate=6125.2kbits/s dup=0 drop=238
speed=0.104x
frame=  404 fps=4.2 q=21.5 size=    7424kB time=00:00:09.92 bitrate=6125.2kbits/s dup=0 drop=240
speed=0.104x
frame=  406 fps=4.2 q=26.6 size=    7424kB time=00:00:10.04 bitrate=6053.9kbits/s dup=0 drop=242
speed=0.104x
frame=  410 fps=4.2 q=26.6 size=    7424kB time=00:00:10.17 bitrate=5977.7kbits/s dup=0 drop=244
speed=0.105x
frame=  413 fps=4.2 q=21.1 size=    7424kB time=00:00:10.18 bitrate=5971.3kbits/s dup=0 drop=246
speed=0.105x
frame=  416 fps=4.3 q=26.6 size=    7424kB time=00:00:10.31 bitrate=5897.2kbits/s dup=0 drop=248
speed=0.105x
frame=  419 fps=4.3 q=24.6 size=    7424kB time=00:00:10.31 bitrate=5897.2kbits/s dup=0 drop=250
speed=0.105x
frame=  422 fps=4.3 q=21.4 size=    7424kB time=00:00:10.43 bitrate=5831.0kbits/s dup=0 drop=252
speed=0.105x
frame=  425 fps=4.3 q=25.3 size=    7424kB time=00:00:10.54 bitrate=5766.3kbits/s dup=0 drop=254
speed=0.106x
frame=  428 fps=4.3 q=26.4 size=    7424kB time=00:00:10.54 bitrate=5766.3kbits/s dup=0 drop=256
speed=0.105x
frame=  431 fps=4.3 q=26.4 size=    7424kB time=00:00:10.66 bitrate=5702.5kbits/s dup=0 drop=258
speed=0.106x
frame=  434 fps=4.3 q=21.5 size=    7424kB time=00:00:10.80 bitrate=5629.7kbits/s dup=0 drop=260
speed=0.107x
frame=  437 fps=4.3 q=24.5 size=    7424kB time=00:00:10.80 bitrate=5629.7kbits/s dup=0 drop=262
speed=0.106x
frame=  439 fps=4.3 q=26.4 size=    7424kB time=00:00:10.85 bitrate=5601.7kbits/s dup=0 drop=264
speed=0.106x
frame=  442 fps=4.3 q=21.5 size=    7424kB time=00:00:10.92 bitrate=5564.8kbits/s dup=0 drop=266
speed=0.106x
frame=  444 fps=4.3 q=26.4 size=    7424kB time=00:00:11.04 bitrate=5504.8kbits/s dup=0 drop=266
speed=0.107x
frame=  448 fps=4.3 q=25.3 size=    7424kB time=00:00:11.17 bitrate=5441.8kbits/s dup=0 drop=270
speed=0.107x
frame=  451 fps=4.3 q=26.3 size=    7424kB time=00:00:11.17 bitrate=5440.3kbits/s dup=0 drop=272
speed=0.107x
frame=  455 fps=4.3 q=24.5 size=   12544kB time=00:00:11.30 bitrate=9089.8kbits/s dup=0 drop=274
speed=0.108x
frame=  457 fps=4.3 q=26.3 size=   12544kB time=00:00:11.34 bitrate=9057.0kbits/s dup=0 drop=276
speed=0.107x
frame=  461 fps=4.3 q=24.5 size=   12544kB time=00:00:11.46 bitrate=8963.0kbits/s dup=0 drop=278
speed=0.108x
frame=  463 fps=4.3 q=26.3 size=   12544kB time=00:00:11.51 bitrate=8925.6kbits/s dup=0 drop=280
speed=0.108x
frame=  467 fps=4.3 q=24.5 size=   12544kB time=00:00:11.62 bitrate=8839.6kbits/s dup=0 drop=282
speed=0.108x
frame=  470 fps=4.4 q=21.2 size=   12544kB time=00:00:11.75 bitrate=8743.3kbits/s dup=0 drop=284
speed=0.109x
frame=  472 fps=4.4 q=25.2 size=   12544kB time=00:00:11.76 bitrate=8735.9kbits/s dup=0 drop=286
speed=0.108x
frame=  474 fps=4.3 q=26.3 size=   12544kB time=00:00:11.88 bitrate=8649.9kbits/s dup=0 drop=286
speed=0.109x
frame=  478 fps=4.4 q=21.5 size=   12544kB time=00:00:11.97 bitrate=8579.8kbits/s dup=0 drop=290
speed=0.109x
frame=  480 fps=4.4 q=26.4 size=   12544kB time=00:00:11.97 bitrate=8579.8kbits/s dup=0 drop=290
speed=0.109x
frame=  484 fps=4.4 q=21.0 size=   12544kB time=00:00:12.17 bitrate=8437.5kbits/s dup=0 drop=294
speed=0.11x
frame=  486 fps=4.4 q=26.4 size=   12544kB time=00:00:12.17 bitrate=8437.5kbits/s dup=0 drop=294
speed=0.109x
frame=  490 fps=4.4 q=21.3 size=   12544kB time=00:00:12.29 bitrate=8356.5kbits/s dup=0 drop=298
speed=0.11x
frame=  492 fps=4.4 q=26.3 size=   12544kB time=00:00:12.30 bitrate=8351.1kbits/s dup=0 drop=298
speed=0.109x
frame=  496 fps=4.4 q=21.2 size=   12544kB time=00:00:12.43 bitrate=8263.8kbits/s dup=0 drop=302
speed=0.11x
frame=  498 fps=4.4 q=26.4 size=   12544kB time=00:00:12.55 bitrate=8186.1kbits/s dup=0 drop=302
speed=0.11x
frame=  501 fps=4.4 q=21.3 size=   12544kB time=00:00:12.55 bitrate=8184.8kbits/s dup=0 drop=304
speed=0.11x
frame=  503 fps=4.4 q=26.1 size=   12544kB time=00:00:12.67 bitrate=8110.5kbits/s dup=0 drop=306
speed=0.11x
frame=  506 fps=4.4 q=21.0 size=   12544kB time=00:00:12.80 bitrate=8022.5kbits/s dup=0 drop=308
speed=0.111x
frame=  509 fps=4.4 q=24.6 size=   12544kB time=00:00:12.80 bitrate=8022.5kbits/s dup=0 drop=310
speed=0.111x
frame=  512 fps=4.4 q=20.7 size=   12544kB time=00:00:12.92 bitrate=7949.9kbits/s dup=0 drop=312
speed=0.111x
frame=  515 fps=4.4 q=25.4 size=   12544kB time=00:00:13.03 bitrate=7884.6kbits/s dup=0 drop=314
speed=0.111x
frame=  518 fps=4.4 q=26.6 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=316
speed=0.112x
frame=  519 fps=4.4 q=21.3 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=316
speed=0.111x
frame=  522 fps=4.4 q=26.5 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=318
speed=0.111x
frame=  526 fps=4.4 q=18.3 size=   12544kB time=00:00:13.28 bitrate=7732.7kbits/s dup=0 drop=322
speed=0.111x
frame=  529 fps=4.4 q=26.6 size=   14848kB time=00:00:13.42 bitrate=9059.0kbits/s dup=0 drop=324
speed=0.112x
frame=  532 fps=4.4 q=25.5 size=   14848kB time=00:00:13.43 bitrate=9051.6kbits/s dup=0 drop=326
speed=0.111x
frame=  534 fps=4.4 q=26.6 size=   14848kB time=00:00:13.55 bitrate=8973.4kbits/s dup=0 drop=326
speed=0.112x
frame=  538 fps=4.4 q=20.8 size=   14848kB time=00:00:13.60 bitrate=8937.8kbits/s dup=0 drop=330
speed=0.112x
frame=  540 fps=4.4 q=26.7 size=   14848kB time=00:00:13.67 bitrate=8896.0kbits/s dup=0 drop=330
speed=0.112x
frame=  544 fps=4.4 q=25.6 size=   14848kB time=00:00:13.81 bitrate=8807.1kbits/s dup=0 drop=334
speed=0.112x
frame=  546 fps=4.4 q=26.8 size=   14848kB time=00:00:13.83 bitrate=8793.1kbits/s dup=0 drop=334
speed=0.112x
frame=  549 fps=4.4 q=27.1 size=   14848kB time=00:00:13.92 bitrate=8732.5kbits/s dup=0 drop=336
speed=0.112x
frame=  552 fps=4.4 q=26.8 size=   14848kB time=00:00:14.04 bitrate=8659.7kbits/s dup=0 drop=338
speed=0.113x
frame=  556 fps=4.4 q=25.7 size=   14848kB time=00:00:14.09 bitrate=8627.8kbits/s dup=0 drop=342
speed=0.112x
frame=  559 fps=4.4 q=26.8 size=   14848kB time=00:00:14.18 bitrate=8574.9kbits/s dup=0 drop=344
speed=0.113x
frame=  563 fps=4.4 q=25.7 size=   14848kB time=00:00:14.31 bitrate=8498.2kbits/s dup=0 drop=346
speed=0.113x
frame=  566 fps=4.5 q=27.3 size=   14848kB time=00:00:14.43 bitrate=8429.3kbits/s dup=0 drop=348
speed=0.114x
frame=  568 fps=4.4 q=25.7 size=   14848kB time=00:00:14.44 bitrate=8422.9kbits/s dup=0 drop=350
speed=0.113x
frame=  570 fps=4.4 q=26.9 size=   14848kB time=00:00:14.54 bitrate=8361.5kbits/s dup=0 drop=350
speed=0.113x
frame=  574 fps=4.5 q=21.1 size=   14848kB time=00:00:14.66 bitrate=8294.2kbits/s dup=0 drop=354
speed=0.114x
frame=  576 fps=4.5 q=26.9 size=   14848kB time=00:00:14.66 bitrate=8294.2kbits/s dup=0 drop=354
speed=0.113x
frame=  580 fps=4.5 q=25.7 size=   14848kB time=00:00:14.80 bitrate=8216.9kbits/s dup=0 drop=358
speed=0.114x
frame=  582 fps=4.5 q=26.9 size=   14848kB time=00:00:14.82 bitrate=8204.7kbits/s dup=0 drop=358
speed=0.114x
frame=  586 fps=4.5 q=25.8 size=   14848kB time=00:00:14.93 bitrate=8145.4kbits/s dup=0 drop=362
speed=0.114x
frame=  588 fps=4.5 q=26.9 size=   14848kB time=00:00:15.04 bitrate=8083.1kbits/s dup=0 drop=362
speed=0.114x
frame=  591 fps=4.4 q=27.7 Lsize=   19559kB time=00:00:20.09 bitrate=7974.0kbits/s dup=0 drop=364
speed=0.15x
video:13947kB audio:5587kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.131188%
=====

--
I don't have a dog.
And furthermore, my dog doesn't bite.
And furthermore, you provoked him.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
UPDATE
If I remove the 'setpts=N*1001/60000/TB' directive, the number of frame drops goes down to 190. I
imagine that means that the problem *is* with PTSs.

BTW, in a mixed vapoursynth-ffmpeg approach, use of 'havsfunc.InterFrame(... NewNum=60000,
NewDen=1001, GPU=True) in lieu of 'minterpolate=fps=60/1.001' produced a superior output in about
1/7th the time: 14 hours instead of 4 days). In a prior ffmpeg-only approach, I further found that
'minterpolate=fps=48/1.001' followed by adding a blended frame to boost it to 60/1.001fps cut the
time to an ffmpeg-only result by about 40%. I'm trying to duplicate that improvement in a mixed
vapoursynth-ffmpeg approach.

On 02/12/2021 12:35 AM, Mark Filipak (ffmpeg) wrote:

> Is there something about inputting raw frames that I don't know?
>
> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
> The vapoursynth script, 'Mark's.vpy', is known good.
> The output of vapoursynth is known good.
> I've tried to be careful to retain valid PTSs, but apparently have failed.
> The output should be around 1200 frames, but 364 frames are dropped.
> I've frame stepped through the target, 'Mark's_script_6.mkv', and the frames that are there are in
> the correct order.
> The only thing I can guess is that ffmpeg handles 48/1.001fps raw video frames in such a way that
> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
> Can anyone see an error. Or, lacking an error, does anyone know of a workaround?
>
> Thanks.
>
> Mark's_script_6.cmd
> =====
> ECHO from vapoursynth import core>Mark's.vpy
> ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
> ECHO import havsfunc as havsfunc>>Mark's.vpy
> ECHO video = havsfunc.InterFrame(video, Preset="medium", Tuning="smooth", InputType="2D",
> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
> ECHO video.set_output()>>Mark's.vpy
> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe: -filter_complex
> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3, select=not(eq(mod(n\,5)\,4))[3],
> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0 1 2 2 3,
> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map 0:v -map 1:a -codec:v
> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy Mark's_script_6.mkv -y
>
> PAUSE
> @GOTO :EOF
>
> +----------------------------------------------------------+ 1/12 second
> [A.a_________________________][B.b_________________________] 24/1.001 FPS
> [A.a__________][AB.ab________][B.b__________][BC.bc________] raw: havsfunc.InterFrame(...
> NewNum=48000, NewDen=1001 ...)
> [A.a_______][AB.ab_____][B.b_______][BC.bc_____][C.c_______] setpts=N*1001/60000/TB
> ------------------------------------------------------------
> [A.a_______][AB.ab_____][B.b_______][BC.bc_____][BC.bc_____] shuffleframes=0 1 2 3 3
> [A.a_______][AB.ab_____][B.b_______][BC.bc_____]             select=not(eq(mod(n\,5)\,4))
> ------------------------------------------------------------
> [A~AB.a~ab_][AB~B.ab~b_][B~BC.b~bc_][BC~C.bc~c_][C~CD.c~cd_]
> tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
> [A~AB.a~ab_][AB~B.ab~b_][B~BC.b~bc_][B~BC.b~bc_][BC~C.bc~c_] shuffleframes=0 1 2 2 3
>                                                  [BC~C.bc~c_] select=eq(mod(n\,5)\,4)
> ------------------------------------------------------------
> [A.a_______][AB.ab_____][B.b_______][BC.bc_____][BC~C.bc~c_] interleave
> =====
>
> ffmpeg-20210212-001609.log
> =====
> ffmpeg started on 2021-02-12 at 00:16:09
> Report written to "ffmpeg-20210212-001609.log"
> Log level: 32
> Command line:
> ffmpeg -thread_queue_size 2048 -i pipe: -filter_complex "setpts=N*1001/60000/TB, split[1][2],
> [1]shuffleframes=0 1 2 3 3, select=not(eq(mod(n\\,5)\\,4))[3],
> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0 1 2 2 3,
> select=eq(mod(n\\,5)\\,4)[4], [3][4]interleave" -i "Mark's_source.mkv" -map 0:v -map 1:a -codec:v
> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy "Mark's_script_6.mkv" -y
> ffmpeg version N-100851-g9f38fac053 Copyright (c) 2000-2021 the FFmpeg developers
>    built with gcc 9.3-win32 (GCC) 20200320
>    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config
> --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3
> --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2
> --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
> --enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom
> --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm
> --enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus
> --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband
> --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
> --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx26
> libavutil      56. 64.100 / 56. 64.100
>    libavcodec     58.119.100 / 58.119.100
>    libavformat    58. 65.101 / 58. 65.101
>    libavdevice    58. 11.103 / 58. 11.103
>    libavfilter     7.100.100 /  7.100.100
>    libswscale      5.  8.100 /  5.  8.100
>    libswresample   3.  8.100 /  3.  8.100
>    libpostproc    55.  8.100 / 55.  8.100
> Input #0, yuv4mpegpipe, from 'pipe:':
>    Duration: N/A, start: 0.000000, bitrate: N/A
>      Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 1920x1080, 47.95 fps,
> 47.95 tbr, 47.95 tbn, 47.95 tbc
> [matroska,webm @ 0000018879c886c0] Could not find codec parameters for stream 3 (Subtitle:
> hdmv_pgs_subtitle (pgssub)): unspecified size
> Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
> Input #1, matroska,webm, from 'Mark's_source.mkv':
>    Metadata:
>      encoder         : libebml v1.4.0 + libmatroska v1.6.2
>      creation_time   : 2021-01-23T03:12:17.000000Z
>    Duration: 00:00:20.11, start: 0.000000, bitrate: 26228 kb/s
>      Stream #1:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9],
> 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
>      Metadata:
>        BPS-eng         : 24046529
>        DURATION-eng    : 00:00:20.020000000
>        NUMBER_OF_FRAMES-eng: 480
>        NUMBER_OF_BYTES-eng: 60176441
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
>      Stream #1:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, stereo, s32p (24 bit) (default)
>      Metadata:
>        BPS-eng         : 2085565
>        DURATION-eng    : 00:00:20.096000000
>        NUMBER_OF_FRAMES-eng: 1884
>        NUMBER_OF_BYTES-eng: 5238940
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
>      Stream #1:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
>      Metadata:
>        BPS-eng         : 192000
>        DURATION-eng    : 00:00:20.096000000
>        NUMBER_OF_FRAMES-eng: 628
>        NUMBER_OF_BYTES-eng: 482304
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
>      Stream #1:3(eng): Subtitle: hdmv_pgs_subtitle
>      Metadata:
>        BPS-eng         : 0
>        DURATION-eng    : 00:00:00.000000000
>        NUMBER_OF_FRAMES-eng: 0
>        NUMBER_OF_BYTES-eng: 0
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> Stream mapping:
>    Stream #0:0 (rawvideo) -> setpts
>    interleave -> Stream #0:0 (libx265)
>    Stream #1:1 -> #0:1 (copy)
>    Stream #1:2 -> #0:2 (copy)
> Output #0, matroska, to 'Mark's_script_6.mkv':
>    Metadata:
>      encoder         : Lavf58.65.101
>      Stream #0:0: Video: hevc, yuv420p(progressive), 1920x1080, q=2-31, 1k tbn
>      Metadata:
>        encoder         : Lavc58.119.100 libx265
>      Side data:
>        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
>      Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, stereo, s32p (24 bit)
> (default)
>      Metadata:
>        BPS-eng         : 2085565
>        DURATION-eng    : 00:00:20.096000000
>        NUMBER_OF_FRAMES-eng: 1884
>        NUMBER_OF_BYTES-eng: 5238940
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
>      Stream #0:2(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
>      Metadata:
>        BPS-eng         : 192000
>        DURATION-eng    : 00:00:20.096000000
>        NUMBER_OF_FRAMES-eng: 628
>        NUMBER_OF_BYTES-eng: 482304
>        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
>        _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-23 03:12:17
>        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> frame=    1 fps=0.0 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x
> frame=    1 fps=0.8 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x
> frame=    6 fps=3.1 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=3 speed=   0x
> frame=    7 fps=2.8 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=3 speed=   0x
> frame=   10 fps=3.3 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=5 speed=   0x
> frame=   13 fps=3.6 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=6 speed=   0x
> frame=   16 fps=3.9 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=8 speed=   0x
> frame=   19 fps=4.0 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=10 speed=   0x
> frame=   22 fps=4.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=11 speed=   0x
> frame=   24 fps=4.1 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=11 speed=   0x
> frame=   27 fps=4.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=13 speed=   0x
> frame=   27 fps=3.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=13 speed=   0x
> frame=   29 fps=3.2 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=15 speed=   0x
> frame=   30 fps=2.6 q=22.2 size=       4kB time=00:00:00.00 bitrate=N/A dup=0 drop=15 speed=   0x
> frame=   32 fps=2.6 q=23.6 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
> speed=0.0068x
> frame=   32 fps=2.4 q=23.6 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
> speed=0.00624x
> frame=   33 fps=2.2 q=25.8 size=       4kB time=00:00:00.08 bitrate= 389.1kbits/s dup=0 drop=17
> speed=0.0055x
> frame=   35 fps=2.2 q=22.6 size=       4kB time=00:00:00.10 bitrate= 307.6kbits/s dup=0 drop=19
> speed=0.00673x
> frame=   36 fps=2.2 q=24.5 size=       4kB time=00:00:00.13 bitrate= 235.7kbits/s dup=0 drop=19
> speed=0.00826x
> frame=   37 fps=1.9 q=25.9 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
> speed=0.0101x
> frame=   38 fps=1.8 q=25.9 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
> speed=0.00948x
> frame=   39 fps=1.8 q=22.2 size=       4kB time=00:00:00.20 bitrate= 160.7kbits/s dup=0 drop=21
> speed=0.00923x
> frame=   42 fps=1.8 q=22.4 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=22
> speed=0.0143x
> frame=   43 fps=1.7 q=24.4 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=22
> speed=0.0134x
> frame=   45 fps=1.7 q=25.9 size=       4kB time=00:00:00.33 bitrate=  95.3kbits/s dup=0 drop=23
> speed=0.0131x
> frame=   47 fps=1.8 q=24.7 size=       4kB time=00:00:00.42 bitrate=  76.0kbits/s dup=0 drop=23
> speed=0.0161x
> frame=   50 fps=1.8 q=25.8 size=       4kB time=00:00:00.54 bitrate=  59.6kbits/s dup=0 drop=25
> speed=0.02x
> frame=   53 fps=1.9 q=25.7 size=       4kB time=00:00:00.54 bitrate=  59.6kbits/s dup=0 drop=27
> speed=0.0196x
> frame=   56 fps=2.0 q=24.5 size=       4kB time=00:00:00.68 bitrate=  47.4kbits/s dup=0 drop=29
> speed=0.0241x
> frame=   59 fps=2.1 q=22.4 size=       4kB time=00:00:00.68 bitrate=  46.9kbits/s dup=0 drop=31
> speed=0.0239x
> frame=   61 fps=2.1 q=22.6 size=       4kB time=00:00:00.79 bitrate=  40.5kbits/s dup=0 drop=33
> speed=0.0272x
> frame=   64 fps=2.1 q=26.1 size=       4kB time=00:00:00.93 bitrate=  34.5kbits/s dup=0 drop=35
> speed=0.0314x
> frame=   67 fps=2.2 q=25.9 size=       4kB time=00:00:00.93 bitrate=  34.5kbits/s dup=0 drop=37
> speed=0.0308x
> frame=   70 fps=2.3 q=22.3 size=       4kB time=00:00:01.07 bitrate=  30.0kbits/s dup=0 drop=39
> speed=0.0347x
> frame=   72 fps=2.3 q=26.1 size=       4kB time=00:00:01.07 bitrate=  30.0kbits/s dup=0 drop=41
> speed=0.0341x
> frame=   75 fps=2.3 q=22.8 size=       4kB time=00:00:01.16 bitrate=  27.8kbits/s dup=0 drop=43
> speed=0.0362x
> frame=   77 fps=2.4 q=26.1 size=       4kB time=00:00:01.16 bitrate=  27.8kbits/s dup=0 drop=43
> speed=0.0356x
> frame=   81 fps=2.4 q=22.8 size=       4kB time=00:00:01.28 bitrate=  25.1kbits/s dup=0 drop=44
> speed=0.0388x
> frame=   83 fps=2.5 q=26.2 size=       4kB time=00:00:01.41 bitrate=  22.8kbits/s dup=0 drop=46
> speed=0.0419x
> frame=   87 fps=2.5 q=22.7 size=       4kB time=00:00:01.53 bitrate=  21.1kbits/s dup=0 drop=47
> speed=0.0447x
> frame=   89 fps=2.6 q=26.2 size=       4kB time=00:00:01.53 bitrate=  21.1kbits/s dup=0 drop=49
> speed=0.044x
> frame=   92 fps=2.6 q=26.1 size=       4kB time=00:00:01.57 bitrate=  20.5kbits/s dup=0 drop=51
> speed=0.0445x
> frame=   95 fps=2.6 q=26.2 size=       4kB time=00:00:01.67 bitrate=  19.3kbits/s dup=0 drop=53
> speed=0.0463x
> frame=   98 fps=2.7 q=26.1 size=       4kB time=00:00:01.79 bitrate=  18.0kbits/s dup=0 drop=55
> speed=0.0488x
> frame=  101 fps=2.7 q=26.2 size=       4kB time=00:00:01.83 bitrate=  17.6kbits/s dup=0 drop=57
> speed=0.0491x
> frame=  103 fps=2.7 q=22.0 size=       4kB time=00:00:01.89 bitrate=  17.0kbits/s dup=0 drop=57
> speed=0.0502x
> frame=  106 fps=2.8 q=26.2 size=       4kB time=00:00:02.03 bitrate=  15.9kbits/s dup=0 drop=59
> speed=0.053x
> frame=  111 fps=2.8 q=26.2 size=       4kB time=00:00:02.04 bitrate=  15.8kbits/s dup=0 drop=63
> speed=0.0524x
> frame=  113 fps=2.8 q=25.2 size=       4kB time=00:00:02.16 bitrate=  14.9kbits/s dup=0 drop=65
> speed=0.0546x
> frame=  117 fps=2.9 q=26.3 size=       4kB time=00:00:02.28 bitrate=  14.2kbits/s dup=0 drop=67
> speed=0.0564x
> frame=  120 fps=2.9 q=24.5 size=       4kB time=00:00:02.28 bitrate=  14.2kbits/s dup=0 drop=69
> speed=0.0557x
> frame=  123 fps=3.0 q=22.2 size=       4kB time=00:00:02.41 bitrate=  13.4kbits/s dup=0 drop=71
> speed=0.0584x
> frame=  126 fps=3.0 q=24.5 size=       4kB time=00:00:02.53 bitrate=  12.7kbits/s dup=0 drop=73
> speed=0.0603x
> frame=  128 fps=3.0 q=26.3 size=       4kB time=00:00:02.53 bitrate=  12.7kbits/s dup=0 drop=75
> speed=0.0595x
> frame=  131 fps=3.0 q=22.5 size=       4kB time=00:00:02.66 bitrate=  12.1kbits/s dup=0 drop=77
> speed=0.0618x
> frame=  134 fps=3.1 q=26.3 size=       4kB time=00:00:02.67 bitrate=  12.1kbits/s dup=0 drop=79
> speed=0.0612x
> frame=  136 fps=3.1 q=26.3 size=       4kB time=00:00:02.79 bitrate=  11.6kbits/s dup=0 drop=79
> speed=0.0632x
> frame=  139 fps=3.1 q=26.3 size=       4kB time=00:00:02.82 bitrate=  11.4kbits/s dup=0 drop=81
> speed=0.0631x
> frame=  142 fps=3.1 q=26.3 size=       4kB time=00:00:02.92 bitrate=  11.1kbits/s dup=0 drop=83
> speed=0.0644x
> frame=  145 fps=3.2 q=26.3 size=       4kB time=00:00:03.04 bitrate=  10.6kbits/s dup=0 drop=85
> speed=0.0663x
> frame=  148 fps=3.2 q=26.2 size=       4kB time=00:00:03.04 bitrate=  10.6kbits/s dup=0 drop=87
> speed=0.0656x
> frame=  151 fps=3.2 q=26.3 size=       4kB time=00:00:03.16 bitrate=  10.2kbits/s dup=0 drop=89
> speed=0.0673x
> frame=  155 fps=3.3 q=22.7 size=       4kB time=00:00:03.30 bitrate=   9.8kbits/s dup=0 drop=90
> speed=0.0694x
> frame=  157 fps=3.3 q=26.3 size=       4kB time=00:00:03.30 bitrate=   9.8kbits/s dup=0 drop=92
> speed=0.0687x
> frame=  160 fps=3.3 q=26.2 size=       4kB time=00:00:03.42 bitrate=   9.4kbits/s dup=0 drop=94
> speed=0.0702x
> frame=  163 fps=3.3 q=26.3 size=       4kB time=00:00:03.52 bitrate=   9.2kbits/s dup=0 drop=96
> speed=0.0714x
> frame=  167 fps=3.3 q=22.5 size=       4kB time=00:00:03.66 bitrate=   8.8kbits/s dup=0 drop=97
> speed=0.0733x
> frame=  169 fps=3.3 q=26.3 size=       4kB time=00:00:03.66 bitrate=   8.8kbits/s dup=0 drop=99
> speed=0.0725x
> frame=  172 fps=3.4 q=26.3 size=       4kB time=00:00:03.78 bitrate=   8.5kbits/s dup=0 drop=101
> speed=0.074x
> frame=  175 fps=3.4 q=26.3 size=       4kB time=00:00:03.79 bitrate=   8.5kbits/s dup=0 drop=103
> speed=0.0732x
> frame=  178 fps=3.4 q=25.2 size=       4kB time=00:00:03.92 bitrate=   8.2kbits/s dup=0 drop=105
> speed=0.075x
> frame=  180 fps=3.4 q=26.3 size=       4kB time=00:00:03.97 bitrate=   8.1kbits/s dup=0 drop=105
> speed=0.0751x
> frame=  184 fps=3.4 q=26.4 size=       4kB time=00:00:04.04 bitrate=   8.0kbits/s dup=0 drop=106
> speed=0.0754x
> frame=  189 fps=3.5 q=26.3 size=       4kB time=00:00:04.17 bitrate=   7.7kbits/s dup=0 drop=110
> speed=0.0767x
> frame=  190 fps=3.5 q=22.2 size=       4kB time=00:00:04.29 bitrate=   7.5kbits/s dup=0 drop=110
> speed=0.0782x
> frame=  193 fps=3.5 q=26.2 size=       4kB time=00:00:04.29 bitrate=   7.5kbits/s dup=0 drop=112
> speed=0.0775x
> frame=  197 fps=3.5 q=26.4 size=       4kB time=00:00:04.42 bitrate=   7.3kbits/s dup=0 drop=113
> speed=0.0791x
> frame=  199 fps=3.5 q=22.8 size=       4kB time=00:00:04.42 bitrate=   7.3kbits/s dup=0 drop=115
> speed=0.0783x
> frame=  201 fps=3.5 q=26.5 size=       4kB time=00:00:04.55 bitrate=   7.1kbits/s dup=0 drop=117
> speed=0.0798x
> frame=  204 fps=3.5 q=26.3 size=       4kB time=00:00:04.55 bitrate=   7.1kbits/s dup=0 drop=119
> speed=0.0788x
> frame=  207 fps=3.5 q=26.5 size=       4kB time=00:00:04.67 bitrate=   6.9kbits/s dup=0 drop=121
> speed=0.08x
> frame=  211 fps=3.6 q=26.5 size=    5120kB time=00:00:04.80 bitrate=8721.8kbits/s dup=0 drop=123
> speed=0.0813x
> frame=  214 fps=3.6 q=26.5 size=    5120kB time=00:00:04.80 bitrate=8721.8kbits/s dup=0 drop=125
> speed=0.0806x
> frame=  216 fps=3.6 q=22.3 size=    5120kB time=00:00:04.92 bitrate=8514.6kbits/s dup=0 drop=127
> speed=0.0818x
> frame=  219 fps=3.6 q=24.5 size=    5120kB time=00:00:04.96 bitrate=8440.9kbits/s dup=0 drop=129
> speed=0.0817x
> frame=  221 fps=3.6 q=26.6 size=    5120kB time=00:00:05.03 bitrate=8333.6kbits/s dup=0 drop=129
> speed=0.082x
> frame=  224 fps=3.6 q=26.4 size=    5120kB time=00:00:05.17 bitrate=8111.2kbits/s dup=0 drop=131
> speed=0.0835x
> frame=  227 fps=3.6 q=26.6 size=    5120kB time=00:00:05.17 bitrate=8111.2kbits/s dup=0 drop=133
> speed=0.0828x
> frame=  229 fps=3.6 q=22.4 size=    5120kB time=00:00:05.28 bitrate=7930.2kbits/s dup=0 drop=135
> speed=0.084x
> frame=  232 fps=3.7 q=24.5 size=    5120kB time=00:00:05.28 bitrate=7930.2kbits/s dup=0 drop=137
> speed=0.0833x
> frame=  234 fps=3.7 q=26.6 size=    5120kB time=00:00:05.42 bitrate=7728.6kbits/s dup=0 drop=139
> speed=0.0847x
> frame=  238 fps=3.7 q=24.7 size=    5120kB time=00:00:05.48 bitrate=7652.4kbits/s dup=0 drop=141
> speed=0.0848x
> frame=  240 fps=3.7 q=26.6 size=    5120kB time=00:00:05.54 bitrate=7564.1kbits/s dup=0 drop=143
> speed=0.085x
> frame=  243 fps=3.7 q=22.5 size=    5120kB time=00:00:05.67 bitrate=7394.8kbits/s dup=0 drop=145
> speed=0.0862x
> frame=  245 fps=3.7 q=26.7 size=    5120kB time=00:00:05.67 bitrate=7394.8kbits/s dup=0 drop=145
> speed=0.0855x
> frame=  248 fps=3.7 q=26.6 size=    5120kB time=00:00:05.80 bitrate=7230.3kbits/s dup=0 drop=147
> speed=0.0867x
> frame=  251 fps=3.7 q=26.7 size=    5120kB time=00:00:05.80 bitrate=7230.3kbits/s dup=0 drop=149
> speed=0.0858x
> frame=  254 fps=3.7 q=26.7 size=    5120kB time=00:00:05.92 bitrate=7075.4kbits/s dup=0 drop=151
> speed=0.087x
> frame=  257 fps=3.7 q=26.7 size=    5120kB time=00:00:06.02 bitrate=6961.5kbits/s dup=0 drop=153
> speed=0.0878x
> frame=  260 fps=3.8 q=26.7 size=    5120kB time=00:00:06.07 bitrate=6900.8kbits/s dup=0 drop=155
> speed=0.0879x
> frame=  262 fps=3.8 q=24.9 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=157
> speed=0.0901x
> frame=  265 fps=3.8 q=21.9 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=159
> speed=0.0894x
> frame=  268 fps=3.8 q=24.7 size=    5120kB time=00:00:06.28 bitrate=6677.8kbits/s dup=0 drop=161
> speed=0.0883x
> frame=  271 fps=3.8 q=21.9 size=    5120kB time=00:00:06.41 bitrate=6534.2kbits/s dup=0 drop=163
> speed=0.0895x
> frame=  274 fps=3.8 q=24.8 size=    5120kB time=00:00:06.54 bitrate=6406.5kbits/s dup=0 drop=165
> speed=0.0906x
> frame=  276 fps=3.8 q=26.6 size=    5120kB time=00:00:06.54 bitrate=6406.5kbits/s dup=0 drop=167
> speed=0.0898x
> frame=  280 fps=3.8 q=26.8 size=    7424kB time=00:00:06.66 bitrate=9124.9kbits/s dup=0 drop=169
> speed=0.0907x
> frame=  283 fps=3.8 q=26.7 size=    7424kB time=00:00:06.80 bitrate=8939.8kbits/s dup=0 drop=171
> speed=0.0919x
> frame=  286 fps=3.8 q=24.7 size=    7424kB time=00:00:06.80 bitrate=8939.8kbits/s dup=0 drop=173
> speed=0.0911x
> frame=  289 fps=3.8 q=21.8 size=    7424kB time=00:00:06.92 bitrate=8787.4kbits/s dup=0 drop=175
> speed=0.092x
> frame=  292 fps=3.9 q=24.7 size=    7424kB time=00:00:07.04 bitrate=8629.0kbits/s dup=0 drop=177
> speed=0.093x
> frame=  295 fps=3.9 q=21.7 size=    7424kB time=00:00:07.04 bitrate=8627.8kbits/s dup=0 drop=179
> speed=0.0923x
> frame=  298 fps=3.9 q=25.5 size=    7424kB time=00:00:07.16 bitrate=8486.9kbits/s dup=0 drop=181
> speed=0.0932x
> frame=  302 fps=3.9 q=22.1 size=    7424kB time=00:00:07.30 bitrate=8325.4kbits/s dup=0 drop=182
> speed=0.0943x
> frame=  305 fps=3.9 q=26.6 size=    7424kB time=00:00:07.30 bitrate=8325.4kbits/s dup=0 drop=184
> speed=0.0937x
> frame=  308 fps=3.9 q=26.7 size=    7424kB time=00:00:07.42 bitrate=8194.2kbits/s dup=0 drop=186
> speed=0.0945x
> frame=  310 fps=3.9 q=24.7 size=    7424kB time=00:00:07.44 bitrate=8167.8kbits/s dup=0 drop=188
> speed=0.0942x
> frame=  312 fps=3.9 q=26.6 size=    7424kB time=00:00:07.55 bitrate=8055.3kbits/s dup=0 drop=188
> speed=0.0949x
> frame=  316 fps=3.9 q=24.8 size=    7424kB time=00:00:07.68 bitrate=7909.7kbits/s dup=0 drop=192
> speed=0.0959x
> frame=  319 fps=4.0 q=21.2 size=    7424kB time=00:00:07.69 bitrate=7902.5kbits/s dup=0 drop=194
> speed=0.0953x
> frame=  323 fps=4.0 q=26.6 size=    7424kB time=00:00:07.80 bitrate=7791.1kbits/s dup=0 drop=196
> speed=0.0961x
> frame=  324 fps=4.0 q=26.6 size=    7424kB time=00:00:07.84 bitrate=7748.4kbits/s dup=0 drop=196
> speed=0.0959x
> frame=  328 fps=4.0 q=26.6 size=    7424kB time=00:00:08.04 bitrate=7564.4kbits/s dup=0 drop=197
> speed=0.0976x
> frame=  332 fps=4.0 q=26.7 size=    7424kB time=00:00:08.04 bitrate=7563.4kbits/s dup=0 drop=198
> speed=0.0968x
> frame=  335 fps=4.0 q=24.9 size=    7424kB time=00:00:08.16 bitrate=7445.8kbits/s dup=0 drop=200
> speed=0.0977x
> frame=  338 fps=4.0 q=21.8 size=    7424kB time=00:00:08.29 bitrate=7330.0kbits/s dup=0 drop=202
> speed=0.0987x
> frame=  341 fps=4.0 q=24.6 size=    7424kB time=00:00:08.29 bitrate=7330.0kbits/s dup=0 drop=204
> speed=0.098x
> frame=  344 fps=4.0 q=21.6 size=    7424kB time=00:00:08.42 bitrate=7219.5kbits/s dup=0 drop=206
> speed=0.0989x
> frame=  347 fps=4.0 q=24.6 size=    7424kB time=00:00:08.44 bitrate=7199.9kbits/s dup=0 drop=208
> speed=0.0985x
> frame=  349 fps=4.0 q=26.6 size=    7424kB time=00:00:08.54 bitrate=7119.8kbits/s dup=0 drop=210
> speed=0.099x
> frame=  353 fps=4.1 q=26.6 size=    7424kB time=00:00:08.68 bitrate=7005.8kbits/s dup=0 drop=212
> speed= 0.1x
> frame=  357 fps=4.1 q=26.6 size=    7424kB time=00:00:08.69 bitrate=6992.9kbits/s dup=0 drop=213
> speed=0.0995x
> frame=  360 fps=4.1 q=21.9 size=    7424kB time=00:00:08.79 bitrate=6912.6kbits/s dup=0 drop=214
> speed= 0.1x
> frame=  363 fps=4.1 q=26.7 size=    7424kB time=00:00:08.90 bitrate=6829.6kbits/s dup=0 drop=216
> speed=0.101x
> frame=  366 fps=4.1 q=21.5 size=    7424kB time=00:00:09.04 bitrate=6725.4kbits/s dup=0 drop=218
> speed=0.102x
> frame=  369 fps=4.1 q=26.6 size=    7424kB time=00:00:09.04 bitrate=6725.4kbits/s dup=0 drop=220
> speed=0.101x
> frame=  372 fps=4.1 q=25.5 size=    7424kB time=00:00:09.17 bitrate=6631.5kbits/s dup=0 drop=222
> speed=0.102x
> frame=  376 fps=4.1 q=21.3 size=    7424kB time=00:00:09.28 bitrate=6547.3kbits/s dup=0 drop=224
> speed=0.102x
> frame=  378 fps=4.1 q=21.1 size=    7424kB time=00:00:09.28 bitrate=6547.3kbits/s dup=0 drop=226
> speed=0.102x
> frame=  381 fps=4.2 q=26.6 size=    7424kB time=00:00:09.42 bitrate=6451.4kbits/s dup=0 drop=228
> speed=0.103x
> frame=  385 fps=4.2 q=26.6 size=    7424kB time=00:00:09.54 bitrate=6372.3kbits/s dup=0 drop=229
> speed=0.103x
> frame=  389 fps=4.2 q=24.2 size=    7424kB time=00:00:09.54 bitrate=6372.3kbits/s dup=0 drop=230
> speed=0.103x
> frame=  392 fps=4.2 q=21.6 size=    7424kB time=00:00:09.67 bitrate=6287.3kbits/s dup=0 drop=232
> speed=0.104x
> frame=  395 fps=4.2 q=26.6 size=    7424kB time=00:00:09.80 bitrate=6205.9kbits/s dup=0 drop=234
> speed=0.104x
> frame=  398 fps=4.2 q=25.4 size=    7424kB time=00:00:09.80 bitrate=6205.9kbits/s dup=0 drop=236
> speed=0.104x
> frame=  401 fps=4.2 q=26.6 size=    7424kB time=00:00:09.92 bitrate=6125.2kbits/s dup=0 drop=238
> speed=0.104x
> frame=  404 fps=4.2 q=21.5 size=    7424kB time=00:00:09.92 bitrate=6125.2kbits/s dup=0 drop=240
> speed=0.104x
> frame=  406 fps=4.2 q=26.6 size=    7424kB time=00:00:10.04 bitrate=6053.9kbits/s dup=0 drop=242
> speed=0.104x
> frame=  410 fps=4.2 q=26.6 size=    7424kB time=00:00:10.17 bitrate=5977.7kbits/s dup=0 drop=244
> speed=0.105x
> frame=  413 fps=4.2 q=21.1 size=    7424kB time=00:00:10.18 bitrate=5971.3kbits/s dup=0 drop=246
> speed=0.105x
> frame=  416 fps=4.3 q=26.6 size=    7424kB time=00:00:10.31 bitrate=5897.2kbits/s dup=0 drop=248
> speed=0.105x
> frame=  419 fps=4.3 q=24.6 size=    7424kB time=00:00:10.31 bitrate=5897.2kbits/s dup=0 drop=250
> speed=0.105x
> frame=  422 fps=4.3 q=21.4 size=    7424kB time=00:00:10.43 bitrate=5831.0kbits/s dup=0 drop=252
> speed=0.105x
> frame=  425 fps=4.3 q=25.3 size=    7424kB time=00:00:10.54 bitrate=5766.3kbits/s dup=0 drop=254
> speed=0.106x
> frame=  428 fps=4.3 q=26.4 size=    7424kB time=00:00:10.54 bitrate=5766.3kbits/s dup=0 drop=256
> speed=0.105x
> frame=  431 fps=4.3 q=26.4 size=    7424kB time=00:00:10.66 bitrate=5702.5kbits/s dup=0 drop=258
> speed=0.106x
> frame=  434 fps=4.3 q=21.5 size=    7424kB time=00:00:10.80 bitrate=5629.7kbits/s dup=0 drop=260
> speed=0.107x
> frame=  437 fps=4.3 q=24.5 size=    7424kB time=00:00:10.80 bitrate=5629.7kbits/s dup=0 drop=262
> speed=0.106x
> frame=  439 fps=4.3 q=26.4 size=    7424kB time=00:00:10.85 bitrate=5601.7kbits/s dup=0 drop=264
> speed=0.106x
> frame=  442 fps=4.3 q=21.5 size=    7424kB time=00:00:10.92 bitrate=5564.8kbits/s dup=0 drop=266
> speed=0.106x
> frame=  444 fps=4.3 q=26.4 size=    7424kB time=00:00:11.04 bitrate=5504.8kbits/s dup=0 drop=266
> speed=0.107x
> frame=  448 fps=4.3 q=25.3 size=    7424kB time=00:00:11.17 bitrate=5441.8kbits/s dup=0 drop=270
> speed=0.107x
> frame=  451 fps=4.3 q=26.3 size=    7424kB time=00:00:11.17 bitrate=5440.3kbits/s dup=0 drop=272
> speed=0.107x
> frame=  455 fps=4.3 q=24.5 size=   12544kB time=00:00:11.30 bitrate=9089.8kbits/s dup=0 drop=274
> speed=0.108x
> frame=  457 fps=4.3 q=26.3 size=   12544kB time=00:00:11.34 bitrate=9057.0kbits/s dup=0 drop=276
> speed=0.107x
> frame=  461 fps=4.3 q=24.5 size=   12544kB time=00:00:11.46 bitrate=8963.0kbits/s dup=0 drop=278
> speed=0.108x
> frame=  463 fps=4.3 q=26.3 size=   12544kB time=00:00:11.51 bitrate=8925.6kbits/s dup=0 drop=280
> speed=0.108x
> frame=  467 fps=4.3 q=24.5 size=   12544kB time=00:00:11.62 bitrate=8839.6kbits/s dup=0 drop=282
> speed=0.108x
> frame=  470 fps=4.4 q=21.2 size=   12544kB time=00:00:11.75 bitrate=8743.3kbits/s dup=0 drop=284
> speed=0.109x
> frame=  472 fps=4.4 q=25.2 size=   12544kB time=00:00:11.76 bitrate=8735.9kbits/s dup=0 drop=286
> speed=0.108x
> frame=  474 fps=4.3 q=26.3 size=   12544kB time=00:00:11.88 bitrate=8649.9kbits/s dup=0 drop=286
> speed=0.109x
> frame=  478 fps=4.4 q=21.5 size=   12544kB time=00:00:11.97 bitrate=8579.8kbits/s dup=0 drop=290
> speed=0.109x
> frame=  480 fps=4.4 q=26.4 size=   12544kB time=00:00:11.97 bitrate=8579.8kbits/s dup=0 drop=290
> speed=0.109x
> frame=  484 fps=4.4 q=21.0 size=   12544kB time=00:00:12.17 bitrate=8437.5kbits/s dup=0 drop=294
> speed=0.11x
> frame=  486 fps=4.4 q=26.4 size=   12544kB time=00:00:12.17 bitrate=8437.5kbits/s dup=0 drop=294
> speed=0.109x
> frame=  490 fps=4.4 q=21.3 size=   12544kB time=00:00:12.29 bitrate=8356.5kbits/s dup=0 drop=298
> speed=0.11x
> frame=  492 fps=4.4 q=26.3 size=   12544kB time=00:00:12.30 bitrate=8351.1kbits/s dup=0 drop=298
> speed=0.109x
> frame=  496 fps=4.4 q=21.2 size=   12544kB time=00:00:12.43 bitrate=8263.8kbits/s dup=0 drop=302
> speed=0.11x
> frame=  498 fps=4.4 q=26.4 size=   12544kB time=00:00:12.55 bitrate=8186.1kbits/s dup=0 drop=302
> speed=0.11x
> frame=  501 fps=4.4 q=21.3 size=   12544kB time=00:00:12.55 bitrate=8184.8kbits/s dup=0 drop=304
> speed=0.11x
> frame=  503 fps=4.4 q=26.1 size=   12544kB time=00:00:12.67 bitrate=8110.5kbits/s dup=0 drop=306
> speed=0.11x
> frame=  506 fps=4.4 q=21.0 size=   12544kB time=00:00:12.80 bitrate=8022.5kbits/s dup=0 drop=308
> speed=0.111x
> frame=  509 fps=4.4 q=24.6 size=   12544kB time=00:00:12.80 bitrate=8022.5kbits/s dup=0 drop=310
> speed=0.111x
> frame=  512 fps=4.4 q=20.7 size=   12544kB time=00:00:12.92 bitrate=7949.9kbits/s dup=0 drop=312
> speed=0.111x
> frame=  515 fps=4.4 q=25.4 size=   12544kB time=00:00:13.03 bitrate=7884.6kbits/s dup=0 drop=314
> speed=0.111x
> frame=  518 fps=4.4 q=26.6 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=316
> speed=0.112x
> frame=  519 fps=4.4 q=21.3 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=316
> speed=0.111x
> frame=  522 fps=4.4 q=26.5 size=   12544kB time=00:00:13.17 bitrate=7802.0kbits/s dup=0 drop=318
> speed=0.111x
> frame=  526 fps=4.4 q=18.3 size=   12544kB time=00:00:13.28 bitrate=7732.7kbits/s dup=0 drop=322
> speed=0.111x
> frame=  529 fps=4.4 q=26.6 size=   14848kB time=00:00:13.42 bitrate=9059.0kbits/s dup=0 drop=324
> speed=0.112x
> frame=  532 fps=4.4 q=25.5 size=   14848kB time=00:00:13.43 bitrate=9051.6kbits/s dup=0 drop=326
> speed=0.111x
> frame=  534 fps=4.4 q=26.6 size=   14848kB time=00:00:13.55 bitrate=8973.4kbits/s dup=0 drop=326
> speed=0.112x
> frame=  538 fps=4.4 q=20.8 size=   14848kB time=00:00:13.60 bitrate=8937.8kbits/s dup=0 drop=330
> speed=0.112x
> frame=  540 fps=4.4 q=26.7 size=   14848kB time=00:00:13.67 bitrate=8896.0kbits/s dup=0 drop=330
> speed=0.112x
> frame=  544 fps=4.4 q=25.6 size=   14848kB time=00:00:13.81 bitrate=8807.1kbits/s dup=0 drop=334
> speed=0.112x
> frame=  546 fps=4.4 q=26.8 size=   14848kB time=00:00:13.83 bitrate=8793.1kbits/s dup=0 drop=334
> speed=0.112x
> frame=  549 fps=4.4 q=27.1 size=   14848kB time=00:00:13.92 bitrate=8732.5kbits/s dup=0 drop=336
> speed=0.112x
> frame=  552 fps=4.4 q=26.8 size=   14848kB time=00:00:14.04 bitrate=8659.7kbits/s dup=0 drop=338
> speed=0.113x
> frame=  556 fps=4.4 q=25.7 size=   14848kB time=00:00:14.09 bitrate=8627.8kbits/s dup=0 drop=342
> speed=0.112x
> frame=  559 fps=4.4 q=26.8 size=   14848kB time=00:00:14.18 bitrate=8574.9kbits/s dup=0 drop=344
> speed=0.113x
> frame=  563 fps=4.4 q=25.7 size=   14848kB time=00:00:14.31 bitrate=8498.2kbits/s dup=0 drop=346
> speed=0.113x
> frame=  566 fps=4.5 q=27.3 size=   14848kB time=00:00:14.43 bitrate=8429.3kbits/s dup=0 drop=348
> speed=0.114x
> frame=  568 fps=4.4 q=25.7 size=   14848kB time=00:00:14.44 bitrate=8422.9kbits/s dup=0 drop=350
> speed=0.113x
> frame=  570 fps=4.4 q=26.9 size=   14848kB time=00:00:14.54 bitrate=8361.5kbits/s dup=0 drop=350
> speed=0.113x
> frame=  574 fps=4.5 q=21.1 size=   14848kB time=00:00:14.66 bitrate=8294.2kbits/s dup=0 drop=354
> speed=0.114x
> frame=  576 fps=4.5 q=26.9 size=   14848kB time=00:00:14.66 bitrate=8294.2kbits/s dup=0 drop=354
> speed=0.113x
> frame=  580 fps=4.5 q=25.7 size=   14848kB time=00:00:14.80 bitrate=8216.9kbits/s dup=0 drop=358
> speed=0.114x
> frame=  582 fps=4.5 q=26.9 size=   14848kB time=00:00:14.82 bitrate=8204.7kbits/s dup=0 drop=358
> speed=0.114x
> frame=  586 fps=4.5 q=25.8 size=   14848kB time=00:00:14.93 bitrate=8145.4kbits/s dup=0 drop=362
> speed=0.114x
> frame=  588 fps=4.5 q=26.9 size=   14848kB time=00:00:15.04 bitrate=8083.1kbits/s dup=0 drop=362
> speed=0.114x
> frame=  591 fps=4.4 q=27.7 Lsize=   19559kB time=00:00:20.09 bitrate=7974.0kbits/s dup=0 drop=364
> speed=0.15x
> video:13947kB audio:5587kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.131188%
> =====

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

pdr0
In reply to this post by Mark Filipak (ffmpeg)
Mark Filipak (ffmpeg) wrote

> Is there something about inputting raw frames that I don't know?
>
> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
> The vapoursynth script, 'Mark's.vpy', is known good.
> The output of vapoursynth is known good.
> I've tried to be careful to retain valid PTSs, but apparently have failed.
> The output should be around 1200 frames, but 364 frames are dropped.
> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
> frames that are there are in
> the correct order.
> The only thing I can guess is that ffmpeg handles 48/1.001fps raw video
> frames in such a way that
> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
> Can anyone see an error. Or, lacking an error, does anyone know of a
> workaround?
>
> Thanks.
>
> Mark's_script_6.cmd
> =====
> ECHO from vapoursynth import core>Mark's.vpy
> ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
> ECHO import havsfunc as havsfunc>>Mark's.vpy
> ECHO video = havsfunc.InterFrame(video, Preset="medium", Tuning="smooth",
> InputType="2D",
> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
> ECHO video.set_output()>>Mark's.vpy
> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
> -filter_complex
> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
> select=not(eq(mod(n\,5)\,4))[3],
> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0
> 1 2 2 3,
> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map
> 0:v -map 1:a -codec:v
> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
> Mark's_script_6.mkv -y





Are you trying to keep the same frames from vapoursynth output node, but
assign 60000/1001 fps and timestamps instead of 48000/1001 ? (effectively
making it a speed up)

If so, the workaround is : add after the Interframe line

video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)




--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
On 02/12/2021 01:27 AM, pdr0 wrote:

> Mark Filipak (ffmpeg) wrote
>> Is there something about inputting raw frames that I don't know?
>>
>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
>> The vapoursynth script, 'Mark's.vpy', is known good.
>> The output of vapoursynth is known good.
>> I've tried to be careful to retain valid PTSs, but apparently have failed.
>> The output should be around 1200 frames, but 364 frames are dropped.
>> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
>> frames that are there are in
>> the correct order.
>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw video
>> frames in such a way that
>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
>> Can anyone see an error. Or, lacking an error, does anyone know of a
>> workaround?
>>
>> Thanks.
>>
>> Mark's_script_6.cmd
>> =====
>> ECHO from vapoursynth import core>Mark's.vpy
>> ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
>> ECHO import havsfunc as havsfunc>>Mark's.vpy
>> ECHO video = havsfunc.InterFrame(video, Preset="medium", Tuning="smooth",
>> InputType="2D",
>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
>> ECHO video.set_output()>>Mark's.vpy
>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
>> -filter_complex
>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
>> select=not(eq(mod(n\,5)\,4))[3],
>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)', shuffleframes=0
>> 1 2 2 3,
>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map
>> 0:v -map 1:a -codec:v
>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
>> Mark's_script_6.mkv -y
>
>
> Are you trying to keep the same frames from vapoursynth output node, but
> assign 60000/1001 fps and timestamps instead of 48000/1001 ? (effectively
> making it a speed up)
>
> If so, the workaround is : add after the Interframe line
>
> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)

After your suggested addition to the python script, Mark's.vpy,
With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there are 335 drops.
With '-filter_complex "split[1][2]...' there are 190 drops.

--
I don't have a dog.
And furthermore, my dog doesn't bite.
And furthermore, you provoked him.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

pdr0
Mark Filipak (ffmpeg) wrote

> On 02/12/2021 01:27 AM, pdr0 wrote:
>> Mark Filipak (ffmpeg) wrote
>>> Is there something about inputting raw frames that I don't know?
>>>
>>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
>>> The vapoursynth script, 'Mark's.vpy', is known good.
>>> The output of vapoursynth is known good.
>>> I've tried to be careful to retain valid PTSs, but apparently have
>>> failed.
>>> The output should be around 1200 frames, but 364 frames are dropped.
>>> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
>>> frames that are there are in
>>> the correct order.
>>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw video
>>> frames in such a way that
>>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
>>> Can anyone see an error. Or, lacking an error, does anyone know of a
>>> workaround?
>>>
>>> Thanks.
>>>
>>> Mark's_script_6.cmd
>>> =====
>>> ECHO from vapoursynth import core>Mark's.vpy
>>> ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
>>> ECHO import havsfunc as havsfunc>>Mark's.vpy
>>> ECHO video = havsfunc.InterFrame(video, Preset="medium",
>>> Tuning="smooth",
>>> InputType="2D",
>>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
>>> ECHO video.set_output()>>Mark's.vpy
>>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
>>> -filter_complex
>>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
>>> select=not(eq(mod(n\,5)\,4))[3],
>>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)',
>>> shuffleframes=0
>>> 1 2 2 3,
>>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map
>>> 0:v -map 1:a -codec:v
>>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
>>> Mark's_script_6.mkv -y
>>
>>
>> Are you trying to keep the same frames from vapoursynth output node, but
>> assign 60000/1001 fps and timestamps instead of 48000/1001 ? (effectively
>> making it a speed up)
>>
>> If so, the workaround is : add after the Interframe line
>>
>> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)
>
> After your suggested addition to the python script, Mark's.vpy,
> With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there are
> 335 drops.
> With '-filter_complex "split[1][2]...' there are 190 drops.

The workaround is correct for the PTS

 AssumeFPS is used to change the frame rate (and timestamps) without
changing the frame count. It just assigns a framerate (and their PTS). So
you would use that instead of setpts

There are no frame drops or additions from vapoursynth. The framecount,
framerate and PTS are correct at that point. You can verify this by encoding
the vpy script directly without other filters.

So this implies the some drops are from setpts, and some other drops are
from some of your other filters






--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
On 02/12/2021 02:28 AM, pdr0 wrote:

> Mark Filipak (ffmpeg) wrote
>> On 02/12/2021 01:27 AM, pdr0 wrote:
>>> Mark Filipak (ffmpeg) wrote
>>>> Is there something about inputting raw frames that I don't know?
>>>>
>>>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
>>>> The vapoursynth script, 'Mark's.vpy', is known good.
>>>> The output of vapoursynth is known good.
>>>> I've tried to be careful to retain valid PTSs, but apparently have
>>>> failed.
>>>> The output should be around 1200 frames, but 364 frames are dropped.
>>>> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
>>>> frames that are there are in
>>>> the correct order.
>>>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw video
>>>> frames in such a way that
>>>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
>>>> Can anyone see an error. Or, lacking an error, does anyone know of a
>>>> workaround?
>>>>
>>>> Thanks.
>>>>
>>>> Mark's_script_6.cmd
>>>> =====
>>>> ECHO from vapoursynth import core>Mark's.vpy
>>>> ECHO video = core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
>>>> ECHO import havsfunc as havsfunc>>Mark's.vpy
>>>> ECHO video = havsfunc.InterFrame(video, Preset="medium",
>>>> Tuning="smooth",
>>>> InputType="2D",
>>>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
>>>> ECHO video.set_output()>>Mark's.vpy
>>>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
>>>> -filter_complex
>>>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
>>>> select=not(eq(mod(n\,5)\,4))[3],
>>>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)',
>>>> shuffleframes=0
>>>> 1 2 2 3,
>>>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv -map
>>>> 0:v -map 1:a -codec:v
>>>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
>>>> Mark's_script_6.mkv -y
>>>
>>>
>>> Are you trying to keep the same frames from vapoursynth output node, but
>>> assign 60000/1001 fps and timestamps instead of 48000/1001 ? (effectively
>>> making it a speed up)
>>>
>>> If so, the workaround is : add after the Interframe line
>>>
>>> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)
>>
>> After your suggested addition to the python script, Mark's.vpy,
>> With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there are
>> 335 drops.
>> With '-filter_complex "split[1][2]...' there are 190 drops.
>
> The workaround is correct for the PTS
>
>   AssumeFPS is used to change the frame rate (and timestamps) without
> changing the frame count. It just assigns a framerate (and their PTS). So
> you would use that instead of setpts
>
> There are no frame drops or additions from vapoursynth. The framecount,
> framerate and PTS are correct at that point. You can verify this by encoding
> the vpy script directly without other filters.
>
> So this implies the some drops are from setpts, and some other drops are
> from some of your other filters

Well, I previously removed the 'setpts' directives with no change. Also, I previously tested with no
ffmpeg filters at all and got the expected sped up video. I honestly can't see anything else to
discover. But I'll start stripping filters one by one and hack a solution (or make a discovery). Of
course, the 'shuffleframes' directives are most suspect, but I've used 'shuffleframes' in the past
and succeeded.

Thanks for your help. It was instrumental. The rest is up to me.

--
The U.S. Senate and House should follow the ancient Roman model.
Their Princeps Senatus and Tribunus Plebis had their own armies.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

pdr0
Mark Filipak (ffmpeg) wrote

> On 02/12/2021 02:28 AM, pdr0 wrote:
>> Mark Filipak (ffmpeg) wrote
>>> On 02/12/2021 01:27 AM, pdr0 wrote:
>>>> Mark Filipak (ffmpeg) wrote
>>>>> Is there something about inputting raw frames that I don't know?
>>>>>
>>>>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
>>>>> The vapoursynth script, 'Mark's.vpy', is known good.
>>>>> The output of vapoursynth is known good.
>>>>> I've tried to be careful to retain valid PTSs, but apparently have
>>>>> failed.
>>>>> The output should be around 1200 frames, but 364 frames are dropped.
>>>>> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
>>>>> frames that are there are in
>>>>> the correct order.
>>>>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw
>>>>> video
>>>>> frames in such a way that
>>>>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
>>>>> Can anyone see an error. Or, lacking an error, does anyone know of a
>>>>> workaround?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Mark's_script_6.cmd
>>>>> =====
>>>>> ECHO from vapoursynth import core>Mark's.vpy
>>>>> ECHO video =
>>>>> core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
>>>>> ECHO import havsfunc as havsfunc>>Mark's.vpy
>>>>> ECHO video = havsfunc.InterFrame(video, Preset="medium",
>>>>> Tuning="smooth",
>>>>> InputType="2D",
>>>>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
>>>>> ECHO video.set_output()>>Mark's.vpy
>>>>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
>>>>> -filter_complex
>>>>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
>>>>> select=not(eq(mod(n\,5)\,4))[3],
>>>>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)',
>>>>> shuffleframes=0
>>>>> 1 2 2 3,
>>>>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv
>>>>> -map
>>>>> 0:v -map 1:a -codec:v
>>>>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
>>>>> Mark's_script_6.mkv -y
>>>>
>>>>
>>>> Are you trying to keep the same frames from vapoursynth output node,
>>>> but
>>>> assign 60000/1001 fps and timestamps instead of 48000/1001 ?
>>>> (effectively
>>>> making it a speed up)
>>>>
>>>> If so, the workaround is : add after the Interframe line
>>>>
>>>> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)
>>>
>>> After your suggested addition to the python script, Mark's.vpy,
>>> With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there are
>>> 335 drops.
>>> With '-filter_complex "split[1][2]...' there are 190 drops.
>>
>> The workaround is correct for the PTS
>>
>>   AssumeFPS is used to change the frame rate (and timestamps) without
>> changing the frame count. It just assigns a framerate (and their PTS). So
>> you would use that instead of setpts
>>
>> There are no frame drops or additions from vapoursynth. The framecount,
>> framerate and PTS are correct at that point. You can verify this by
>> encoding
>> the vpy script directly without other filters.
>>
>> So this implies the some drops are from setpts, and some other drops are
>> from some of your other filters
>
> Well, I previously removed the 'setpts' directives with no change. Also, I
> previously tested with no
> ffmpeg filters at all and got the expected sped up video. I honestly can't
> see anything else to
> discover. But I'll start stripping filters one by one and hack a solution
> (or make a discovery). Of
> course, the 'shuffleframes' directives are most suspect, but I've used
> 'shuffleframes' in the past
> and succeeded.
>
> Thanks for your help. It was instrumental. The rest is up to me.




I realize this is ffmpeg-user board, but why not do some of the video
processing in vapoursynth ? You're already using it for part of it.  But I'm
not sure what you're trying to do ?

It looks like you're taking the 48000/1001 interpolated frame doubled output
and adding a "BC~C.bc~c" frame to every group of 4, to make up the
60000/1001?

What is a "BC~C.bc~c" frame ? Is it that checkerboard blend?
http://ffmpeg.org/pipermail/ffmpeg-user/2021-February/051852.html

Either way, cadence wise that's going to be worse in terms of smoothness
then an optical flow retimed 60000/1001 . (Some people would argue it's
worse period, you're retiming it and making it look like a soap opera...)

Are you actually interested in workarounds and getting the job done, or just
how to do this in ffmpeg?

If you just want it done, this is easier in avisynth because of the
InterleaveEvery function;
http://avisynth.nl/index.php/ApplyEvery#InterleaveEvery

And InterleaveEvery works on frames , not timestamps. It should be possible
in vapoursynth too, but vapoursynth doesn't have that exact function neatly
wrapped up already, you'd have to cobble together some python, a quick vpy
solution doesn't come to my mind






--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
On 02/12/2021 02:48 AM, pdr0 wrote:

> Mark Filipak (ffmpeg) wrote
>> On 02/12/2021 02:28 AM, pdr0 wrote:
>>> Mark Filipak (ffmpeg) wrote
>>>> On 02/12/2021 01:27 AM, pdr0 wrote:
>>>>> Mark Filipak (ffmpeg) wrote
>>>>>> Is there something about inputting raw frames that I don't know?
>>>>>>
>>>>>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
>>>>>> The vapoursynth script, 'Mark's.vpy', is known good.
>>>>>> The output of vapoursynth is known good.
>>>>>> I've tried to be careful to retain valid PTSs, but apparently have
>>>>>> failed.
>>>>>> The output should be around 1200 frames, but 364 frames are dropped.
>>>>>> I've frame stepped through the target, 'Mark's_script_6.mkv', and the
>>>>>> frames that are there are in
>>>>>> the correct order.
>>>>>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw
>>>>>> video
>>>>>> frames in such a way that
>>>>>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
>>>>>> Can anyone see an error. Or, lacking an error, does anyone know of a
>>>>>> workaround?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Mark's_script_6.cmd
>>>>>> =====
>>>>>> ECHO from vapoursynth import core>Mark's.vpy
>>>>>> ECHO video =
>>>>>> core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
>>>>>> ECHO import havsfunc as havsfunc>>Mark's.vpy
>>>>>> ECHO video = havsfunc.InterFrame(video, Preset="medium",
>>>>>> Tuning="smooth",
>>>>>> InputType="2D",
>>>>>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
>>>>>> ECHO video.set_output()>>Mark's.vpy
>>>>>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
>>>>>> -filter_complex
>>>>>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
>>>>>> select=not(eq(mod(n\,5)\,4))[3],
>>>>>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)',
>>>>>> shuffleframes=0
>>>>>> 1 2 2 3,
>>>>>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv
>>>>>> -map
>>>>>> 0:v -map 1:a -codec:v
>>>>>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
>>>>>> Mark's_script_6.mkv -y
>>>>>
>>>>>
>>>>> Are you trying to keep the same frames from vapoursynth output node,
>>>>> but
>>>>> assign 60000/1001 fps and timestamps instead of 48000/1001 ?
>>>>> (effectively
>>>>> making it a speed up)
>>>>>
>>>>> If so, the workaround is : add after the Interframe line
>>>>>
>>>>> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)
>>>>
>>>> After your suggested addition to the python script, Mark's.vpy,
>>>> With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there are
>>>> 335 drops.
>>>> With '-filter_complex "split[1][2]...' there are 190 drops.
>>>
>>> The workaround is correct for the PTS
>>>
>>>    AssumeFPS is used to change the frame rate (and timestamps) without
>>> changing the frame count. It just assigns a framerate (and their PTS). So
>>> you would use that instead of setpts
>>>
>>> There are no frame drops or additions from vapoursynth. The framecount,
>>> framerate and PTS are correct at that point. You can verify this by
>>> encoding
>>> the vpy script directly without other filters.
>>>
>>> So this implies the some drops are from setpts, and some other drops are
>>> from some of your other filters
>>
>> Well, I previously removed the 'setpts' directives with no change. Also, I
>> previously tested with no
>> ffmpeg filters at all and got the expected sped up video. I honestly can't
>> see anything else to
>> discover. But I'll start stripping filters one by one and hack a solution
>> (or make a discovery). Of
>> course, the 'shuffleframes' directives are most suspect, but I've used
>> 'shuffleframes' in the past
>> and succeeded.
>>
>> Thanks for your help. It was instrumental. The rest is up to me.
>
>
>
>
> I realize this is ffmpeg-user board, but why not do some of the video
> processing in vapoursynth ? You're already using it for part of it.  But I'm
> not sure what you're trying to do ?
>
> It looks like you're taking the 48000/1001 interpolated frame doubled output
> and adding a "BC~C.bc~c" frame to every group of 4, to make up the
> 60000/1001?
>
> What is a "BC~C.bc~c" frame ? Is it that checkerboard blend?
> http://ffmpeg.org/pipermail/ffmpeg-user/2021-February/051852.html
>
> Either way, cadence wise that's going to be worse in terms of smoothness
> then an optical flow retimed 60000/1001 . (Some people would argue it's
> worse period, you're retiming it and making it look like a soap opera...)

You know, I think that "soap opera" opinion is entirely bogus. In a movie theater, projectors are
triple shuttered. That essentially brings the frame rate up to 72fps with picture rate of 24pps (or,
if you include the times when the shutter is closed, 144fps). When some people see on a TV what they
would see in a cinema, they say it looks like a soap opera. It's not what they're used to seeing on
a TV. I think 60fps on a 60Hz TV looks much better, that it looks like reality. If you've been
following what I've been doing, you'll know that's been my objective all along. I'd hoped that
minterpolate would do it, but minterpolate makes too many errors. svpflow does a much better job and
it does it via GPU (so transcoding goes from 4 days to 14 hours). I'm pretty confident that going to
48fps (instead of 60fps) and then adding a modulo-4 frame will speed up the transcode by about 40%
(to 8-1/2 hours -- an overnight job!).

> Are you actually interested in workarounds and getting the job done, or just
> how to do this in ffmpeg?

Well, I guess I just want to get the job done. The linchpin is the added frame. What I want to do is
create a modulo-4, 1/60th second gap in the frames coming out of VapourSynth and filling it with a
checkerboard blend of the frames on either side of the gap -- essentially a blended decombing --
with PTSs set to give 60/1.001fps. I realize that will produce a slight judder (1 frame in every 5
frames, but based on my experiments with minterplolate, that judder is *almost* imperceptible. If
shuffleframes proves to be the problem, I'll do a 3322telecine and checkerboard blend the combed
frame. I'll get where I want to go eventually. All the guesswork & discovery regarding how ffmpeg
filters work is just awfully tedious.

> If you just want it done, this is easier in avisynth because of the
> InterleaveEvery function;
> http://avisynth.nl/index.php/ApplyEvery#InterleaveEvery

Oh, my. Avisynth? 'InterleaveEvery', eh? That doesn't sound like what I want, but I'll check it out.
Thanks.

--
The U.S. Senate and House should follow the ancient Roman model.
Their Princeps Senatus and Tribunus Plebis had their own armies.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Paul B Mahol
On Fri, Feb 12, 2021 at 9:36 AM Mark Filipak (ffmpeg) <[hidden email]>
wrote:

> On 02/12/2021 02:48 AM, pdr0 wrote:
> > Mark Filipak (ffmpeg) wrote
> >> On 02/12/2021 02:28 AM, pdr0 wrote:
> >>> Mark Filipak (ffmpeg) wrote
> >>>> On 02/12/2021 01:27 AM, pdr0 wrote:
> >>>>> Mark Filipak (ffmpeg) wrote
> >>>>>> Is there something about inputting raw frames that I don't know?
> >>>>>>
> >>>>>> I'm using 'vspipe' to pipe raw frames to 'ffmpeg -i pipe:'.
> >>>>>> The vapoursynth script, 'Mark's.vpy', is known good.
> >>>>>> The output of vapoursynth is known good.
> >>>>>> I've tried to be careful to retain valid PTSs, but apparently have
> >>>>>> failed.
> >>>>>> The output should be around 1200 frames, but 364 frames are dropped.
> >>>>>> I've frame stepped through the target, 'Mark's_script_6.mkv', and
> the
> >>>>>> frames that are there are in
> >>>>>> the correct order.
> >>>>>> The only thing I can guess is that ffmpeg handles 48/1.001fps raw
> >>>>>> video
> >>>>>> frames in such a way that
> >>>>>> PTS is not valid or can't be changed with 'setpts=fps=60000/1001'.
> >>>>>> Can anyone see an error. Or, lacking an error, does anyone know of a
> >>>>>> workaround?
> >>>>>>
> >>>>>> Thanks.
> >>>>>>
> >>>>>> Mark's_script_6.cmd
> >>>>>> =====
> >>>>>> ECHO from vapoursynth import core>Mark's.vpy
> >>>>>> ECHO video =
> >>>>>> core.ffms2.Source(source='Mark\'s_source.mkv')>>Mark's.vpy
> >>>>>> ECHO import havsfunc as havsfunc>>Mark's.vpy
> >>>>>> ECHO video = havsfunc.InterFrame(video, Preset="medium",
> >>>>>> Tuning="smooth",
> >>>>>> InputType="2D",
> >>>>>> NewNum=48000, NewDen=1001, GPU=True)>>Mark's.vpy
> >>>>>> ECHO video.set_output()>>Mark's.vpy
> >>>>>> vspipe --y4m Mark's.vpy - | ffmpeg -thread_queue_size 2048 -i pipe:
> >>>>>> -filter_complex
> >>>>>> "setpts=N*1001/60000/TB, split[1][2], [1]shuffleframes=0 1 2 3 3,
> >>>>>> select=not(eq(mod(n\,5)\,4))[3],
> >>>>>> [2]tblend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)',
> >>>>>> shuffleframes=0
> >>>>>> 1 2 2 3,
> >>>>>> select=eq(mod(n\,5)\,4)[4], [3][4]interleave" -i Mark's_source.mkv
> >>>>>> -map
> >>>>>> 0:v -map 1:a -codec:v
> >>>>>> libx265 -x265-params "crf=16:qcomp=0.60" -codec:a copy -codec:s copy
> >>>>>> Mark's_script_6.mkv -y
> >>>>>
> >>>>>
> >>>>> Are you trying to keep the same frames from vapoursynth output node,
> >>>>> but
> >>>>> assign 60000/1001 fps and timestamps instead of 48000/1001 ?
> >>>>> (effectively
> >>>>> making it a speed up)
> >>>>>
> >>>>> If so, the workaround is : add after the Interframe line
> >>>>>
> >>>>> video = core.std.AssumeFPS(video, fpsnum=60000, fpsden=1001)
> >>>>
> >>>> After your suggested addition to the python script, Mark's.vpy,
> >>>> With '-filter_complex "setpts=N*1001/60000/TB, split[1][2]...' there
> are
> >>>> 335 drops.
> >>>> With '-filter_complex "split[1][2]...' there are 190 drops.
> >>>
> >>> The workaround is correct for the PTS
> >>>
> >>>    AssumeFPS is used to change the frame rate (and timestamps) without
> >>> changing the frame count. It just assigns a framerate (and their PTS).
> So
> >>> you would use that instead of setpts
> >>>
> >>> There are no frame drops or additions from vapoursynth. The framecount,
> >>> framerate and PTS are correct at that point. You can verify this by
> >>> encoding
> >>> the vpy script directly without other filters.
> >>>
> >>> So this implies the some drops are from setpts, and some other drops
> are
> >>> from some of your other filters
> >>
> >> Well, I previously removed the 'setpts' directives with no change.
> Also, I
> >> previously tested with no
> >> ffmpeg filters at all and got the expected sped up video. I honestly
> can't
> >> see anything else to
> >> discover. But I'll start stripping filters one by one and hack a
> solution
> >> (or make a discovery). Of
> >> course, the 'shuffleframes' directives are most suspect, but I've used
> >> 'shuffleframes' in the past
> >> and succeeded.
> >>
> >> Thanks for your help. It was instrumental. The rest is up to me.
> >
> >
> >
> >
> > I realize this is ffmpeg-user board, but why not do some of the video
> > processing in vapoursynth ? You're already using it for part of it.  But
> I'm
> > not sure what you're trying to do ?
> >
> > It looks like you're taking the 48000/1001 interpolated frame doubled
> output
> > and adding a "BC~C.bc~c" frame to every group of 4, to make up the
> > 60000/1001?
> >
> > What is a "BC~C.bc~c" frame ? Is it that checkerboard blend?
> > http://ffmpeg.org/pipermail/ffmpeg-user/2021-February/051852.html
> >
> > Either way, cadence wise that's going to be worse in terms of smoothness
> > then an optical flow retimed 60000/1001 . (Some people would argue it's
> > worse period, you're retiming it and making it look like a soap opera...)
>
> You know, I think that "soap opera" opinion is entirely bogus. In a movie
> theater, projectors are
> triple shuttered. That essentially brings the frame rate up to 72fps with
> picture rate of 24pps (or,
> if you include the times when the shutter is closed, 144fps). When some
> people see on a TV what they
> would see in a cinema, they say it looks like a soap opera. It's not what
> they're used to seeing on
> a TV. I think 60fps on a 60Hz TV looks much better, that it looks like
> reality. If you've been
> following what I've been doing, you'll know that's been my objective all
> along. I'd hoped that
> minterpolate would do it, but minterpolate makes too many errors. svpflow
> does a much better job and
> it does it via GPU (so transcoding goes from 4 days to 14 hours). I'm
> pretty confident that going to
> 48fps (instead of 60fps) and then adding a modulo-4 frame will speed up
> the transcode by about 40%
> (to 8-1/2 hours -- an overnight job!).
>
> > Are you actually interested in workarounds and getting the job done, or
> just
> > how to do this in ffmpeg?
>
> Well, I guess I just want to get the job done. The linchpin is the added
> frame. What I want to do is
> create a modulo-4, 1/60th second gap in the frames coming out of
> VapourSynth and filling it with a
> checkerboard blend of the frames on either side of the gap -- essentially
> a blended decombing --
> with PTSs set to give 60/1.001fps. I realize that will produce a slight
> judder (1 frame in every 5
> frames, but based on my experiments with minterplolate, that judder is
> *almost* imperceptible. If
> shuffleframes proves to be the problem, I'll do a 3322telecine and
> checkerboard blend the combed
> frame. I'll get where I want to go eventually. All the guesswork &
> discovery regarding how ffmpeg
> filters work is just awfully tedious.
>

Please just leave, your are not helping at all, you are also not grateful
at all when some one helps you.


>
> > If you just want it done, this is easier in avisynth because of the
> > InterleaveEvery function;
> > http://avisynth.nl/index.php/ApplyEvery#InterleaveEvery
>
> Oh, my. Avisynth? 'InterleaveEvery', eh? That doesn't sound like what I
> want, but I'll check it out.
> Thanks.
>
> --
> The U.S. Senate and House should follow the ancient Roman model.
> Their Princeps Senatus and Tribunus Plebis had their own armies.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
On 02/12/2021 04:49 AM, Paul B Mahol wrote:
> On Fri, Feb 12, 2021 at 9:36 AM Mark Filipak (ffmpeg) <[hidden email]>
> wrote:
>
>> On 02/12/2021 02:48 AM, pdr0 wrote:
>>> Mark Filipak (ffmpeg) wrote
>>>> On 02/12/2021 02:28 AM, pdr0 wrote:
>>>>> Mark Filipak (ffmpeg) wrote
>>>>>> On 02/12/2021 01:27 AM, pdr0 wrote:
>>>>>>> Mark Filipak (ffmpeg) wrote
-snip-
>>>>>>> Thanks.
-snip-
>>>>> Thanks for your help. It was instrumental. The rest is up to me.
-snip-
> Please just leave, your are not helping at all, you are also not grateful
> at all when some one helps you.

Gosh, Paul. You're a tough audience.

--
The U.S. Senate and House should follow the ancient Roman model.
Their Princeps Senatus and Tribunus Plebis had their own armies.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

pdr0
In reply to this post by Mark Filipak (ffmpeg)
Mark Filipak (ffmpeg) wrote

>> Either way, cadence wise that's going to be worse in terms of smoothness
>> then an optical flow retimed 60000/1001 . (Some people would argue it's
>> worse period, you're retiming it and making it look like a soap opera...)
>
> You know, I think that "soap opera" opinion is entirely bogus. In a movie
> theater, projectors are
> triple shuttered. That essentially brings the frame rate up to 72fps with
> picture rate of 24pps (or,
> if you include the times when the shutter is closed, 144fps). When some
> people see on a TV what they
> would see in a cinema, they say it looks like a soap opera. It's not what
> they're used to seeing on
> a TV. I think 60fps on a 60Hz TV looks much better, that it looks like
> reality. If you've been
> following what I've been doing, you'll know that's been my objective all
> along. I'd hoped that
> minterpolate would do it, but minterpolate makes too many errors. svpflow
> does a much better job and
> it does it via GPU (so transcoding goes from 4 days to 14 hours). I'm
> pretty confident that going to
> 48fps (instead of 60fps) and then adding a modulo-4 frame will speed up
> the transcode by about 40%
> (to 8-1/2 hours -- an overnight job!).

It's ok to "like" one thing vs. another, that's why there are motion flow
TV's that use optical flow/motion interpolation on the fly, and judderless
TV's that have different refresh rates

"72fps" or "144fps" equivalent in a cinema is not the same thing - the
analogy would be the cinema is repeating frames, vs interpolating new
in-between frames on a motion flow TV. Actual film samples in the cinema are
still at 24.  A judderless TV looks like a theatre, because they have the
equivalent of repeating frames at 120Hz, 144Hz, 300Hz, etc... The motion
characteristics are the same for the judderless display and the cinema.


Optical flow motion interpolation is generating new motion samples. It's
completely different. Soap operas are shot at 59.94fps , not 24fps. New
motion samples and (synthesized or real) high frame rate recording
completely change the look of the material. The other difference is shutter
speed of the acquisition camera. The faster the acquisition speed, usually
the higher the shutter speed and less motion blur. Synthesized interpolation
does not remove the motion blur with 24p acquisition, in fact it adds more
blur. Native 59.94p acquisition is "sharper" with  less motion blur

The live look or soap opera reality TV is ok for sports, reality TV, news,
but it changes the look of a theatrical movie shot at 24p. Motion
interpolated 59.94p looks completely different from the cinema, and that's
the issue many people have with it





>> Are you actually interested in workarounds and getting the job done, or
>> just
>> how to do this in ffmpeg?
>
> Well, I guess I just want to get the job done. The linchpin is the added
> frame. What I want to do is
> create a modulo-4, 1/60th second gap in the frames coming out of
> VapourSynth and filling it with a
> checkerboard blend of the frames on either side of the gap -- essentially
> a blended decombing --
> with PTSs set to give 60/1.001fps. I realize that will produce a slight
> judder (1 frame in every 5
> frames, but based on my experiments with minterplolate, that judder is
> *almost* imperceptible. If
> shuffleframes proves to be the problem, I'll do a 3322telecine and
> checkerboard blend the combed
> frame. I'll get where I want to go eventually. All the guesswork &
> discovery regarding how ffmpeg
> filters work is just awfully tedious.
>
>> If you just want it done, this is easier in avisynth because of the
>> InterleaveEvery function;
>> http://avisynth.nl/index.php/ApplyEvery#InterleaveEvery
>
> Oh, my. Avisynth? 'InterleaveEvery', eh? That doesn't sound like what I
> want, but I'll check it out.
> Thanks.

I  don't know why frames are being dropped with those ffmpeg filters, but
I'd like to figure out why

But in the meantime, if your ulitmate goal was smooth interpolation to
59.94, why not just use Interframe to generate 59.94 ? Earlier, you
mentioned speed - is that the reason ?

The "checkerboard  blend from the gap" -  If the 48000/1001 interpolated
stream is A,B,C,D,E , you want a frame inserted between D and E, that is
comprised of a "checkerboard blend" of D and E, for a resulting 60000/1001 ?
It seems like a poor tradeoff for a small gain in speed. But InterleaveEvery
is one way of doing it





--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

Mark Filipak (ffmpeg)
On 02/12/2021 10:34 AM, pdr0 wrote:
> Mark Filipak (ffmpeg) wrote

-snip-

> "72fps" or "144fps" equivalent in a cinema is not the same thing - the
> analogy would be the cinema is repeating frames, vs interpolating new
> in-between frames on a motion flow TV. ...

To some transcodes, repeating frames does apply. To interpolation, some other considerations apply.
Also, I contend that, due to its real-time schedule, a motion flow TV can't faithfully reproduce 24
pictures per second converted to 60 pictures per second via motion vector interperpolation.

I respectfully submit that words alone are inadequate to describe what we discuss.

I present the following to introduce a notation, not to be pedantic -- I know you know this stuff,
but you're not familiar with the notation. Consider these:

60fps24pps.repeat(30fps24pps.telecine(24fps24pps))
60fps24pps.telecine(48fps24pps.repeat(24fps24pps))
60fps48pps.telecine(48fps48pps.interpolate(24fps24pps))
60fps60pps.interpolate(24fps24pps)

Expansions & diagrams -- I apologize if your email client makes soup of the diagrams by wrapping
lines. If so, kindly copy this whole message into a plain text editor. Hopefully your email client
will preserve all the spaces properly.

60fps[24pps].repeat(30fps[24pps].telecine(24fps[24pps])) is 24pps @ 24fps telecined to 30fps, then
frame repeated to 60fps.
+----------------------------------------------------------------------------------------------------------------------+
1/6 second
[A.a_________________________][B.b_________________________][C.c_________________________][D.d_________________________]
24fps[24pps] source
[A.a___________________][B.b___________________][B.c___________________][C.d___________________][D.d___________________]
30fps[24pps].telecine(24fps[24pps])
[A.a_______][A.a_______][B.b_______][B.b_______][B.c_______][B.c_______][C.d_______][C.d_______][D.d_______][D.d_______]
60fps[24pps].repeat(30fps[24pps].telecine(24fps[24pps]))
                                                 cccccccccccccccccccccccccccccccccccccccccccccccc
                      40% comb @ 6Hz
<----------------------><----------------------------------><----------------------><---------------------------------->
25% judder @ 12Hz

60fps24pps.telecine(48fps24pps.repeat(24fps24pps)) is 24pps @ 24fps frame repeated to 48fps, then
telecined to 60fps. Judder is 1/24 sec. @ 12Hz. Combing is 20%.
+----------------------------------------------------------------------------------------------------------------------+
1/6 second
[A.a_________________________][B.b_________________________][C.c_________________________][D.d_________________________]
24fps[24pps] source
[A.a__________][A.a__________][B.b__________][B.b__________][C.c__________][C.c__________][D.d__________][D.d__________]
48fps24pps.repeat(24fps24pps)
[A.a_______][A.a_______][A.b_______][B.b_______][B.b_______][C.c_______][C.c_______][C.d_______][D.d_______][D.d_______]
60fps24pps.telecine(48fps24pps.repeat(24fps24pps))
                         cccccccccccc                                                cccccccccccc
                      20% comb @ 12Hz
<----------------------------><----------------------------><----------------------------><---------------------------->
zero judder

60fps48pps.telecine(48fps48pps.interpolate(24fps24pps)) is 24pps interpolated to 48pps @ 48fps, then
telecined to 60fps. Judder is 1/48 sec. @
+----------------------------------------------------------------------------------------------------------------------+
1/6 second
[A.a_________________________][B.b_________________________][C.c_________________________][D.d_________________________]
24fps[24pps] source
[A.a__________][AB.ab________][B.b__________][BC.bc________][C.c__________][CD.cd________][D.d__________][DE.de________]
48fps48pps.interpolate(24fps24pps)
[A.a_______][AB.ab_____][AB.b______][B.bc______][BC.bc_____][C.c_______][CD.cd_____][CD.d______][D.de______][DE.de_____]
60fps48pps.telecine(48fps48pps.interpolate(24fps24pps))
                         cccccccccccccccccccccccc
cccccccccccccccccccccccc             40% comb @ 12Hz
<------><----------><------><----------><------><----------><------><----------> 33% judder @ 24Hz

60fps60pps.interpolate(24fps24pps) is 24pps interpolated to 60pps @ 60fps. Judder is 1/60 sec. @
60Hz (essentially imperceptible).
+----------------------------------------------------------------------------------------------------------------------+
1/6 second
[A.a_________________________][B.b_________________________][C.c_________________________][D.d_________________________]
24fps[24pps] source
[A.a_______][AAB.aab___][AB.ab_____][B.b_______][BC.bc_____][C.c_______][CCD.ccd___][CD.cd_____][D.d_______][DE.de_____]
60fps60pps.interpolate(24fps24pps)
 
                      zero comb
<----------><----------><----------><----------><----------><----------><----------><----------><----------><---------->
zero judder

-snip-

--
The U.S. Senate and House should follow the ancient Roman model.
Their Princeps Senatus and Tribunus Plebis had their own armies.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Is there something about inputting raw frames

pdr0
Mark Filipak (ffmpeg) wrote

> On 02/12/2021 10:34 AM, pdr0 wrote:
>> Mark Filipak (ffmpeg) wrote
>
> -snip-
>
>> "72fps" or "144fps" equivalent in a cinema is not the same thing - the
>> analogy would be the cinema is repeating frames, vs interpolating new
>> in-between frames on a motion flow TV. ...
>
> To some transcodes, repeating frames does apply. To interpolation, some
> other considerations apply.
> Also, I contend that, due to its real-time schedule, a motion flow TV
> can't faithfully reproduce 24
> pictures per second converted to 60 pictures per second via motion vector
> interperpolation.

Motion flow in TV's is the hardware (realtime) implementation of software
optical flow. There are different trade names by different manufacturers,
but they all use motion interpolation and optical flow.  For a 24pN native
source, it's a real time conversion to 120fps, then evenly divided by 2 for
60fps. Each frame is "evenly spaced in time".   It produces similar results
to mvtools2, interframe, twixtor, svpflow, kronos, DAIN, all the ones I
mentioned in your other thread . The TV version of optical flow even produce
similar artifacts. This has been around for many years, probably 10-15
years,  and those TV optical flow sets almost as long. It might be new to
you , but this is all old news.



If you're still interested, I tested the avs script and produces the proper
results you want for the checkerblend with InterleaveEvery . The short
version is it's probably not worth it if you're using libx265. Minterpolate
was your bottleneck; interframe or any interplolation script is unlikely to
be a bottleneck unless you use very slow settings




Observations . This was tested on a 5 year old laptop.

If we take Interframe @ 60000/1001 ( Preset="medium", Tuning="smooth",
InputType="2D", NewNum=60000, NewDen=1001, GPU=True) I used cores=8 prefetch
8 for the "baseline" avs version

Interframe @60000/1001 ffmpeg pipe speed 38-39fps
Interframe @48000/1001 ffmpeg pipe speed 46-47fps
Interleaveevery checker ffmpeg pipe speed  49-50fps (interesting that this
was faster than the Interframe 48000/1001 run alone)

Actual encoding speeds
interframe @60000/1001 libx265 8-8.5fps
interleaveevery checker libx265 7-7.5fps (interesting that the pipe speed
was faster, but the actual encoding speed slower than just using interframe)
interframe @60000/1001 libx264 21-22fps
interleaveevery checker libx264 22-23fps




You can measure pipe speed vs actual encoding speeds to help determine where
some bottlenecks are

ffmpeg -i input.avs -an -f null NUL

or

vspipe --y4m input.vpy - | ffmpeg -f yuv4mpegpipe -i - -an -f null NUL

There are other tools like vsedit, avspmod, avsmeter that can help you
optimize scripts by benchmarking speeds, so you can adjust settings, preview
results. If you're not using these, they are helpful tools that complement
ffmpeg workflows



When you were using minterpolate - that was probably the bottleneck. So any
filter chain speed optimization will make a significant difference in
realized encoding speed when using minterpolate , and could be worth
pursuing if speed optimization vs. quality was your goal.

But interframe pipe speed into ffmpeg is much faster, and generally not the
bottleneck. (You could use faster interframe settings if you needed to).
It's better to address bottlenecks (more "bang for you buck") . On this
hardware, when using the checker blend approach, there was marginal speed
improvement with additional artifacts and jerkiness , and it actually was
slower than just interframe when using libx265 - that latter observation was
unexpected because the pipe speed was faster than Interframe @60000/1001 .
Might be some threading issues with the avs version, or some LUTs not
optimized eg. mt_lutspa for the checker mask


On my setup, libx265 (using your same settings) - is the bottleneck. So
adusting the script or filters will make little differnece (but  faster
script means more resources for libx265 to use, it'll be marginally faster)
. YMMV between hardware. In all cases , the input pipe speed is
significantly faster than the actual libx265 encoding speed. Just switching
to libx264 or using faster libx265 settings more than doubled the speed for
me

Check your bottlenecks; if you need more info on scripts or procedure or
samples let me know. I don't think I can easily translate it to vapoursynth,
my python is weak. The InterleaveEvery function and frame based nature of
avisynth is what makes it easy to do




--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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