<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>

CC BY-SA 4.0
2021-07-15T10:32:56.767Z
2021-07-15T10:32:56.767Z
Gyan
<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>

CC BY-SA 4.0
2021-07-21T02:01:38.267Z
This is impossible without re-encoding. Chillax. No-one will die if you re-encode your video.
stib
<ffmpeg><aspect><bluray>
How to crop just 2 pixels without re-encoding (H264 video)?
Sal
# 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 bitstream filter.
ffmpeg -i in -c copy -bsf:v h264_metadata=crop_top=140 out


---

