尝试在 Windows 10 上使用 ffmpeg(版本 7.0-essentials_build-www.gyan.dev)的硬件编码
命令
ffmpeg -i <input_file> -v verbose -c:v h264_amf -acodec copy -y <output_file>
错误
[h264_amf @ 0000014dc3388580] AMF initialisation succeeded via D3D11.
[h264_amf @ 0000014dc3388900] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36
[vost#0:0/h264_amf @ 0000014dc3bf7c80] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
如何解决这个问题?
错误 36 是
AMF_ENCODER_NOT_PRESENT
即您的 GPU 没有用于编码的固定功能块。