5
2
I am trying to run the following cmd, which should add a watermark to the video and also upscale it.
ffmpeg -i "in.avi" -i "\logo.png" -vf scale=854:-1 -preset
veryfast -crf 20 -filter_complex overlay=5:5 "ou.mkv"
I receive the following error.
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.
Before I tried to upscale (without the -vf scale=854:-1) the cmd worked to watermark.
How can I acheive both?
What I have tried?
- Moving the -vf parameter before the input, after the input etc.
Are you trying to upscale
– llogan – 2014-07-11T15:54:49.673in.avi
,logo.png
, or the output from theoverlay
filter? You should use one filtergraph for all of your filtering.@LordNeckbeard I wish to just upscale in.avi, I tried to move the -vf scale just after in.avi and also just before in the command but it did not work. Going to read about filtergraph now Thanks! – cecilli0n – 2014-07-11T16:24:06.047
@LongNeckbeard filtergraph worked -filter_complex "scale=854:-1,overlay=5:5". If you would like to post that as an answer I will happily mark as accepted. Thanks! – cecilli0n – 2014-07-11T17:49:09.760