Feature suggestion: An option to set crop offsets in AVC and HEVC video streams

Everything related to MakeMKV
Post Reply
babypuncher
Posts: 20
Joined: Tue Jan 16, 2018 4:22 am

Feature suggestion: An option to set crop offsets in AVC and HEVC video streams

Post by babypuncher » Fri Nov 12, 2021 12:31 am

Removing letterboxing/pillarboxing from videos is a good QoL enhancement, especially for anyone watching content in a window on a computer instead of a TV.

h.264 and h.265 (AVC and HEVC respectively) include flags for crop offsets in their respective picture streams. These can be set without losing any picture data. The vast majority of players will also respect these flags, unlike the flags that can be set on the mkv container itself.

here is some documentation on how to do it in ffmpeg.

Doing this after ripping with makemkv is not a particularly huge deal, but it is rather time consuming, especially with 4k movies.

A feature to extract a few frames from the target title so that the needed crop values can be determined are probably a good idea.

Woodstock
Posts: 10332
Joined: Sun Jul 24, 2011 11:21 pm

Re: Feature suggestion: An option to set crop offsets in AVC and HEVC video streams

Post by Woodstock » Fri Nov 12, 2021 1:14 am

Probably not going to see video encoding in MakeMKV. Besides being very slow, it is probably out of scope of what the author intends MakeMKV to be.

Not to mention that some videos have variable aspect ratios, which confuse the hell out of video encoders. And some video uses the letterbox area for subtitles.

Manipulating JUST the header may be simple, but also a lot easier after the video is off the disk.

Post Reply