mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
b519eadbd0
Implements #2698.
26 lines
655 B
Ruby
Executable File
26 lines
655 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_684deterministic
|
|
describe "mkvmerge / deterministic option"
|
|
|
|
def doit(seed)
|
|
merge "--deterministic #{seed} data/mp4/3covers.mp4", :no_variable_data => false, :no_result => true
|
|
|
|
json = identify_json(tmp)
|
|
uids = [
|
|
json["container"]["properties"]["segment_uid"],
|
|
json["attachments"].map { |a| a["properties"]["uid"] },
|
|
json["tracks"] .map { |t| t["properties"]["uid"] },
|
|
].flatten.map(&:to_s).join('+')
|
|
|
|
clean_tmp
|
|
|
|
return uids
|
|
end
|
|
|
|
test("SomeSeed 1") { doit("SomeSeed") }
|
|
test("SomeSeed 2") { doit("SomeSeed") }
|
|
|
|
test("AnotherSeed 1") { doit("AnotherSeed") }
|
|
test("AnotherSeed 2") { doit("AnotherSeed") }
|