mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
ffb32a657b
The features removed are: * mkvmerge: the options `--identify-verbose` (and its counterpart `-I`), `--identify-for-gui`, `--identify-for-mmg` and `--identification-format verbose-text` * all command line tools: the old, proprietary format used for option files * all command line tools: support for passing command line options via the environment variables `MKVTOOLNIX_OPTIONS`, `MKVEXTRACT_OPTIONS`, `MKVINFO_OPTIONS`, `MKVMERGE_OPTIONS`, and `MKVPROPEDIT_OPTIONS`
33 lines
932 B
Ruby
Executable File
33 lines
932 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
class T_255aspect_ratio_display_dimensions < Test
|
|
def description
|
|
"mkvmerge / Handling of aspect ratio & display dimensions"
|
|
end
|
|
|
|
def get_display_dimensions file_name
|
|
JSON.load(`mkvmerge -J "#{file_name}"`)["tracks"][0]["properties"]["display_dimensions"]
|
|
end
|
|
|
|
def run_test_with_args initial_args
|
|
merge "#{initial_args} -A data/mp4/rain_800.mp4"
|
|
result = get_display_dimensions tmp
|
|
[ "", "--display-dimensions 0:1212x2424", "--aspect-ratio 0:5", "--aspect-ratio-factor 0:5" ].each_with_index do |args, idx|
|
|
merge "#{tmp}#{idx}", "#{args} #{tmp}"
|
|
result += "-" + get_display_dimensions("#{tmp}#{idx}")
|
|
end
|
|
|
|
result
|
|
end
|
|
|
|
def run
|
|
result = ""
|
|
|
|
[ "--display-dimensions 0:4254x815", "--aspect-ratio 0:10", "--aspect-ratio-factor 0:10" ].each_with_index do |args, idx|
|
|
result += "#{idx}[" + run_test_with_args(args) + "]"
|
|
end
|
|
|
|
result
|
|
end
|
|
end
|