livingbio / typed-ffmpeg

Modern Python FFmpeg wrappers offer comprehensive support for complex filters, complete with detailed typing and documentation.
https://livingbio.github.io/typed-ffmpeg/
MIT License
78 stars 2 forks source link

function-concat Cannot Pass CI #263

Closed lucemia closed 7 months ago

lucemia commented 7 months ago
src/composer/tasks/tests/test_gmovie.py::test_parallel_concat[True-5-2-video] 
-------------------------------- live log call ---------------------------------
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 (probe.py:31)
2017-05-21 00:00:00 [    INFO] Running command: ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#1];[s0#1]trim=start=0:end=5.0[s1];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s2];[s2]split=outputs=2[s3#0];[s3#0]trim=start=0:end=4.25[s4]' -map '[s4]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmpokul6th4/tmp3y7fawok.mp4 (nodes.py:477)
2017-05-21 00:00:00 [    INFO] Running command: ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#0][s0#1];[s0#1]trim=start=0:end=5.0[s1];[s8]tpad=start_mode=clone:start_duration=0.75:color=white[s10];[s9]scale=w=1280:h=720[s11];[s10]split=outputs=2[s12#0];[s12#0]trim=start=0:end=1.5[s13];[s13]scale=w=1280:h=720[s14];[s11][s14]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s15#0];[s0#0]trim=start=0:end=5.0[s2];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s3];[s2]tpad=stop_mode=clone:stop_duration=0.75:color=white[s4];[s3]split=outputs=2[s5#1];[s4]split=outputs=2[s6#0];[s5#1]trim=start=4.25[s7];[s6#0]trim=start=0:end=4.25[s8];[s7]setpts=expr=PTS-STARTPTS[s9]' -map '[s15#0]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmp6kemuazd/tmpf9xo98ea.mp4 (nodes.py:477)
2017-05-21 00:00:00 [    INFO] Running command: ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#0];[s0#0]trim=start=0:end=5.0[s1];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s2];[s2]split=outputs=2[s3#0];[s3#0]trim=start=0:end=4.25[s4];[s4]tpad=start_mode=clone:start_duration=0.75:color=white[s5];[s5]split=outputs=2[s6#1];[s6#1]trim=start=1.5[s7];[s7]setpts=expr=PTS-STARTPTS[s8]' -map '[s8]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmpsspjnv4g/tmpcgavsf7w.mp4 (nodes.py:477)
2017-05-21 00:00:00 [    INFO] Running command: ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#0];[s0#0]trim=start=0:end=5.0[s1];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s2];[s2]split=outputs=2[s3#1];[s3#1]trim=start=4.25[s4];[s4]setpts=expr=PTS-STARTPTS[s5]' -map '[s5]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmpvxnw8fjv/tmpjfnk565p.mp4 (nodes.py:477)
2017-05-21 00:00:00 [    INFO] Running command: ffmpeg -y -nostdin -f concat -safe 0 -protocol_whitelist file,http,https,tcp,tls -i /tmp/tmp474fc3f7/tmpmwu_gp4t.txt -map 0 -vcodec copy /tmp/tmp474fc3f7/tmps49jhjwy.mp4 (nodes.py:477)
2017-05-21 00:00:00 [    INFO] Running ffprobe command: ffprobe -show_format -show_streams -of json https://storage.googleapis.com/livingbio-tmp/tmp77kcwcax.mp4 (probe.py:31)
2017-05-21 00:00:00 [ WARNING] length=5 num=2 extend=True https://storage.googleapis.com/livingbio-tmp/tmp77kcwcax.mp4 duration=23.04 (test_gmovie.py:106)
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
FAILED                                                                   [  3%]
https://storage.googleapis.com/livingbio-tmp/tmp77kcwcax.mp4 - None - None
lucemia commented 7 months ago
Step #4 - "test": called ffmpeg ['ffmpeg', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4', '-filter_complex', '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=end=4.25:start=0[s4]', '-map', '[s4]', '-crf', '17', '-pix_fmt', 'yuv420p', '-preset', 'fast', '-tune', 'fastdecode', '-x264-params', 'rc-lookahead=15:subme=2:trellis=0', '/tmp/tmpxq6q3ujn/tmpyoxj0r06.mp4', '-nostdin', '-y']
Step #4 - "test": STDOUT:
Step #4 - "test": 
Step #4 - "test": STDERR:
Step #4 - "test": ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
Step #4 - "test":   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
Step #4 - "test":   configuration: --disable-debug --disable-doc --disable-ffplay --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxvid --enable-libx264 --enable-libx265 --enable-openssl --enable-libfdk_aac --enable-postproc --enable-pthreads --enable-small --enable-libzmq --enable-libopenjpeg --enable-libkvazaar --enable-libaom --enable-libdrm --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl -lpthread' --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
Step #4 - "test":   libavutil      56. 51.100 / 56. 51.100
Step #4 - "test":   libavcodec     58. 91.100 / 58. 91.100
Step #4 - "test":   libavformat    58. 45.100 / 58. 45.100
Step #4 - "test":   libavdevice    58. 10.100 / 58. 10.100
Step #4 - "test":   libavfilter     7. 85.100 /  7. 85.100
Step #4 - "test":   libavresample   4.  0.  0 /  4.  0.  0
Step #4 - "test":   libswscale      5.  7.100 /  5.  7.100
Step #4 - "test":   libswresample   3.  7.100 /  3.  7.100
Step #4 - "test":   libpostproc    55.  7.100 / 55.  7.100
Step #4 - "test": Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.76.100
Step #4 - "test":   Duration: 00:00:05.00, start: 0.000000, bitrate: 1826 kb/s
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1475 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test":     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : SoundHandler
Step #4 - "test": Stream mapping:
Step #4 - "test":   Stream #0:0 (h264) -> split
Step #4 - "test":   trim -> Stream #0:0 (libx264)
Step #4 - "test": [libx264 @ 0x55f56ee76680] using SAR=1/1
Step #4 - "test": [libx264 @ 0x55f56ee76680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
Step #4 - "test": [libx264 @ 0x55f56ee76680] profile High, level 3.1, 4:2:0, 8-bit
Step #4 - "test": [libx264 @ 0x55f56ee76680] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=15 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Step #4 - "test": Output #0, mp4, to '/tmp/tmpxq6q3ujn/tmpyoxj0r06.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.45.100
Step #4 - "test":     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       encoder         : Lavc58.91.100 libx264
Step #4 - "test":     Side data:
Step #4 - "test":       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Step #4 - "test": frame=   33 fps=0.0 q=22.0 size=       0kB time=00:00:00.32 bitrate=   1.2kbits/s speed=0.617x    
frame=   49 fps= 47 q=22.0 size=     512kB time=00:00:00.96 bitrate=4369.1kbits/s speed=0.927x    
frame=   66 fps= 42 q=22.0 size=     768kB time=00:00:01.64 bitrate=3836.3kbits/s speed=1.05x    
frame=   84 fps= 40 q=22.0 size=    1024kB time=00:00:02.36 bitrate=3554.5kbits/s speed=1.13x    
frame=  106 fps= 41 q=22.0 size=    1280kB time=00:00:03.24 bitrate=3236.4kbits/s speed=1.25x    
frame=  107 fps= 38 q=-1.0 Lsize=    1678kB time=00:00:04.16 bitrate=3304.6kbits/s speed=1.47x    
Step #4 - "test": video:1676kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.124690%
Step #4 - "test": [libx264 @ 0x55f56ee76680] frame I:1     Avg QP:15.81  size:154561
Step #4 - "test": [libx264 @ 0x55f56ee76680] frame P:31    Avg QP:17.09  size: 36530
Step #4 - "test": [libx264 @ 0x55f56ee76680] frame B:75    Avg QP:21.54  size:  5715
Step #4 - "test": [libx264 @ 0x55f56ee76680] consecutive B-frames:  2.8%  9.3%  5.6% 82.2%
Step #4 - "test": [libx264 @ 0x55f56ee76680] mb I  I16..4:  2.4% 11.7% 85.9%
Step #4 - "test": [libx264 @ 0x55f56ee76680] mb P  I16..4:  0.9%  3.7%  2.1%  P16..4: 40.8% 17.9% 14.2%  0.0%  0.0%    skip:20.4%
Step #4 - "test": [libx264 @ 0x55f56ee76680] mb B  I16..4:  0.1%  0.7%  0.1%  B16..8: 26.2%  6.4%  1.0%  direct: 5.9%  skip:59.6%  L0:40.0% L1:36.8% BI:23.3%
Step #4 - "test": [libx264 @ 0x55f56ee76680] 8x8 transform intra:47.0% inter:43.0%
Step #4 - "test": [libx264 @ 0x55f56ee76680] coded y,uvDC,uvAC intra: 78.1% 84.0% 38.7% inter: 14.7% 20.3% 1.2%
Step #4 - "test": [libx264 @ 0x55f56ee76680] i16 v,h,dc,p: 29% 22% 14% 35%
Step #4 - "test": [libx264 @ 0x55f56ee76680] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 29% 11%  3%  8%  8%  8%  5%  5%
Step #4 - "test": [libx264 @ 0x55f56ee76680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16%  9%  8%  9%  9%  7% 12%  7%
Step #4 - "test": [libx264 @ 0x55f56ee76680] i8c dc,h,v,p: 43% 23% 23% 11%
Step #4 - "test": [libx264 @ 0x55f56ee76680] ref P L0: 74.1% 25.9%
Step #4 - "test": [libx264 @ 0x55f56ee76680] ref B L0: 83.0% 17.0%
Step #4 - "test": [libx264 @ 0x55f56ee76680] ref B L1: 96.1%  3.9%
Step #4 - "test": [libx264 @ 0x55f56ee76680] kb/s:3206.71
Step #4 - "test": 
Step #4 - "test": called ffmpeg finished in 2.87
Step #4 - "test": called ffmpeg ['ffmpeg', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4', '-filter_complex', '[0]split=2[s0][s1];[s1]trim=end=5.0:start=0[s2];[s2]tpad=color=white:stop_duration=0.75:stop_mode=clone[s3];[s3]split=1[s4];[s4]trim=start=4.25[s5];[s5]setpts=PTS-STARTPTS[s6];[s6]scale=1280:720[s7];[s0]trim=end=5.0:start=0[s8];[s8]tpad=color=white:stop_duration=0.75:stop_mode=clone[s9];[s9]split=1[s10];[s10]trim=end=4.25:start=0[s11];[s11]tpad=color=white:start_duration=0.75:start_mode=clone[s12];[s12]split=1[s13];[s13]trim=end=1.5:start=0[s14];[s14]scale=1280:720[s15];[s7][s15]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s16]', '-map', '[s16]', '-crf', '17', '-pix_fmt', 'yuv420p', '-preset', 'fast', '-tune', 'fastdecode', '-x264-params', 'rc-lookahead=15:subme=2:trellis=0', '/tmp/tmp7hfvo7d3/tmpqgmiud4u.mp4', '-nostdin', '-y']
Step #4 - "test": STDOUT:
Step #4 - "test": 
Step #4 - "test": STDERR:
Step #4 - "test": ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
Step #4 - "test":   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
Step #4 - "test":   configuration: --disable-debug --disable-doc --disable-ffplay --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxvid --enable-libx264 --enable-libx265 --enable-openssl --enable-libfdk_aac --enable-postproc --enable-pthreads --enable-small --enable-libzmq --enable-libopenjpeg --enable-libkvazaar --enable-libaom --enable-libdrm --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl -lpthread' --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
Step #4 - "test":   libavutil      56. 51.100 / 56. 51.100
Step #4 - "test":   libavcodec     58. 91.100 / 58. 91.100
Step #4 - "test":   libavformat    58. 45.100 / 58. 45.100
Step #4 - "test":   libavdevice    58. 10.100 / 58. 10.100
Step #4 - "test":   libavfilter     7. 85.100 /  7. 85.100
Step #4 - "test":   libavresample   4.  0.  0 /  4.  0.  0
Step #4 - "test":   libswscale      5.  7.100 /  5.  7.100
Step #4 - "test":   libswresample   3.  7.100 /  3.  7.100
Step #4 - "test":   libpostproc    55.  7.100 / 55.  7.100
Step #4 - "test": Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.76.100
Step #4 - "test":   Duration: 00:00:05.00, start: 0.000000, bitrate: 1826 kb/s
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1475 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test":     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : SoundHandler
Step #4 - "test": Stream mapping:
Step #4 - "test":   Stream #0:0 (h264) -> split
Step #4 - "test":   gltransition -> Stream #0:0 (libx264)
Step #4 - "test": [libx264 @ 0x55a45ba121c0] using SAR=1/1
Step #4 - "test": [libx264 @ 0x55a45ba121c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
Step #4 - "test": [libx264 @ 0x55a45ba121c0] profile High, level 3.1, 4:2:0, 8-bit
Step #4 - "test": [libx264 @ 0x55a45ba121c0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=15 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Step #4 - "test": Output #0, mp4, to '/tmp/tmp7hfvo7d3/tmpqgmiud4u.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.45.100
Step #4 - "test":     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       encoder         : Lavc58.91.100 libx264
Step #4 - "test":     Side data:
Step #4 - "test":       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Step #4 - "test": frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   10 fps=9.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   24 fps= 15 q=22.0 size=       0kB time=-00:00:00.03 bitrate=N/A speed=N/A    
frame=   34 fps= 16 q=22.0 size=     256kB time=00:00:00.36 bitrate=5825.2kbits/s speed=0.172x    
frame=   38 fps= 13 q=-1.0 Lsize=    1423kB time=00:00:01.40 bitrate=8326.8kbits/s speed=0.469x    
Step #4 - "test": video:1422kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.088463%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] frame I:1     Avg QP:17.25  size:158896
Step #4 - "test": [libx264 @ 0x55a45ba121c0] frame P:16    Avg QP:19.01  size: 48739
Step #4 - "test": [libx264 @ 0x55a45ba121c0] frame B:21    Avg QP:21.54  size: 24600
Step #4 - "test": [libx264 @ 0x55a45ba121c0] consecutive B-frames: 18.4% 21.1%  7.9% 52.6%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] mb I  I16..4:  4.1% 16.0% 79.9%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] mb P  I16..4:  2.1% 16.5% 15.7%  P16..4: 22.4% 13.2% 14.4%  0.0%  0.0%    skip:15.7%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] mb B  I16..4:  1.4% 12.3%  6.4%  B16..8: 24.3% 12.0%  3.2%  direct: 8.3%  skip:32.1%  L0:33.8% L1:31.9% BI:34.4%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] 8x8 transform intra:50.3% inter:48.5%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] coded y,uvDC,uvAC intra: 86.0% 84.0% 35.3% inter: 27.2% 32.1% 2.0%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] i16 v,h,dc,p: 25% 23% 16% 37%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 10%  6%  6%  6%  8%  8% 10%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 15%  9%  8%  9%  9%  7% 12%  7%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] i8c dc,h,v,p: 43% 22% 21% 14%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] ref P L0: 84.3% 15.7%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] ref B L0: 88.3% 11.7%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] ref B L1: 97.7%  2.3%
Step #4 - "test": [libx264 @ 0x55a45ba121c0] kb/s:7659.51
Step #4 - "test": 
Step #4 - "test": called ffmpeg finished in 3.12
Step #4 - "test": called ffmpeg ['ffmpeg', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4', '-filter_complex', '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=end=4.25:start=0[s4];[s4]tpad=color=white:start_duration=0.75:start_mode=clone[s5];[s5]split=1[s6];[s6]trim=start=1.5[s7];[s7]setpts=PTS-STARTPTS[s8]', '-map', '[s8]', '-crf', '17', '-pix_fmt', 'yuv420p', '-preset', 'fast', '-tune', 'fastdecode', '-x264-params', 'rc-lookahead=15:subme=2:trellis=0', '/tmp/tmptqavoe85/tmpoh_vlvoh.mp4', '-nostdin', '-y']
Step #4 - "test": STDOUT:
Step #4 - "test": 
Step #4 - "test": STDERR:
Step #4 - "test": ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
Step #4 - "test":   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
Step #4 - "test":   configuration: --disable-debug --disable-doc --disable-ffplay --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxvid --enable-libx264 --enable-libx265 --enable-openssl --enable-libfdk_aac --enable-postproc --enable-pthreads --enable-small --enable-libzmq --enable-libopenjpeg --enable-libkvazaar --enable-libaom --enable-libdrm --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl -lpthread' --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
Step #4 - "test":   libavutil      56. 51.100 / 56. 51.100
Step #4 - "test":   libavcodec     58. 91.100 / 58. 91.100
Step #4 - "test":   libavformat    58. 45.100 / 58. 45.100
Step #4 - "test":   libavdevice    58. 10.100 / 58. 10.100
Step #4 - "test":   libavfilter     7. 85.100 /  7. 85.100
Step #4 - "test":   libavresample   4.  0.  0 /  4.  0.  0
Step #4 - "test":   libswscale      5.  7.100 /  5.  7.100
Step #4 - "test":   libswresample   3.  7.100 /  3.  7.100
Step #4 - "test":   libpostproc    55.  7.100 / 55.  7.100
Step #4 - "test": Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.76.100
Step #4 - "test":   Duration: 00:00:05.00, start: 0.000000, bitrate: 1826 kb/s
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1475 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test":     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : SoundHandler
Step #4 - "test": Stream mapping:
Step #4 - "test":   Stream #0:0 (h264) -> split
Step #4 - "test":   setpts -> Stream #0:0 (libx264)
Step #4 - "test": [libx264 @ 0x55869d7d1580] using SAR=1/1
Step #4 - "test": [libx264 @ 0x55869d7d1580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
Step #4 - "test": [libx264 @ 0x55869d7d1580] profile High, level 3.1, 4:2:0, 8-bit
Step #4 - "test": [libx264 @ 0x55869d7d1580] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=15 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Step #4 - "test": Output #0, mp4, to '/tmp/tmptqavoe85/tmpoh_vlvoh.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.45.100
Step #4 - "test":     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       encoder         : Lavc58.91.100 libx264
Step #4 - "test":     Side data:
Step #4 - "test":       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Step #4 - "test": frame=   25 fps=0.0 q=22.0 size=       0kB time=00:00:00.00 bitrate=4923.1kbits/s speed=0.000155x    
frame=   40 fps= 40 q=22.0 size=     512kB time=00:00:00.60 bitrate=6990.2kbits/s speed=0.597x    
frame=   55 fps= 36 q=22.0 size=     768kB time=00:00:01.20 bitrate=5242.9kbits/s speed=0.796x    
frame=   73 fps= 36 q=22.0 size=    1024kB time=00:00:01.92 bitrate=4369.1kbits/s speed=0.948x    
frame=   88 fps= 34 q=-1.0 Lsize=    1562kB time=00:00:03.40 bitrate=3764.1kbits/s speed= 1.3x    
Step #4 - "test": video:1560kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.120162%
Step #4 - "test": [libx264 @ 0x55869d7d1580] frame I:1     Avg QP:16.96  size:169412
Step #4 - "test": [libx264 @ 0x55869d7d1580] frame P:25    Avg QP:17.19  size: 40218
Step #4 - "test": [libx264 @ 0x55869d7d1580] frame B:62    Avg QP:21.28  size:  6812
Step #4 - "test": [libx264 @ 0x55869d7d1580] consecutive B-frames:  3.4%  6.8%  3.4% 86.4%
Step #4 - "test": [libx264 @ 0x55869d7d1580] mb I  I16..4:  2.6% 11.4% 86.0%
Step #4 - "test": [libx264 @ 0x55869d7d1580] mb P  I16..4:  1.1%  4.0%  2.1%  P16..4: 42.2% 18.9% 14.4%  0.0%  0.0%    skip:17.3%
Step #4 - "test": [libx264 @ 0x55869d7d1580] mb B  I16..4:  0.2%  0.8%  0.1%  B16..8: 30.3%  7.5%  1.0%  direct: 9.4%  skip:50.7%  L0:33.0% L1:43.6% BI:23.5%
Step #4 - "test": [libx264 @ 0x55869d7d1580] 8x8 transform intra:46.3% inter:42.5%
Step #4 - "test": [libx264 @ 0x55869d7d1580] coded y,uvDC,uvAC intra: 77.8% 84.4% 43.4% inter: 16.8% 24.8% 1.3%
Step #4 - "test": [libx264 @ 0x55869d7d1580] i16 v,h,dc,p: 29% 22% 13% 36%
Step #4 - "test": [libx264 @ 0x55869d7d1580] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 29% 11%  3%  8%  8%  8%  5%  5%
Step #4 - "test": [libx264 @ 0x55869d7d1580] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16%  8%  7%  9%  9%  7% 13%  8%
Step #4 - "test": [libx264 @ 0x55869d7d1580] i8c dc,h,v,p: 44% 21% 22% 13%
Step #4 - "test": [libx264 @ 0x55869d7d1580] ref P L0: 75.9% 24.1%
Step #4 - "test": [libx264 @ 0x55869d7d1580] ref B L0: 87.0% 13.0%
Step #4 - "test": [libx264 @ 0x55869d7d1580] ref B L1: 94.3%  5.7%
Step #4 - "test": [libx264 @ 0x55869d7d1580] kb/s:3629.92
Step #4 - "test": 
Step #4 - "test": called ffmpeg finished in 2.65
Step #4 - "test": called ffmpeg ['ffmpeg', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4', '-filter_complex', '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=start=4.25[s4];[s4]setpts=PTS-STARTPTS[s5]', '-map', '[s5]', '-crf', '17', '-pix_fmt', 'yuv420p', '-preset', 'fast', '-tune', 'fastdecode', '-x264-params', 'rc-lookahead=15:subme=2:trellis=0', '/tmp/tmpwwgde51x/tmp2zgsfhhm.mp4', '-nostdin', '-y']
Step #4 - "test": STDOUT:
Step #4 - "test": 
Step #4 - "test": STDERR:
Step #4 - "test": ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
Step #4 - "test":   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
Step #4 - "test":   configuration: --disable-debug --disable-doc --disable-ffplay --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxvid --enable-libx264 --enable-libx265 --enable-openssl --enable-libfdk_aac --enable-postproc --enable-pthreads --enable-small --enable-libzmq --enable-libopenjpeg --enable-libkvazaar --enable-libaom --enable-libdrm --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl -lpthread' --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
Step #4 - "test":   libavutil      56. 51.100 / 56. 51.100
Step #4 - "test":   libavcodec     58. 91.100 / 58. 91.100
Step #4 - "test":   libavformat    58. 45.100 / 58. 45.100
Step #4 - "test":   libavdevice    58. 10.100 / 58. 10.100
Step #4 - "test":   libavfilter     7. 85.100 /  7. 85.100
Step #4 - "test":   libavresample   4.  0.  0 /  4.  0.  0
Step #4 - "test":   libswscale      5.  7.100 /  5.  7.100
Step #4 - "test":   libswresample   3.  7.100 /  3.  7.100
Step #4 - "test":   libpostproc    55.  7.100 / 55.  7.100
Step #4 - "test": Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.76.100
Step #4 - "test":   Duration: 00:00:05.00, start: 0.000000, bitrate: 1826 kb/s
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1475 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test":     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : SoundHandler
Step #4 - "test": Stream mapping:
Step #4 - "test":   Stream #0:0 (h264) -> split
Step #4 - "test":   setpts -> Stream #0:0 (libx264)
Step #4 - "test": [libx264 @ 0x55c42430cdc0] using SAR=1/1
Step #4 - "test": [libx264 @ 0x55c42430cdc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
Step #4 - "test": [libx264 @ 0x55c42430cdc0] profile High, level 3.1, 4:2:0, 8-bit
Step #4 - "test": [libx264 @ 0x55c42430cdc0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=15 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Step #4 - "test": Output #0, mp4, to '/tmp/tmpwwgde51x/tmp2zgsfhhm.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     major_brand     : isom
Step #4 - "test":     minor_version   : 512
Step #4 - "test":     compatible_brands: isomiso2avc1mp41
Step #4 - "test":     encoder         : Lavf58.45.100
Step #4 - "test":     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Step #4 - "test":     Metadata:
Step #4 - "test":       encoder         : Lavc58.91.100 libx264
Step #4 - "test":     Side data:
Step #4 - "test":       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Step #4 - "test": frame=   17 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   37 fps=0.0 q=-1.0 Lsize=     320kB time=00:00:01.36 bitrate=1926.7kbits/s speed=1.51x    
Step #4 - "test": video:319kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.383691%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] frame I:1     Avg QP:16.03  size:174261
Step #4 - "test": [libx264 @ 0x55c42430cdc0] frame P:13    Avg QP:16.54  size: 10406
Step #4 - "test": [libx264 @ 0x55c42430cdc0] frame B:23    Avg QP:20.57  size:   700
Step #4 - "test": [libx264 @ 0x55c42430cdc0] consecutive B-frames: 16.2%  0.0%  8.1% 75.7%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] mb I  I16..4:  3.3% 15.4% 81.2%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] mb P  I16..4:  0.2%  0.8%  0.4%  P16..4: 25.5%  5.4%  3.9%  0.0%  0.0%    skip:63.8%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  4.1%  0.5%  0.1%  direct: 1.5%  skip:93.7%  L0:32.4% L1:58.6% BI: 9.0%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] 8x8 transform intra:22.0% inter:46.9%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] coded y,uvDC,uvAC intra: 91.6% 94.9% 73.7% inter: 4.1% 7.3% 0.4%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] i16 v,h,dc,p: 29% 21% 12% 38%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 32%  9%  4%  5%  6%  8%  5%  6%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 14%  7%  8%  9%  9%  7% 15%  9%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] i8c dc,h,v,p: 41% 22% 21% 16%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] ref P L0: 89.6% 10.4%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] ref B L0: 83.0% 17.0%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] ref B L1: 96.8%  3.2%
Step #4 - "test": [libx264 @ 0x55c42430cdc0] kb/s:1760.16
Step #4 - "test": 
Step #4 - "test": called ffmpeg finished in 0.95
Step #4 - "test": called ffmpeg ['ffmpeg', '-f', 'concat', '-protocol_whitelist', 'file,http,https,tcp,tls', '-safe', '0', '-i', '/tmp/tmpd8on77sf.txt', '-vcodec', 'copy', '/tmp/tmpe5vzqsz1/tmpvi4qsdbn.mp4', '-nostdin', '-y']
Step #4 - "test": STDOUT:
Step #4 - "test": 
Step #4 - "test": STDERR:
Step #4 - "test": ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
Step #4 - "test":   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
Step #4 - "test":   configuration: --disable-debug --disable-doc --disable-ffplay --disable-static --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxvid --enable-libx264 --enable-libx265 --enable-openssl --enable-libfdk_aac --enable-postproc --enable-pthreads --enable-small --enable-libzmq --enable-libopenjpeg --enable-libkvazaar --enable-libaom --enable-libdrm --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw -ldl -lpthread' --prefix=/opt/ffmpeg --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
Step #4 - "test":   libavutil      56. 51.100 / 56. 51.100
Step #4 - "test":   libavcodec     58. 91.100 / 58. 91.100
Step #4 - "test":   libavformat    58. 45.100 / 58. 45.100
Step #4 - "test":   libavdevice    58. 10.100 / 58. 10.100
Step #4 - "test":   libavfilter     7. 85.100 /  7. 85.100
Step #4 - "test":   libavresample   4.  0.  0 /  4.  0.  0
Step #4 - "test":   libswscale      5.  7.100 /  5.  7.100
Step #4 - "test":   libswresample   3.  7.100 /  3.  7.100
Step #4 - "test":   libpostproc    55.  7.100 / 55.  7.100
Step #4 - "test": [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5577a578f400] Auto-inserting h264_mp4toannexb bitstream filter
Step #4 - "test": Input #0, concat, from '/tmp/tmpd8on77sf.txt':
Step #4 - "test":   Duration: N/A, start: 0.000000, bitrate: 3207 kb/s
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 3207 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test": Output #0, mp4, to '/tmp/tmpe5vzqsz1/tmpvi4qsdbn.mp4':
Step #4 - "test":   Metadata:
Step #4 - "test":     encoder         : Lavf58.45.100
Step #4 - "test":     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 3207 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc
Step #4 - "test":     Metadata:
Step #4 - "test":       handler_name    : VideoHandler
Step #4 - "test": Stream mapping:
Step #4 - "test":   Stream #0:0 -> #0:0 (copy)
Step #4 - "test": frame=   67 fps=0.0 q=-1.0 size=    1280kB time=00:00:02.56 bitrate=4096.0kbits/s speed=5.12x    
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5577a5898740] Auto-inserting h264_mp4toannexb bitstream filter
Step #4 - "test": frame=  109 fps= 27 q=-1.0 size=    1792kB time=00:00:04.24 bitrate=3462.3kbits/s speed=1.07x    
frame=  138 fps= 31 q=-1.0 size=    2816kB time=00:00:05.40 bitrate=4272.0kbits/s speed=1.21x    
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5577a584bec0] Auto-inserting h264_mp4toannexb bitstream filter
Step #4 - "test": frame=  147 fps= 18 q=-1.0 size=    3072kB time=00:00:05.76 bitrate=4369.1kbits/s speed=0.722x    
frame=  208 fps= 25 q=-1.0 size=    4352kB time=00:00:08.20 bitrate=4347.8kbits/s speed=0.966x    
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5577a58806c0] Auto-inserting h264_mp4toannexb bitstream filter
Step #4 - "test": frame=  235 fps= 20 q=-1.0 size=    4608kB time=00:00:09.28 bitrate=4067.8kbits/s speed=0.781x    
frame=  270 fps= 22 q=-1.0 Lsize=    4981kB time=00:00:10.68 bitrate=3820.6kbits/s speed=0.887x    
Step #4 - "test": video:4977kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.079407%
Step #4 - "test": 
Step #4 - "test": called ffmpeg finished in 14.74
lucemia commented 7 months ago
ffmpeg -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=end=4.25:start=0[s4]' -map '[s4]' -crf 17 -pix_fmt yuv420p -preset fast -tune fastdecode -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmpxq6q3ujn/tmpyoxj0r06.mp4 -nostdin -y
ffmpeg -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=2[s0][s1];[s1]trim=end=5.0:start=0[s2];[s2]tpad=color=white:stop_duration=0.75:stop_mode=clone[s3];[s3]split=1[s4];[s4]trim=start=4.25[s5];[s5]setpts=PTS-STARTPTS[s6];[s6]scale=1280:720[s7];[s0]trim=end=5.0:start=0[s8];[s8]tpad=color=white:stop_duration=0.75:stop_mode=clone[s9];[s9]split=1[s10];[s10]trim=end=4.25:start=0[s11];[s11]tpad=color=white:start_duration=0.75:start_mode=clone[s12];[s12]split=1[s13];[s13]trim=end=1.5:start=0[s14];[s14]scale=1280:720[s15];[s7][s15]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s16]' -map '[s16]' -crf 17 -pix_fmt yuv420p -preset fast -tune fastdecode -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmp7hfvo7d3/tmpqgmiud4u.mp4 -nostdin -y
ffmpeg -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=end=4.25:start=0[s4];[s4]tpad=color=white:start_duration=0.75:start_mode=clone[s5];[s5]split=1[s6];[s6]trim=start=1.5[s7];[s7]setpts=PTS-STARTPTS[s8]' -map '[s8]' -crf 17 -pix_fmt yuv420p -preset fast -tune fastdecode -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmptqavoe85/tmpoh_vlvoh.mp4 -nostdin -y
ffmpeg -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_True_5_2_0/test_gmovie/test-5sec.mp4 -filter_complex '[0]split=1[s0];[s0]trim=end=5.0:start=0[s1];[s1]tpad=color=white:stop_duration=0.75:stop_mode=clone[s2];[s2]split=1[s3];[s3]trim=start=4.25[s4];[s4]setpts=PTS-STARTPTS[s5]' -map '[s5]' -crf 17 -pix_fmt yuv420p -preset fast -tune fastdecode -x264-params rc-lookahead=15:subme=2:trellis=0 /tmp/tmpwwgde51x/tmp2zgsfhhm.mp4 -nostdin -y
ffmpeg -f concat -protocol_whitelist file,http,https,tcp,tls -safe 0 -i /tmp/tmpd8on77sf.txt -vcodec copy /tmp/tmpe5vzqsz1/tmpvi4qsdbn.mp4 -nostdin -y'
lucemia commented 7 months ago
 ffmpeg -y -nostdin -i test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#0][s0#1];[s0#1]trim=start=0:end=5.0[s1];[s8]tpad=start_mode=clone:start_duration=0.75:color=white[s10];[s9]scale=w=1280:h=720[s11];[s10]split=outputs=2[s12#0];[s12#0]trim=start=0:end=1.5[s13];[s13]scale=w=1280:h=720[s14];[s11][s14]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s15#0];[s0#0]trim=start=0:end=5.0[s2];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s3];[s2]tpad=stop_mode=clone:stop_duration=0.75:color=white[s4];[s3]split=outputs=2[s5#1];[s4]split=outputs=2[s6#0];[s5#1]trim=start=4.25[s7];[s6#0]trim=start=0:end=4.25[s8];[s7]setpts=expr=PTS-STARTPTS[s9]' -map '[s15#0]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 bad.mp4
ffmpeg -i test-5sec.mp4 -filter_complex '[0]split=2[s0][s1];[s1]trim=end=5.0:start=0[s2];[s2]tpad=color=white:stop_duration=0.75:stop_mode=clone[s3];[s3]split=1[s4];[s4]trim=start=4.25[s5];[s5]setpts=PTS-STARTPTS[s6];[s6]scale=1280:720[s7];[s0]trim=end=5.0:start=0[s8];[s8]tpad=color=white:stop_duration=0.75:stop_mode=clone[s9];[s9]split=1[s10];[s10]trim=end=4.25:start=0[s11];[s11]tpad=color=white:start_duration=0.75:start_mode=clone[s12];[s12]split=1[s13];[s13]trim=end=1.5:start=0[s14];[s14]scale=1280:720[s15];[s7][s15]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s16]' -map '[s16]' -crf 17 -pix_fmt yuv420p -preset fast -tune fastdecode -x264-params rc-lookahead=15:subme=2:trellis=0 good.mp4 -nostdin -y
lucemia commented 7 months ago

猜測沒有使用到的 split output 會自動 map 到 final video 造成錯誤

lucemia commented 7 months ago

驗證了

ffmpeg -y -nostdin -i test-5sec.mp4 -filter_complex '[0]split=outputs=2[s0#0][s0#1];[s0#1]trim=start=0:end=5.0[s1];[s8]tpad=start_mode=clone:start_duration=0.75:color=white[s10];[s9]scale=w=1280:h=720[s11];[s10]split=outputs=1[s12#0];[s12#0]trim=start=0:end=1.5[s13];[s13]scale=w=1280:h=720[s14];[s11][s14]gltransition=duration=1.5:offset=0:source=/workspace/src/transitions/crosswarp.glsl[s15#0];[s0#0]trim=start=0:end=5.0[s2];[s1]tpad=stop_mode=clone:stop_duration=0.75:color=white[s3];[s2]tpad=stop_mode=clone:stop_duration=0.75:color=white[s4];[s3]split=outputs=1[s5#1];[s4]split=outputs=1[s6#0];[s5#1]trim=start=4.25[s7];[s6#0]trim=start=0:end=4.25[s8];[s7]setpts=expr=PTS-STARTPTS[s9]' -map '[s15#0]' -preset fast -pix_fmt yuv420p -tune fastdecode -crf 17 -x264-params rc-lookahead=15:subme=2:trellis=0 4.mp4 

手動調整 split 的 output 就變正常

lucemia commented 7 months ago

https://console.cloud.google.com/cloud-build/builds;region=global/44566b05-4999-4b96-b369-19f8989491fd;step=4?project=living-bio src/composer/tasks/tests/test_gmovie.py::test_parallel_concat_compose_mode[True-5-3-audio-4]

ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/test-5sec.mp4 -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/R8ZRCXy5vhA.m4a -i /tmp/tmp87e39l3y/tmp6mv3ps51.flac -filter_complex '[0]afifo[s0];[1]apad[s1];[s7]apad[s10];[s9][s10][s8][s1][2]amix=inputs=5:duration=first:dropout_transition=0:weights=0 0.25 1.0 1.0 1.0[s11];[s11]dynaudnorm=gausssize=3:maxgain=10[s12];[s0]asplit=outputs=3[s2#0][s2#1][s2#2];[s2#0]adelay=delays=4000:all=1[s3];[s2#1]adelay=delays=8000:all=1[s4];[s2#2]atrim=end=4.0[s5];[s3]atrim=end=8.0[s6];[s4]atrim=end=12.0[s7];[s5]apad[s8];[s6]apad[s9]' -map '[s12]' -c:a flac /tmp/tmp87e39l3y/tmpl_o9xqp7.flac

this command halt

org command

'ffmpeg', '-i', '/tmp/tmpe21o6hf0.flac', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/R8ZRCXy5vhA.m4a', '-i', '/tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/test-5sec.mp4', '-filter_complex', '[1]apad[s0];[2]asplit=3[s1][s2][s3];[s1]afifo[s4];[s4]atrim=end=4.0[s5];[s5]apad[s6];[s2]afifo[s7];[s7]adelay=all=1:delays=4000[s8];[s8]atrim=end=8.0[s9];[s9]apad[s10];[s3]afifo[s11];[s11]adelay=all=1:delays=8000[s12];[s12]atrim=end=12.0[s13];[s13]apad[s14];[0][s0][s6][s10][s14]amix=dropout_transition=0:duration=first:inputs=5:weights=0 0.25 1.0 1.0 1.0[s15];[s15]dynaudnorm=g=3:maxgain=10[s16]', '-map', '[s16]', '-c:a', 'flac', '/tmp/tmpal09y8um.flac', '-nostdin', '-y']

lucemia commented 7 months ago

this works

ffmpeg -i /tmp/tmp1l4_o9xc/tmpvd68sq_2.flac -i /tmp/pytest-of-root/pytest-5/test_parallel_concat_compose_m0/test_gmovie/R8ZRCXy5vhA.m4a -i /tmp/pytest-of-root/pytest-5/test_parallel_concat_compose_m0/test_gmovie/test-5sec.mp4 -filter_complex "
[1]apad[s0];
[2]asplit=3[s1][s2][s3];
[s1]afifo[s4];
[s4]atrim=end=4.0[s5];
[s5]apad[s6];
[s2]afifo[s7];
[s7]adelay=all=1:delays=4000[s8];
[s8]atrim=end=8.0[s9];
[s9]apad[s10];
[s3]afifo[s11];
[s11]adelay=all=1:delays=8000[s12];
[s12]atrim=end=12.0[s13];
[s13]apad[s14];
[0][s0][s6][s10][s14]amix=dropout_transition=0:duration=first:inputs=5:weights=0 0.25 1.0 1.0 1.0[s15];
[s15]dynaudnorm=g=3:maxgain=10[s16]" -map [s16] -c:a flac /tmpal09y8um.flac -nostdin -y
lucemia commented 7 months ago

ffmpeg -y -nostdin -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/test-5sec.mp4 -i /tmp/pytest-of-root/pytest-0/test_parallel_concat_compose_m2/test_gmovie/R8ZRCXy5vhA.m4a -i /tmp/tmp87e39l3y/tmp6mv3ps51.flac -filter_complex '
[1]apad[s1];
[0]afifo[s0];
[s0]asplit=outputs=3[s2#0][s2#1][s2#2];
[s2#2]atrim=end=4.0[s5];
[s5]apad[s8];
[s2#0]adelay=delays=4000:all=1[s3];
[s3]atrim=end=8.0[s6];
[s6]apad[s9]
[s2#1]adelay=delays=8000:all=1[s4];
[s4]atrim=end=12.0[s7];
[s7]apad[s10];
[s9][s10][s8][s1][2]amix=inputs=5:duration=first:dropout_transition=0:weights=0 0.25 1.0 1.0 1.0[s11];
[s11]dynaudnorm=gausssize=3:maxgain=10[s12];
' -map '[s12]' -c:a flac /tmp/tmp87e39l3y/tmpl_o9xqp7.flac 

amex filter choose duration=first, but it looks different to origin one

lucemia commented 7 months ago

inputs 的順序會亂掉

lucemia commented 7 months ago

fixed