<p>Basic command is</p>

<pre><code>ffmpeg -i in.mp4 -vf crop=iw:ih-25:0:0 -c:a copy out.mp4
</code></pre>

<p>Note that MP4s usually require the dimensions to be even, so the command above will actually crop 26 pixels from the bottom.</p>

<p>On linux, using bash, the script would be</p>

<pre><code>#!/bin/bash
# Usage: ./crop.sh

mkdir cropped
for file in *.mp4;
do
    ffmpeg -i "${file}" -vf crop=iw:ih-25:0:0 -c:a copy "./cropped/$file"
done
</code></pre>

CC BY-SA 3.0
2016-09-18T04:33:49.100Z
2016-09-18T04:41:59.567Z
2016-09-18T04:41:59.567Z
Gyan
<p>I have many videos in a folder which I want to crop in same way. 
I want to remove 25px from the bottom part of all frames of all videos. All the videos are 1280x720p and have same format which is mp4. </p>

<p>How can I crop 25px from the bottom of the frames and save the output files as new separate files? </p>

<p>I am using ffmpeg cli on Linux but I don't mind using other tools on Windows or Linux. Is there a easy way of doing this in batch? </p>

<ffmpeg><windows><linux>
Crop selected area in all videos
Attiq Haroon
# Crop selected area in all videos

(Asked by: username_0 on 2016-09-17)

I have many videos in a folder which I want to crop in same way.
I want to remove 25px from the bottom part of all frames of all videos. All the videos are 1280x720p and have same format which is mp4.

How can I crop 25px from the bottom of the frames and save the output files as new separate files?

I am using ffmpeg cli on Linux but I don't mind using other tools on Windows or Linux. Is there a easy way of doing this in batch?

**Tags:** ffmpeg, windows, linux


---

## 1 answers

### Answer by username_1 on 2016-09-18. Score: 3

Basic command is
ffmpeg -i in.mp4 -vf crop=iw:ih-25:0:0 -c:a copy out.mp4

Note that MP4s usually require the dimensions to be even, so the command above will actually crop 26 pixels from the bottom.
On linux, using bash, the script would be
#!/bin/bash
# Usage: ./crop.sh

mkdir cropped
for file in *.mp4;
do
    ffmpeg -i "${file}" -vf crop=iw:ih-25:0:0 -c:a copy "./cropped/$file"
done


---

