MediaArea / MediaInfoLib

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://mediaarea.net/MediaInfo
BSD 2-Clause "Simplified" License
636 stars 175 forks source link

Improved precision in fractional types in core me #2070

Open plondino opened 5 months ago

plondino commented 5 months ago

I have a QuickTime file where the PAR is 320/253 (see attached) and there’s no easy way to reconstruct the original precision since MediaInfo only reports 1.265. I know the file is supposed to be exactly 16:9 (1.7777...) but I can only get the calculated value of 1.778027777777778. Ideally MediaInfo would:

a. Fix the PAR to display its full precision as a fraction type b. Support more comprehensive reworking of the underlying library to store and display more precise values for core media types (frame rate, aspect ratios, etc).

Related to a comment on https://github.com/MediaArea/MediaInfoLib/issues/1880 and also https://github.com/MediaArea/MediaInfo/issues/577

Width                                    : 1 012 pixels
Height                                   : 720
Height                                   : 720 pixels
Stored_Width                             : 1024
Sampled_Width                            : 1012
Sampled_Height                           : 720
Pixel aspect ratio                       : 1.265
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Untitled