MediaArea/MediaInfoLib

Improved precision in fractional types in core me

plondino opened this issue · 0 comments

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 #1880 and also MediaArea/MediaInfo#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