ffmpeg 显示“get_buffer() failed”。这是一个错误吗?

ffmpeg 显示“get_buffer() failed”。这是一个错误吗?

ffmpeg 版本 2023-06-19-git-1617d1a752-full_build-www.gyan.dev

i7-1255U,Windows 11

命令行是

"ffmpeg.exe"  -y  -hwaccel qsv  -ss 00:00:03.461  -to 00:00:12.009  -i "input.mov"   -c:v h264_qsv -global_quality 25 -look_ahead 1 -preset veryslow -c:a aac -ar 48000 -ac 2 -ab 128k output.mp4

“input.mov”是mjpeg。

结果是:

[mjpeg_qsv @ 0000019930260080] get_buffer() failed
[vist#0:0/mjpeg @ 000001993025ff00] Error submitting packet to decoder: Cannot allocate memory
[mjpeg_qsv @ 0000019930260080] get_buffer() failed
[vist#0:0/mjpeg @ 000001993025ff00] Error submitting packet to decoder: Cannot allocate memory
[mjpeg_qsv @ 0000019930260080] get_buffer() failed
[vist#0:0/mjpeg @ 000001993025ff00] Error submitting packet to decoder: Cannot allocate memory
[mjpeg_qsv @ 0000019930260080] get_buffer() failed
[vist#0:0/mjpeg @ 000001993025ff00] Error submitting packet to decoder: Cannot allocate memory
[mjpeg_qsv @ 0000019930260080] get_buffer() failed
[vist#0:0/mjpeg @ 000001993025ff00] Error submitting packet to decoder: Cannot allocate memory

上面的信息重复了很多很多次。最后,它显示:

[vist#0:0/mjpeg @ 000001993025ff00] Error submitting EOF to decoder: Cannot allocate memory

我在一个非常旧的版本上尝试了相同的命令行,它运行正常。这是一个错误还是新版本附带了新的东西?

感谢您的帮助。

答案1

在 trac.ffmpeg.org 上开立一张票。这似乎是自 2022-08-03 以来 hwaccel qsv 的回归。

同时,如果您知道输入视频编解码器并且 QSV 支持该编解码器,则可以直接指定解码器。对于您的情况,它将是-c:v mjpeg_qsv -ss 00:00:03.461 -to 00:00:12.009 -i "input.mov"

相关内容