FFMPEG hwaccel复合滤波器

时间:2018-10-16 08:57:06

标签: ffmpeg

我知道这可以通过简单地删除-hwaccel cuvid来完成,但是我想知道这种hwuplaod / hwdownload复杂过滤功能如何真正与ffmpeg一起工作。

T:\ffmpeg\bin\20181015-c27c7b4-win64-static\ffmpeg.exe -y -loglevel 48 -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -i "input.mp4" -i "watermark.png" -filter_complex "format=nv12,hwupload,overlay=0:0" -b:v 24000k -c:v h264_nvenc -c:a copy "output.mp4"

Parsed_format_0 @ 00000250b79758c0] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
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_device 0和-hwaccel cuvid可使ffmpeg正常运行并导出,但是GPU(gtx1080ti)的使用率仅为25%,而我的cpu(i9-7900x) 80%)。显然有更好的方法来解决这个问题。

0 个答案:

没有答案