mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
65e4d9c082
Implements the extraction part of #1189.
18 lines
388 B
Ruby
Executable File
18 lines
388 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
def doit file_name
|
|
test file_name do
|
|
merge file_name, output: "#{tmp}-1", keep_tmp: true
|
|
extract "#{tmp}-1", 0 => tmp
|
|
hash_tmp
|
|
end
|
|
end
|
|
|
|
# T_544X_webvtt
|
|
describe "mkvextract / WebVTT subtitles"
|
|
|
|
dir = "data/subtitles/webvtt"
|
|
|
|
(1..6).each { |idx| doit sprintf("%s/w3c-%03d.vtt", dir, idx) }
|
|
(1..2).each { |idx| doit sprintf("%s/mo-%03d.vtt", dir, idx) }
|