Anamorphic DVD - aspect ratio
#11
(2020-01-04, 17:49)mlaggner Wrote: myron has already implemented a fix for 3.1 - we will prefer the aspect ratio from mediainfo over the calculated one: https://gitlab.com/tinyMediaManager/tiny...cbe204d041

Just installed 3.1 - while this is now correctly picking up the aspect ratio flag from Mediainfo, it's also ignoring the crop values. In some cases there are movies with letterboxing or pillarboxing encoded into the file. Setting crop flags results in the correct detection of the visible picture dimensions within the video file within TinyMediaManager 3.1. However, that information is now not used to determine the aspect ratio.

See, for instance, this video, where it's encoded with 34 pixels and 36 pixels of black bars on top and bottom, and a 2 pixel bar on the right.

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 41 min
Bit rate                                 : 5 219 kb/s
Nominal bit rate                         : 5 500 kb/s
Width                                    : 1 918 pixels
Original width                           : 1 920 pixels
Height                                   : 1 010 pixels
Original height                          : 1 080 pixels
Display aspect ratio                     : 16:9

Display aspect ratio of the uncropped video is 16x9. Factoring in the crop values the actual aspect ratio is 1.9:1, or approximately 1.85:1. TinyMediaManager 3.1 shows this video as having a 1.78:1 aspect ratio.

You can use this formula to determine the correct aspect ratio, factoring in both the display aspect ratio and the pixel dimensions:

Display aspect ratio * (Width / Height) / (Original width / Original height)

That should account for scenarios where the pixel dimensions don't accurately capture the display aspect ratio, as well as for the crop values.

So, for instance, a video with these specs:

Width                                    : 696 pixels
Original width                           : 720 pixels
Height                                   : 480 pixels
Original height                          : 480 pixels
Display aspect ratio                     : 16:9

...would be correctly determined to have an aspect ratio of 1.72:1.
Reply


Messages In This Thread
Anamorphic DVD - aspect ratio - by mhendu - 2019-11-28, 02:01
RE: Anamorphic DVD - aspect ratio - by mhendu - 2019-11-28, 17:43
RE: Anamorphic DVD - aspect ratio - by myron - 2019-11-29, 09:35
RE: Anamorphic DVD - aspect ratio - by mhendu - 2019-11-29, 20:14
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-01-04, 00:20
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-01-04, 17:11
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-01-04, 18:38
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-01-05, 19:35
RE: Anamorphic DVD - aspect ratio - by myron - 2020-01-07, 16:03
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-05-26, 17:33
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-05-31, 17:23
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-06-10, 16:30
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-07-18, 09:06
RE: Anamorphic DVD - aspect ratio - by mhendu - 2020-09-24, 06:56
RE: Anamorphic DVD - aspect ratio - by myron - 2020-11-30, 21:06
RE: Anamorphic DVD - aspect ratio - by myron - 2020-12-01, 22:37


Logout Mark Read Team Forum Stats Members Help
Anamorphic DVD - aspect ratio0
This forum uses Lukasz Tkacz MyBB addons.