|
|
|
|
@ -202,15 +202,12 @@ class MediaInfo:
|
|
|
|
|
|
|
|
|
|
self.keep_display_aspect = 0.95 < self.resolution.ratio / self.display_aspect_ratio.ratio < 1.05
|
|
|
|
|
|
|
|
|
|
if not self.keep_display_aspect:
|
|
|
|
|
if self.keep_display_aspect:
|
|
|
|
|
self.display_width = float(self.resolution.width)
|
|
|
|
|
self.pixel_aspect_ratio = Ratio(1, 1)
|
|
|
|
|
else:
|
|
|
|
|
self.display_width = self.resolution.height * self.display_aspect_ratio.ratio
|
|
|
|
|
self.pixel_aspect_ratio = self.display_aspect_ratio
|
|
|
|
|
else:
|
|
|
|
|
self.display_width = float(self.resolution.width)
|
|
|
|
|
self.pixel_aspect_ratio = Ratio(
|
|
|
|
|
self.display_aspect_ratio.x,
|
|
|
|
|
self.resolution.width
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def output_bitrate(self) -> int:
|
|
|
|
|
|