mkvtoolnix/tests/test-0050X_ass.rb

19 lines
424 B
Ruby
Raw Normal View History

2004-09-29 09:41:22 +00:00
#!/usr/bin/ruby -w
2021-07-07 14:06:32 +00:00
class T_0050X_ass < Test
2004-09-29 09:41:22 +00:00
def description
return "mkvextract / ASS subtitles / out(ASS)"
end
def run
my_hash = hash_file("data/subtitles/ssa-ass/11.Magyar.ass")
2004-09-29 09:41:22 +00:00
my_tmp = tmp
merge("--sub-charset 0:ISO-8859-1 data/subtitles/ssa-ass/11.Magyar.ass")
2004-09-29 09:41:22 +00:00
@tmp = nil
xtr_tracks(my_tmp, "-c ISO-8859-1 0:#{tmp}")
2004-09-29 09:41:22 +00:00
File.unlink(my_tmp)
return my_hash + "-" + hash_tmp
end
end