【问题标题】:Watermark video by ffmpeg and hardware acceleratorffmpeg和硬件加速器的水印视频
【发布时间】:2018-02-26 06:48:53
【问题描述】:

我使用 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

谢谢你的建议

【问题讨论】:

    标签: ffmpeg nvidia watermark hardware-acceleration video-watermarking


    【解决方案1】:
    -hwaccel cuvid
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-16
      • 2012-01-30
      • 1970-01-01
      • 1970-01-01
      • 2021-11-23
      • 1970-01-01
      • 2016-10-04
      • 2013-09-24
      相关资源
      最近更新 更多