mkvtoolnix/tests/test-329X_timecodes_v2.rb
Moritz Bunkus 0d158357be mkvextract: accept timestamps_v2 in addition to timecodes_v2
Part of an ongoing effort to replace the use of the term `timecode`
with `timestamp`. Timecodes have a very specific meaning in the
audio/video world, and it's not what MKVToolNix has been using the
term for.
2017-10-04 14:53:09 +02:00

18 lines
418 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_329X_timecodes_v2
describe "mkvextract / timecodes_v2"
test "timestamp extraction" do
(0..9).collect do |track_id|
sys "../src/mkvextract timecodes_v2 data/mkv/complex.mkv #{track_id}:#{tmp}"
a = hash_tmp
sys "../src/mkvextract timestamps_v2 data/mkv/complex.mkv #{track_id}:#{tmp}"
b = hash_tmp
fail "timecodes_v2 <> timestamps_v2" if a != b
a
end.join('-')
end