gpt4 book ai didi

带有-hwaccel_output_format的FFMPEG Hwaccel错误

转载 作者:行者123 更新时间:2023-12-04 23:31:52 34 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


1年前关闭。







Improve this question




我有 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 的完整硬件转码。

最佳答案

NVIDIA FFMPEG TRANSCODE GUIDE
您可以按照它使用硬件 NVIDIA GPU 进行完整转码。
您需要在启用 CUDA 功能的情况下手动编译 FFmpeg。因为scale是一个使用CPU资源的软件。在另一边是scale_nppscale_cuda使用 GPU 资源(选项有限)。hwdownload : 帧到内存,它是 GPU VRAM -> RAM 中的平均数据。hwupload : hwdownload 的反转.注意:NVENC 仅适用于 GPU VRAM。

关于带有-hwaccel_output_format的FFMPEG Hwaccel错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64175129/

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