16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/rvideo/tools/mp4creator.rb', line 16
def parse_result(result)
if m = /can't open file/.match(result)
raise TranscoderError::InvalidFile, "I/O error"
end
if m = /unknown file type/.match(result)
raise TranscoderError::InvalidFile, "I/O error"
end
if @options['output_file'] && !File.exist?(@options['output_file'])
raise TranscoderError::UnexpectedResult, "An unknown error has occured with mp4creator:#{result}"
end
@raw_metadata = result.empty? ? "No Results" : result
return true
end
|