Anamorphic DVD - aspect ratio
#16
(2020-05-31, 10:45)mlaggner Wrote: sorry, but according to your examples, I cannot imagine how I should write code off it:

Post #1:
Quote:Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
we should use the display aspect ratio (this is what myron implemented)

Post #14:
Quote:Width                                    : 1 920 pixels
Height                                   : 802 pixels
Original height                          : 1 080 pixels
Display aspect ratio                     : 16:9 
we should NOT take the display ratio, BUT calculate it from original height/ width?
Quote:Width                                    : 672 pixels
Height                                   : 448 pixels
Display aspect ratio                     : 16:9
we could calculate from width/height OR take display aspect ratio?
Quote:Width                                    : 672 pixels
Original width                           : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
we should calculate with original width/height and NOT take display aspect ratio?

would be helpful if we get mediainfo XMLs for all these examples - according to these examples I cannot imagine how I should turn that into code

Use this formula:

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

That should account for all scenarios.
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.