我有 Nvidia 1050Ti 显卡
我用 cuda 测试 ffmpeg
ffmpeg -hwaccel nvdec -hwaccel_output_format cuda -i input.mp4 -y \
-c:v h264_nvenc -c:a libmp3lame -b:v 3M \
-filter_complex hwdownload,scale=w=iw*min(1280/iw\,720/ih):h=ih*min(1280/iw\,720/ih),hwupload out.mp4
错误:
[hwupload @ 00000199b49c1080] A hardware device reference is required to upload frames to.
[Parsed_hwupload_2 @ 000001999ba8ee80] Query format failed for 'Parsed_hwupload_2': Invalid argument
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
我想要不使用 CPU 的完整硬件转码。