<p>Looks like you forgot <code>-i</code>. Try:</p>

<pre><code>@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
</code></pre>

CC BY-SA 4.0
2020-04-09T17:53:40.067Z
So stupid. That did it. Thank you very much.
JHandin
CC BY-SA 4.0
2020-05-09T21:26:50.110Z
You should mark this answer as the solution, otherwise the question will keep popping out in the homepage :)
mcont
CC BY-SA 4.0
2020-04-08T22:19:34.597Z
2020-04-08T22:19:34.597Z
llogan
<p>I am trying to create a batch file to run this script to add a watermark on each file in a folder</p>

<pre><code>ffmpeg -i input.mov -i watermark.png -filter_complex "overlay=10:10" output.mov
</code></pre>

<p>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"</p>

<pre><code>@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
</code></pre>

<p>What am I missing?</p>

<ffmpeg><windows><command-line>
ffmpeg batch overlay Error: "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0"
JHandin
# ffmpeg batch overlay Error: "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0"

(Asked by: username_0 on 2020-04-08)

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?

**Tags:** ffmpeg, windows, command-line


---

## 1 answers

### Answer by username_1 on 2020-04-08. Score: 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

> **Comments:**
> **username_0**: So stupid. That did it. Thank you very much.  
> **username_2**: You should mark this answer as the solution, otherwise the question will keep popping out in the homepage :)  

---

