mkvtoolnix/tests/test-277display_dimensions_fixing_aspect_ratio_usage.rb
Moritz Bunkus 35b1bb1771 Fix DisplayWidth/Height values that are used for aspect ratio storage only
Some muxers (x264) only use the quotient of DisplayWidth/Height for
storing the aspect ratio and make the actual values very
small (e.g. 16x9 or 4x3). This is bad for demuxers that actually
follow the spec and use these values as the intended display
width/height in pixels.

So re-calculate sensible values for DisplayWidht & DisplayHeight based
on the values of PixelWidth & PixelHeight and the quotient
DisplayWidth / DisplayHeight.
2010-07-18 20:21:53 +02:00

13 lines
328 B
Ruby

#!/usr/bin/ruby -w
class T_277display_dimensions_fixing_aspect_ratio_usage < Test
def description
return "mkvmerge / fixing DisplayWidth/Height containing aspect ratio only"
end
def run
%w{ac3.mkv ar.mkv Handbrake-3441.mkv}.collect { |file| merge "data/mkv/aspect_ratio/#{file}" ; hash_tmp }.join "-"
end
end