gpt4 book ai didi

ffmpeg "Underestimated required buffer size"

转载 作者:行者123 更新时间:2023-12-04 23:11:38 25 4
gpt4 key购买 nike

使用 ffmpeg 将 8K png 流转换为 ProRes 4444 时,我在某些 Windows 机器上看到此错误。该命令看起来像

ffmpeg -f image2pipe -framerate 30000/1001 -i - -c:v prores_ks -y output.mov


和输出

ffmpeg version git-2020-06-17-0b3bd00 Copyright (c) 2000-2020 theFFmpeg developers built with gcc 9.3.1 (GCC) 20200523
configuration: --enable-gpl --enable-version3 --enable-sdl2--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf libavutil 56. 55.100 / 56. 55.100 libavcodec 58. 92.100 / 58. 92.100 libavformat 58. 46.101 / 58. 46.101 libavdevice 58. 11.100 / 58. 11.100 libavfilter 7. 86.100 / 7. 86.100 libswscale 5. 8.100 /5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 [image2pipe @ 000002245a96da40] Stream #0: not enough frames to estimate rate; consider increasing probesize Input#0, image2pipe, from 'pipe:': Duration: N/A, bitrate: N/AStream #0:0: Video: png, rgba(pc), 7680x3840, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (png (native) ->prores (prores_ks)) frame= 0 fps=0.0 q=0.0 size= 0kBtime=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A [prores_ks @000002245aaaf080] Autoselected 4:4:4:4 profile because of the usedinput colorspace. It can be overridden through -profile option.[prores_ks @ 000002245aaaf700] Autoselected 4:4:4:4 profile because ofthe used input colorspace. It can be overridden through -profileoption. [prores_ks @ 000002245aa1e7c0] Autoselected 4:4:4:4 profilebecause of the used input colorspace. It can be overridden through-profile option. [prores_ks @ 000002245aa1d580] Autoselected 4:4:4:4 profile because of the used input colorspace. It can be overriddenthrough -profile option. [prores_ks @ 000002245aa1ec40] Autoselected4:4:4:4 profile because of the used input colorspace. It can beoverridden through -profile option. [prores_ks @ 000002245aa1da00]Autoselected 4:4:4:4 profile because of the used input colorspace. Itcan be overridden through -profile option. [prores_ks @000002245aa1f540] Autoselected 4:4:4:4 profile because of the usedinput colorspace. It can be overridden through -profile option.[prores_ks @ 000002245aa1de80] Autoselected 4:4:4:4 profile because ofthe used input colorspace. It can be overridden through -profileoption. [prores_ks @ 000002245a972b40] Autoselected 4:4:4:4 profilebecause of the used input colorspace. It can be overridden through-profile option. Output #0, mov, to 'output.mov': Metadata:encoder : Lavf58.46.101Stream #0:0: Video: prores (prores_ks) (ap4h / 0x68347061), yuva444p10le, 7680x3840, q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97tbcMetadata:encoder : Lavc58.92.100 prores_ks frame= 1 fps=0.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 2 fps=0.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/Aspeed= 0x frame= 3 fps=0.4 q=0.0 size= 0kBtime=00:00:00.00 bitrate=N/A speed= 0x frame= 4 fps=0.4 q=0.0size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame=
5 fps=0.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed=
0x [prores_ks @ 000002245aaaf080] Underestimated required buffersize. Video encoding failed [prores_ks @ 000002245aaaf700]Underestimated required buffer size. [prores_ks @ 000002245aa1e7c0]Underestimated required buffer size. [prores_ks @ 000002245aa1d580]Underestimated required buffer size. [prores_ks @ 000002245aa1ec40]Underestimated required buffer size. [prores_ks @ 000002245aa1da00]Underestimated required buffer size. Conversion failed!


考虑到我无法访问有问题的机器(用户可以),我该如何调试呢? “没有足够的帧来估计速率;考虑增加探针大小”消息是否与问题有关?
谢谢
编辑:我增加了 probesize 并且该警告消失了,但转换一直失败,并出现相同的错误消息“低估所需的缓冲区大小”。我现在可以在我的一台 Windows 机器上重现它。
编辑 2:不是解决方案,但我发现如果使用 ffmpeg 4.2.3 并在 4.3 中引入,这个问题就消失了

最佳答案

由于 ffmpeg 的错误报告系统似乎不允许新用户(因此报告),我可以建议的唯一解决方案是避免使用 4.3.x 版本并保留在 4.2.3
更新:这个问题正在新版本的 ffmpeg 中得到修复:https://trac.ffmpeg.org/ticket/9173#ticket

关于ffmpeg "Underestimated required buffer size",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66354605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com