<p>Use</p>

<pre><code>ffplay -i input.mp4 -vf "crop=in_w:in_h-25:0:0"
</code></pre>

<p>If you're watching this full screen, then the display will show black bars if the resized video is not the same aspect ratio as your monitor. To achieve that, you'll have to crop horizontally as well. If your crop X pixels vertically, you'll have to crop (16/9)*X pixels horizontally.</p>

<p>To do this, use</p>

<p>(left and right)</p>

<pre><code>ffplay -i input.mp4 -vf "crop=in_w-25*16/9:in_h-25:(ow-iw)/2:0"
</code></pre>

<p>(right only)</p>

<pre><code>ffplay -i input.mp4 -vf "crop=in_w-25*16/9:in_h-25:0:0"
</code></pre>

CC BY-SA 3.0
2017-08-14T09:28:05.440Z
Thanks... What is the command to crop horizontally, I mean If I want to achieve that in a single command? 1) Crop 25 pixels from bottom vertically and crop (16/9)*25 pixels horizontally from right and left in a single command?  2) Crop 25 pixels from bottom vertically and crop (16/9)*25 pixels horizontally from right alone in a single command?
Suresh
CC BY-SA 3.0
2017-08-14T05:25:25.453Z
2017-08-14T10:48:49.737Z
2017-08-14T10:48:49.737Z
Gyan
<p>I know that the below command will crop 25 from top and bottom </p>

<pre><code>ffplay -i input.mp4 -vf "crop=in_w:in_h-50"
</code></pre>

<p>However I just want to crop 25 from bottom(not top).
Also How can i remove the black portion in the output so that the output video appears as full screen?</p>

<p>EDIT</p>

<p>Here is the screenshot of the black portion after crop</p>

<p><a href="https://i.sstatic.net/5iD5Z.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5iD5Z.png" alt="aftercrop"></a></p>

<p>Before crop</p>

<p><a href="https://i.sstatic.net/rVnjU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rVnjU.png" alt="Before crop"></a></p>

CC BY-SA 3.0
2017-08-13T15:30:53.453Z
Where is the black portion? Share a screenshot.
Gyan
CC BY-SA 3.0
2017-08-13T15:37:21.937Z
Thanks Mulvya... I will share a screenshot..Could you let me know how to remove the bottom portion alone
Suresh
CC BY-SA 3.0
2017-08-13T15:38:20.253Z
`crop=in_w:in_h-25:0:0`
Gyan
<ffmpeg>
Cropping the video and removing the black portion
Suresh
# Cropping the video and removing the black portion

(Asked by: username_0 on 2017-08-13)

I know that the below command will crop 25 from top and bottom 
ffplay -i input.mp4 -vf "crop=in_w:in_h-50"

However I just want to crop 25 from bottom(not top).
Also How can i remove the black portion in the output so that the output video appears as full screen?
EDIT
Here is the screenshot of the black portion after crop

Before crop

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Where is the black portion? Share a screenshot.  
> **username_0**: Thanks Mulvya... I will share a screenshot..Could you let me know how to remove the bottom portion alone  
> **username_1**: `crop=in_w:in_h-25:0:0`  

---

## 1 answers

### Answer by username_1 on 2017-08-14. Score: 2 | Accepted answer

Use
ffplay -i input.mp4 -vf "crop=in_w:in_h-25:0:0"

If you're watching this full screen, then the display will show black bars if the resized video is not the same aspect ratio as your monitor. To achieve that, you'll have to crop horizontally as well. If your crop X pixels vertically, you'll have to crop (16/9)*X pixels horizontally.
To do this, use
(left and right)
ffplay -i input.mp4 -vf "crop=in_w-25*16/9:in_h-25:(ow-iw)/2:0"

(right only)
ffplay -i input.mp4 -vf "crop=in_w-25*16/9:in_h-25:0:0"

> **Comments:**
> **username_0**: Thanks... What is the command to crop horizontally, I mean If I want to achieve that in a single command? 1) Crop 25 pixels from bottom vertically and crop (16/9)*25 pixels horizontally from right and left in a single command?  2) Crop 25 pixels from bottom vertically and crop (16/9)*25 pixels horizontally from right alone in a single command?  

---

