mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 04:42:04 +00:00
0d158357be
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.
18 lines
418 B
Ruby
Executable File
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
|