MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

Matroska video pixel height and width with PixelCrop options

Open bendikro opened this issue 1 year ago • 8 comments

For a Matroska file with video width 1920 and height 1080, mediainfo reports:

Width               : 1 920 pixels
Height              : 1 080 pixels

But for the same file with the pixel crop attributes (PixelCropBottom, PixelCropTop, PixelCropLeft, PixelCropRight) set to 134,134,4,2, mediainfo reports the following:

Width               : 1 914 pixels
Original width      : 1 920 pixels
Height              : 812 pixels
Original height     : 1 080 pixels

This is confusing (and misleading), as the width and height reported differs between two video files where the actual width and height of the video are exactly the same. It would be much better to always report the same width, and instead have a "cropped width/height", like this:

Width               : 1 920 pixels
Cropped width       : 1 914 pixels
Height              : 1 080 pixels
Cropped height      : 812 pixels

bendikro avatar May 21 '23 09:05 bendikro