1

I am trying to create a batch file to run this script to add a watermark on each file in a folder

ffmpeg -i input.mov -i watermark.png -filter_complex "overlay=10:10" output.mov

The script above works fine but when I try to run the batch I get Error: "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0"

@echo off
REM Add watermark to video batch
for %%a in (*.mov) do ( ffmpeg "%%a" -i watermark.png -filter_complex "overlay=10:10" "output\%%~na.mov"
)
pause

What am I missing?

1 Answer 1

1

Looks like you forgot -i. Try:

@echo off
REM Add watermark to video batch
for %%a in (*.mov) do ( ffmpeg -i "%%a" -i watermark.png -filter_complex "overlay=10:10" "output\%%~na.mov"
)
pause
2
  • So stupid. That did it. Thank you very much.
    – JHandin
    Apr 9, 2020 at 17:53
  • 1
    You should mark this answer as the solution, otherwise the question will keep popping out in the homepage :)
    – mcont
    May 9, 2020 at 21:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.