mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 12:53:50 +00:00
35b1bb1771
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.
13 lines
328 B
Ruby
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
|
|
|