File: test-0380split_frames.rb

package info (click to toggle)
mkvtoolnix 97.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 60,284 kB
  • sloc: cpp: 217,034; ruby: 11,453; xml: 8,125; ansic: 6,885; sh: 5,274; python: 1,041; perl: 191; makefile: 113; awk: 16; javascript: 4
file content (14 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/ruby -w

# T_380split_frames
describe "mkvmerge / splitting by frames/fields"

src = "data/avi/v-h264-aac.avi"
[84, 85, 86].each do |frames|
  test "#{src} split after #{frames} frames" do
    merge "--split frames:#{frames} #{src}", :output => "#{tmp}-%02d"
    result = [ hash_file("#{tmp}-01"), hash_file("#{tmp}-02"), File.exist?("#{tmp}-03") ? "bad" : "ok" ].join('+')
    unlink_tmp_files
    result
  end
end