---
title: 'FFMPEG Bulk Bash Script to Insert Watermark Image to All Videos in the Directory or Folder at Once'
source: 'https://youtube.com/watch?v=bsH-sOjZD3U'
video_id: 'bsH-sOjZD3U'
date: 2026-07-28
duration_sec: 604
---

# FFMPEG Bulk Bash Script to Insert Watermark Image to All Videos in the Directory or Folder at Once

> Source: [FFMPEG Bulk Bash Script to Insert Watermark Image to All Videos in the Directory or Folder at Once](https://youtube.com/watch?v=bsH-sOjZD3U)

## Summary

This tutorial demonstrates how to use a batch script with FFmpeg to insert a watermark image into all videos within a directory at once. The script automates the process, saving time compared to manual editing. It supports any number of videos and allows custom positioning of the watermark.

### Key Points

- **Introduction to bulk watermarking** [0:08] — The tutorial shows how to insert a watermark into all videos in a directory using FFmpeg and a batch script.
- **Watermark placement customization** [0:50] — The watermark can be placed at any location by specifying X and Y coordinates.
- **Unlimited video processing** [1:11] — The script can process any number of videos, even 1,000, without issues.
- **Prerequisite: FFmpeg installation** [2:02] — FFmpeg must be installed from ffmpeg.org. Verify installation by typing 'ffmpeg' in the command line.
- **Blog post reference** [2:26] — A blog post on Coding Shiksha provides the complete command and step-by-step instructions.
- **Example setup** [3:09] — The example uses a logo.png file and six MP4 videos in the same directory.
- **Creating the batch script** [4:36] — Create a file named watermark.bat and write the FFmpeg command with overlay filter.
- **FFmpeg command structure** [5:00] — Command: ffmpeg -i "%%a" -i logo.png -filter_complex overlay=20:20 -preset ultrafast output/%%~na.mp4
- **Running the script** [6:56] — Run the batch file by double-clicking or via command line. Ensure an output folder exists.
- **Processing demonstration** [8:23] — The script processes videos one by one, creating watermarked versions in the output folder.

### Conclusion

This batch script with FFmpeg enables efficient bulk watermarking of videos, saving significant time compared to manual editing. It is a practical solution for content creators needing to add logos to multiple videos.

## Transcript

Hello friends, today in this tutorial
I'll be showing you that how to
insert watermark to all the videos which
are present inside a particular
directory. And we will be doing it at
once using FFmpeg. Basically, we will be
writing a
batch script batch file.
And
with the help of that batch script, we
will be able to
bulk
watermark all the videos. You can just
download the logo of your YouTube
channel or if you have to have a
subscribe logo,
you can search the logo here. Let me
show you example here. This will be
placed at the top left corner of this
video.
You can place that any location. You
need to provide the X coordinate and the
Y coordinate. You can see this is a
video which is running here.
So, basically, all the videos which are
present inside a directory, it will have
this logo. You can see this is a second
video.
This is a third video.
This is a fourth video.
This is a fifth video. So, basically,
the limit is unlimited.
Uh
in the directory, let's suppose you have
1,000 videos, you need to
process 1,000 videos, it will still
work.
And this is a very fantastic uh batch
script that I will be showing you in
this live stream, which will be placing
the watermark logo image inside any
location inside the video. So,
basically, many many a times you need to
place the watermark on the videos and
you don't want to do it manually because
it
uh
it takes a lot of time doing manually,
just going to a video editor and doing
this process. So, I will be showing you
a batch script which will place this
logo at any location of your video.
So, let's start the
how to do it. So, first of all, guys,
you need to have FFmpeg installed on
your system. Just go to ffmpeg.org
and download this software. It's a free
software, open source, cross-platform.
And
download it for your own operating
system. So, I have all successfully
installed it. So, now to check it,
simply write FFmpeg on the command line.
If the command is successful, then you
have successfully installed this
library. Now you I have written a
complete blog post on my tutorial
website, Coding Shiksha. You can see
this is the blog post I have written
here. So, if you want to insert the
watermark image, you can go to the
description of this live stream.
So, you can go to the description of
this live stream here. I have given this
link here. This is the link of the blog
post. So, the command is given here in
the
blog post here. You will see
step-by-step instruction is given. So,
let's start doing it.
So, you can see, first of all, let me
delete this output directory.
So, you can see, let me also delete
these folders.
So, you can see, guys, we have this logo
image present here, which is a PNG file
here. Basically, this is the logo which
we will be inserting in all the videos.
And rest is our videos. You can see this
is the first video.
This is the second video.
This is the third video. This is the
fourth video.
Fifth video. Sixth video. So, there are
almost six videos present here. 1 2 3 4
5 6. All the videos have MP4 extension.
So, this needs to be the
same extension.
So, you don't have to have different
extensions. You can also do it for
different extension. This will be a
different batch script. But in this live
stream, I will be telling you if all the
videos have same extension, let's
suppose MP4, AVI, WMV, so this batch
script will be written.
So, now let me delete this batch script
and write it once again.
So, as you know that batch script is a
programming language. Basically, it is
used for scripting purposes for Windows
machine.
If you just write here batch
scripting,
you will get to know more about it. So,
basically, if you want to do some kind
of scripting stuff for operating
systems, this language is for you.
So, basically, it is using for
increasing productivity and managing
doing the repetitive task. So, you can
just do it simple write a simple script.
So,
inside my editor, guys, I will make a
simple script here, watermark
.bat.
This is extension here. You can see the
If I write this the
uh logo has changed to Windows logo.
watermark.bat.
So, this is the file that we have
created. So, now we need to write this
batch script. So, let me write it here.
So FFmpeg
-i
for input. And then in double quotes, we
will write this percentage sign
double A.
You don't need to understand this, but
you need to just write this what I'm
writing here. -i. And then you need to
provide the logo destination. Wherever
your logo is present, it is present in
the same directory. You will see
logo.png. So, I'm just writing it
logo.png.
And then -filter_complex.
And then you need to provide the
location overlay.
So, basically, we are placing the logo
in the video, so that's why we are using
the overlay filter.
And then you need to provide the X
coordinate and the Y coordinate. So,
this can be anything. I'm providing 20
20.
So, this is the X coordinate and the Y
coordinate.
And after that, you just need to put
preset.
Just to process the videos faster, we
will use ultrafast.
And then output file name.
This will be output
/
percentage percentage.
And this special
uh key here which is available, you need
to press shift and the
key which is below the escape key. And
this will give give you the sign na.mp4.
So, this is the script, guys, which you
need to write here. So, this is now
complete here.
So,
now we need to run this script here.
So, before running this script, guys,
you need to create that output folder
that we have placed here. You can see
output/.
So, right here inside this directory,
you need to create the output folder.
So, create a new folder, give the name
output.
So, there are two ways by which you can
run this file, Windows batch file.
Either you can right-click it,
double-click it.
This will also work.
If I run this,
or you can do it like this, open cmd
and then write
watermark.
bat.
So, it is saying that no such file or
directory.
It is giving some error. Let me check.
Uh let me copy this command once again,
guys. This can
Oh sorry.
I have missed it.
Uh this needs to do.
I missed the misspelled the full
command. So, go to the description of
this live stream, guys.
You need to write it fully. You can see.
And here you need to put the extension.
Uh I missed that extension here. For all
the files video files present inside the
root directory which have this
extension, which is MP4,
we need to perform this task, which is
place this logo, which is logo.png.
And overlay
and preset, all these position need to
be same. That's it.
So, now we can run this.
Go to We can also right-click this.
So, now this is processing the first
video. You will see that.
If I open this output directory, it has
created this file here, first file.
Side by side, let me show you.
So, basically, it will do it batch by
batch. You can see this first file is
ready. Now it is processing the second
file.
And in similar fashion, it will process
all the files which are present and you
can see that.
It is so
good in productivity. You don't need to
waste your time in manually processing
the videos. It will do it automatically
for you. Automatically place the
watermark image
using this batch script.
So, the batch script will be there
inside in the description of the live
stream, guys. So, go to the blog post
and copy-paste this command. So, if I
show you the video here, you will see
that
the watermark is placed here
automatically
at in this fixed location. So,
you can take any watermark image and
place it inside this video,
multiple videos at once.
So, it's a bulk watermark script that
I'm giving you.
So, you can now see this is processing
has finished.
You can see that.
So, this was the tutorial, guys. I
wanted to show you that how to insert
watermark in multiple videos which are
present in a single directory at once
using the
Thanks very much for watching this
video, and I will be seeing you in the
next tutorial.
