---
title: 'FFMPEG Batch Processing Script to Resize All Images in a Directory'
source: 'https://youtube.com/watch?v=9UiRsmsJPP8'
video_id: '9UiRsmsJPP8'
date: 2026-07-28
duration_sec: 221
---

# FFMPEG Batch Processing Script to Resize All Images in a Directory

> Source: [FFMPEG Batch Processing Script to Resize All Images in a Directory](https://youtube.com/watch?v=9UiRsmsJPP8)

## Summary

This video demonstrates how to create a batch script using FFmpeg to resize multiple images in a directory to a specified width and height.

### Key Points

- **Introduction** [0:00] — The video shows how to write a batch processing script in FFmpeg to resize multiple images in a folder.
- **Images present** [0:15] — The directory contains JPG and PNG images that need resizing.
- **Creating the batch script** [0:27] — A simple batch script (resize.bat) is created to automate the resizing process.
- **Script steps** [0:45] — The script creates a 'resized' directory, then loops through PNG and JPG files, applying the FFmpeg scale filter to resize to 800x600.
- **Execution** [2:05] — Running the script resizes all images and outputs them to the 'resized' folder.
- **Verification** [2:56] — The resized images are verified to have width 800 and height 600 via properties.

### Conclusion

Using a simple batch script with FFmpeg, you can efficiently resize multiple images to a specific dimension in one go.

## Transcript

Uh hello guys uh welcome to this video.
So in this video I will show you how to
write a batch processing script in
ffmppg to resize the multiple images
which are present in the directory in a
folder. So you can see we have these
images present which contains jpg png
images. So what I will need to do I need
to resize all these images to a
particular width and height using
ffmppg. For this I will just write a
simple batch script which will
automatically do the job for us. So we
will just create this resize dotbat
script. Let's see bat script. So right
here I have given the script in the
description of this video. So first of
all what we will do echo of we will make
a new
directory. So we make
directory resized. We will create this
folder and after that we will just run a
simple for
loop and uh you can see it is giving me
suggestions. So first of all we will
target all the png files png and then
for those we will simply execute this
command fmpp i and
inside double quotes we will simply
write uh percentage
sign and for each image we will be
applying this video filter which will be
the scaling filter
scale and inside the scale filter you
can actually provide uh whichever
dimension
uh you want to resize your image. So
first of all will be the width. So I
will resize to 800 width 600
height and then you just need to give in
double
quotes the name of the output file which
will be resized
slash. So what I will do I will simply
copy paste the
script. So this is a script guys. So we
first of all make this folder. Once you
execute the script, this will create a
brand new folder resized inside this. It
will actually
uh target all the files right here which
starts from PNG, JPG, JPG. And for all
those files, we will resize it to 800 by
600. And once we will complete, we'll
print out this message resizing
complete. So now it will detect all
these images which are present in the
directory which starts from PNG or JPG.
You will see that if I execute this uh
bat script
just you will see it will resize all
these images in the command line and it
will create this folder resized if you
see and you will see all the images are
being resized. You can cross check by
going to properties going to details.
You will see the width is 800 600. You
can target any image here. You can go to
details. You will see the width and the
height is 800 600. So in this easy way
guys, you can actually resize the bulk
images by this uh bat processing script
in ffmpg to resize multiple images to a
particular width and height. You can see
all your images have been successfully
resized. So this is a very important
script. I've given the script in the
description of this video. You can just
do this for all your images which are
there.
And also check out my website guys
freemediattools.com which contains
thousands of tools regarding audio
