Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-14T09:28:05.440Z
Answers.Text: 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?
Answers.UserDisplayName: Suresh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-14T05:25:25.453Z
Answers.LastActivityDate: 2017-08-14T10:48:49.737Z
Answers.LastEditDate: 2017-08-14T10:48:49.737Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-13T15:30:53.453Z
Comments.Text: Where is the black portion? Share a screenshot.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-13T15:37:21.937Z
Comments.Text: Thanks Mulvya... I will share a screenshot..Could you let me know how to remove the bottom portion alone
Comments.UserDisplayName: Suresh
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-13T15:38:20.253Z
Comments.Text: `crop=in_w:in_h-25:0:0`
Comments.UserDisplayName: Gyan
Tags: <ffmpeg>
Title: Cropping the video and removing the black portion
UserDisplayName: Suresh
ThreadText: # 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
  
  [![aftercrop](https://i.sstatic.net/5iD5Z.png)](https://i.sstatic.net/5iD5Z.png)
  
  Before crop
  
  [![Before crop](https://i.sstatic.net/rVnjU.png)](https://i.sstatic.net/rVnjU.png)
  
  **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?  
  
  ---
  
  