gpt4 book ai didi

ffmpeg - ffmpeg和硬件加速器的水印视频

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

我使用 p4000 卡和 ffmpeg 满足所有要求(驱动程序、工具包、cuda 编译)
我想通过这个命令在视频上加水印

./bin/ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -i input.png -filter_complex "overlay=10:10" -c:v h264_nvenc output.mp4

但我遇到了这个错误
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #1:0

感谢您的建议

最佳答案

-hwaccel cuvid

意味着解码后的帧将直接进入硬件编码器(不会复制到系统内存中),因此此时无法在解码帧中添加过滤器。尝试删除-hwaccel cuvid,但速度会很慢。
https://trac.ffmpeg.org/wiki/HWAccelIntro#CUDACUVIDNVDEC

关于ffmpeg - ffmpeg和硬件加速器的水印视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48982866/

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