小编cec*_*i0n的帖子

ffmpeg 错误:-vf/-af/-filter 和 -filter_complex 不能一起使用

我正在尝试运行以下 cmd,它应该为视频添加水印并对其进行放大。

ffmpeg -i "in.avi" -i "\logo.png" -vf scale=854:-1  -preset 
veryfast -crf 20 -filter_complex overlay=5:5 "ou.mkv"
Run Code Online (Sandbox Code Playgroud)

我收到以下错误。

Filtergraph 'scale=854:-1' was specified through the 
-vf/-af/-filter option for output stream 0:0, which is fed from 
a complex filtergraph. -vf/-af/-filter and -filter_complex 
cannot be used together for the same stream.
Run Code Online (Sandbox Code Playgroud)

在我尝试升级(没有 -vf scale=854:-1)之前,cmd 可以添加水印。

我怎样才能做到这两点?

我尝试过什么?

  • 在输入之前,输入之后移动 -vf 参数等。

ffmpeg

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

ffmpeg ×1