Answers.Body: <p>You can use the <a href="http://www.ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata" rel="nofollow noreferrer">h264_metadata</a> bitstream filter.</p>
  <pre><code>ffmpeg -i in -c copy -bsf:v h264_metadata=crop_top=140 out
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-15T10:32:56.767Z
Answers.LastActivityDate: 2021-07-15T10:32:56.767Z
Answers.UserDisplayName: Gyan
Body: <p>I just want to crop 2 pixels (Top) to get identical black bars (now is 138 TOP and 140 BOTTOM) but without re-encoding. I think it is possible with FFmpeg but I'm not sure. I want to do this with one H264 video (m2ts from blu-ray).</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-21T02:01:38.267Z
Comments.Text: This is impossible without re-encoding. Chillax. No-one will die if you re-encode your video.
Comments.UserDisplayName: stib
Tags: <ffmpeg><aspect><bluray>
Title: How to crop just 2 pixels without re-encoding (H264 video)?
UserDisplayName: Sal
ThreadText: # How to crop just 2 pixels without re-encoding (H264 video)?
  
  (Asked by: username_0 on 2021-07-15)
  
  I just want to crop 2 pixels (Top) to get identical black bars (now is 138 TOP and 140 BOTTOM) but without re-encoding. I think it is possible with FFmpeg but I'm not sure. I want to do this with one H264 video (m2ts from blu-ray).
  
  **Tags:** ffmpeg, aspect, bluray
  
  > **Comments:**
  > **username_1**: This is impossible without re-encoding. Chillax. No-one will die if you re-encode your video.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-07-15. Score: 2
  
  You can use the [h264\_metadata](http://www.ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata) bitstream filter.
  
  ```
  ffmpeg -i in -c copy -bsf:v h264_metadata=crop_top=140 out
  
  ```
  
  
  ---
  
  