- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用各种布局组合多个视频。我发现了一个问题,布局太大会导致输出失败。即使启用调试日志,我也看不到显式错误是什么。我假设在将输入分散得足够远时,我已经达到了分辨率和/或尺寸限制。是否有一些文档概述了 xstack 布局的限制或其他一些文档说明了我遇到的不同的固有 ffmpeg 限制?使用相同的精确输入但布局更小会成功。
FWIW 我正在使用 ffmpeg-python 包装库。
这是我在这些失败期间看到的详细输出:
ffmpeg version 5.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
libpostproc 56. 3.100 / 56. 3.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument '4.mp4'.
Reading option '-i' ... matched as input url with argument '1.mp4'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument '[0][1]xstack=fill=#171f29:inputs=2:layout=4_2|2986_1838[s0]'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '[s0]'.
Reading option '/video/16/Untitled_sans_text.mp4' ... matched as output url.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option filter_complex (create a complex filtergraph) with argument [0][1]xstack=fill=#171f29:inputs=2:layout=4_2|2986_1838[s0].
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url 4.mp4.
Successfully parsed a group of options.
Opening an input file: 4.mp4.
[NULL @ 0x69bf840] Opening '4.mp4' for reading
[file @ 0x69c0040] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] Processing st: 0, edit list 0 - media time: 0, duration: 2310144
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] Before avformat_find_stream_info() pos: 8429176 bytes read:34169 seeks:1 nb_streams:1
[h264 @ 0x69c0d80] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x69c0d80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x69c0d80] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x69c0d80] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x69c0d80] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x69c0d80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69c0d80] Format yuv420p chosen by get_format().
[h264 @ 0x69c0d80] Reinit context to 864x800, pix_fmt: yuv420p
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69bf840] After avformat_find_stream_info() pos: 37782 bytes read:71903 seeks:2 frames:1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.16.100
Duration: 00:02:21.00, start: 0.000000, bitrate: 478 kb/s
Stream #0:0[0x1](und), 1, 1/16384: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-1, progressive, left), 864x788 (864x800), 0/1, 478 kb/s, 1 fps, 1 tbr, 16384 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Successfully opened the file.
Parsing a group of options: input url 1.mp4.
Successfully parsed a group of options.
Opening an input file: 1.mp4.
[NULL @ 0x69f1d40] Opening '1.mp4' for reading
[file @ 0x6a21a00] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] Processing st: 0, edit list 0 - media time: 0, duration: 2473984
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] Before avformat_find_stream_info() pos: 9015166 bytes read:34209 seeks:1 nb_streams:1
[h264 @ 0x69e4800] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x69e4800] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x69e4800] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x69e4800] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x69e4800] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x69e4800] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69e4800] Format yuv420p chosen by get_format().
[h264 @ 0x69e4800] Reinit context to 864x800, pix_fmt: yuv420p
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x69f1d40] After avformat_find_stream_info() pos: 35499 bytes read:69660 seeks:2 frames:1
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.16.100
Duration: 00:02:31.00, start: 0.000000, bitrate: 477 kb/s
Stream #1:0[0x1](und), 1, 1/16384: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-1, progressive, left), 864x788 (864x800), 0/1, 477 kb/s, 1 fps, 1 tbr, 16384 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Successfully opened the file.
[Parsed_xstack_0 @ 0x69e3040] Setting 'fill' to value '#171f29'
[Parsed_xstack_0 @ 0x69e3040] Setting 'inputs' to value '2'
[Parsed_xstack_0 @ 0x69e3040] Setting 'layout' to value '4_2|2986_1838'
Parsing a group of options: output url /video/16/Untitled_sans_text.mp4.
Applying option map (set input stream mapping) with argument [s0].
Successfully parsed a group of options.
Opening an output file: /video/16/Untitled_sans_text.mp4.
[file @ 0x69d1900] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 6 logical cores
[h264 @ 0x69f5040] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x69f5040] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
Stream #0:0 (h264) -> xstack
Stream #1:0 (h264) -> xstack
xstack:default -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69f5040] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69f5040] Format yuv420p chosen by get_format().
[h264 @ 0x69f5040] Reinit context to 864x800, pix_fmt: yuv420p
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x71b8740] Format yuv420p chosen by get_format().
[h264 @ 0x71b8740] Reinit context to 864x800, pix_fmt: yuv420p
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[Parsed_xstack_0 @ 0x7ad45c0] Setting 'fill' to value '#171f29'
[Parsed_xstack_0 @ 0x7ad45c0] Setting 'inputs' to value '2'
[Parsed_xstack_0 @ 0x7ad45c0] Setting 'layout' to value '4_2|2986_1838'
[graph 0 input from stream 0:0 @ 0x7ad5800] Setting 'video_size' to value '864x788'
[graph 0 input from stream 0:0 @ 0x7ad5800] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x7ad5800] Setting 'time_base' to value '1/16384'
[graph 0 input from stream 0:0 @ 0x7ad5800] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x7ad5800] Setting 'frame_rate' to value '1/1'
[graph 0 input from stream 0:0 @ 0x7ad5800] w:864 h:788 pixfmt:yuv420p tb:1/16384 fr:1/1 sar:0/1
[graph 0 input from stream 1:0 @ 0x7ad6580] Setting 'video_size' to value '864x788'
[graph 0 input from stream 1:0 @ 0x7ad6580] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 1:0 @ 0x7ad6580] Setting 'time_base' to value '1/16384'
[graph 0 input from stream 1:0 @ 0x7ad6580] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 1:0 @ 0x7ad6580] Setting 'frame_rate' to value '1/1'
[graph 0 input from stream 1:0 @ 0x7ad6580] w:864 h:788 pixfmt:yuv420p tb:1/16384 fr:1/1 sar:0/1
[format @ 0x7ad7600] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21|yuv420p10le|yuv422p10le|yuv444p10le|nv20le|gray|gray10le'
[AVFilterGraph @ 0x7ad34c0] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[Parsed_xstack_0 @ 0x7ad45c0] [framesync @ 0x7ad4798] Selected 1/16384 time base
[Parsed_xstack_0 @ 0x7ad45c0] [framesync @ 0x7ad4798] Sync level 1
[libx264 @ 0x69f3b40] using mv_range_thread = 136
[libx264 @ 0x69f3b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x69f3b40] profile High, level 6.0, 4:2:0, 8-bit
[libx264 @ 0x69f3b40] 264 - core 164 r3081 19856cc - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 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=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/video/16/Untitled_sans_text.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.16.100
Stream #0:0, 0, 1/16384: Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(progressive), 3850x2626 (0x0), 0/1, q=2-31, 1 fps, 16384 tbn
Metadata:
encoder : Lavc59.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Clipping frame in rate conversion by 0.000008
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
...
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 0 QP=3.66 NAL=3 Slice:I Poc:0 I:39765 P:0 SKIP:0 size=204347 bytes
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 1 QP=7.68 NAL=2 Slice:P Poc:8 I:1201 P:4090 SKIP:34474 size=196520 bytes
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 2 QP=9.03 NAL=2 Slice:B Poc:4 I:0 P:219 SKIP:39546 size=611 bytes
[h264 @ 0x76c0b80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x70e7a80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 3 QP=16.00 NAL=0 Slice:B Poc:2 I:0 P:1 SKIP:39764 size=289 bytes
[h264 @ 0x69f5040] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x71b8740] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 4 QP=16.00 NAL=0 Slice:B Poc:6 I:0 P:31 SKIP:39734 size=300 bytes
[h264 @ 0x69d7380] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x72b3cc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 5 QP=9.36 NAL=2 Slice:P Poc:16 I:0 P:702 SKIP:39063 size=5286 bytes
[h264 @ 0x6a04240] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7383240] nal_unit_type: 5(IDR), nal_ref_idc: 3.00 bitrate= 699.2kbits/s speed=1.08x
[libx264 @ 0x69f3b40] frame= 6 QP=8.61 NAL=2 Slice:B Poc:12 I:0 P:454 SKIP:39311 size=611 bytes
[h264 @ 0x6a18680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x74528c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 7 QP=16.00 NAL=0 Slice:B Poc:10 I:0 P:384 SKIP:39381 size=514 bytes
[h264 @ 0x6bc7d00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x7521f00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[libx264 @ 0x69f3b40] frame= 8 QP=16.00 NAL=0 Slice:B Poc:14 I:0 P:36 SKIP:39729 size=306 bytes
[h264 @ 0x6bdc140] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x75f1540] nal_unit_type: 5(IDR), nal_ref_idc: 3
2022-04-06 22:37:08,458 /app/movie_services/make_movie.py:118 ERROR COMBINED VIDEO FAILED
2022-04-06 22:37:08,461 /app/movie_services/make_movie.py:119 ERROR ffmpeg error (see stderr output for detail)```
最佳答案
仅供引用,您的过滤器使用测试源无错误地工作:
from ffmpegio import ffmpeg
ffmpeg(["-y",
"-f", "lavfi", "-i", "smptebars=s=864x800",
"-f", "lavfi", "-i", "pal100bars=s=864x800",
"-filter_complex", "[0][1]xstack=fill=#171f29:inputs=2:layout=4_2|2986_1838[s0]",
"-map", "[s0]",
"-vframes", "1",
"sandbox/OutputFile.png"])
使用输出文件配置:
Output #0, image2, to 'sandbox/OutputFile.png':
Metadata:
encoder : Lavf59.16.100
Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 3850x2638 [SAR 1:1 DAR 1925:1319], q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc59.18.100 png
因此,我怀疑您的输入文件存在问题,特别是重复出现的消息:
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
指向罪魁祸首IMO。您可以尝试添加
setpts=N/TB
在
xstack
之后(或在两个输入之前)查看是否可以解决问题。
关于python - ffmpeg xstack 过滤器布局限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71774471/
我正在处理一组标记为 160 个组的 173k 点。我想通过合并最接近的(到 9 或 10 个组)来减少组/集群的数量。我搜索过 sklearn 或类似的库,但没有成功。 我猜它只是通过 knn 聚类
我有一个扁平数字列表,这些数字逻辑上以 3 为一组,其中每个三元组是 (number, __ignored, flag[0 or 1]),例如: [7,56,1, 8,0,0, 2,0,0, 6,1,
我正在使用 pipenv 来管理我的包。我想编写一个 python 脚本来调用另一个使用不同虚拟环境(VE)的 python 脚本。 如何运行使用 VE1 的 python 脚本 1 并调用另一个 p
假设我有一个文件 script.py 位于 path = "foo/bar/script.py"。我正在寻找一种在 Python 中通过函数 execute_script() 从我的主要 Python
这听起来像是谜语或笑话,但实际上我还没有找到这个问题的答案。 问题到底是什么? 我想运行 2 个脚本。在第一个脚本中,我调用另一个脚本,但我希望它们继续并行,而不是在两个单独的线程中。主要是我不希望第
我有一个带有 python 2.5.5 的软件。我想发送一个命令,该命令将在 python 2.7.5 中启动一个脚本,然后继续执行该脚本。 我试过用 #!python2.7.5 和http://re
我在 python 命令行(使用 python 2.7)中,并尝试运行 Python 脚本。我的操作系统是 Windows 7。我已将我的目录设置为包含我所有脚本的文件夹,使用: os.chdir("
剧透:部分解决(见最后)。 以下是使用 Python 嵌入的代码示例: #include int main(int argc, char** argv) { Py_SetPythonHome
假设我有以下列表,对应于及时的股票价格: prices = [1, 3, 7, 10, 9, 8, 5, 3, 6, 8, 12, 9, 6, 10, 13, 8, 4, 11] 我想确定以下总体上最
所以我试图在选择某个单选按钮时更改此框架的背景。 我的框架位于一个类中,并且单选按钮的功能位于该类之外。 (这样我就可以在所有其他框架上调用它们。) 问题是每当我选择单选按钮时都会出现以下错误: co
我正在尝试将字符串与 python 中的正则表达式进行比较,如下所示, #!/usr/bin/env python3 import re str1 = "Expecting property name
考虑以下原型(prototype) Boost.Python 模块,该模块从单独的 C++ 头文件中引入类“D”。 /* file: a/b.cpp */ BOOST_PYTHON_MODULE(c)
如何编写一个程序来“识别函数调用的行号?” python 检查模块提供了定位行号的选项,但是, def di(): return inspect.currentframe().f_back.f_l
我已经使用 macports 安装了 Python 2.7,并且由于我的 $PATH 变量,这就是我输入 $ python 时得到的变量。然而,virtualenv 默认使用 Python 2.6,除
我只想问如何加快 python 上的 re.search 速度。 我有一个很长的字符串行,长度为 176861(即带有一些符号的字母数字字符),我使用此函数测试了该行以进行研究: def getExe
list1= [u'%app%%General%%Council%', u'%people%', u'%people%%Regional%%Council%%Mandate%', u'%ppp%%Ge
这个问题在这里已经有了答案: Is it Pythonic to use list comprehensions for just side effects? (7 个答案) 关闭 4 个月前。 告
我想用 Python 将两个列表组合成一个列表,方法如下: a = [1,1,1,2,2,2,3,3,3,3] b= ["Sun", "is", "bright", "June","and" ,"Ju
我正在运行带有最新 Boost 发行版 (1.55.0) 的 Mac OS X 10.8.4 (Darwin 12.4.0)。我正在按照说明 here构建包含在我的发行版中的教程 Boost-Pyth
学习 Python,我正在尝试制作一个没有任何第 3 方库的网络抓取工具,这样过程对我来说并没有简化,而且我知道我在做什么。我浏览了一些在线资源,但所有这些都让我对某些事情感到困惑。 html 看起来
我是一名优秀的程序员,十分优秀!