gems/streamio-ffmpeg/lib/ffmpeg/movie.rb in apple-tv-converter-0.3.0 vs gems/streamio-ffmpeg/lib/ffmpeg/movie.rb in apple-tv-converter-0.3.1
- old
+ new
@@ -131,10 +131,10 @@
def load_all_streams(ffmpeg_output)
@streams = ffmpeg_output.split(/.*? (?=(?:Chapter|Stream))/).map do |line|
if line =~ /^Stream #\d+:\d+/
begin
stream = FFMPEG::Stream.new
- bogus, input_number, stream_number, language, type = line.match(/Stream #(\d+):(\d+)(?:\((.*?)\))?:\s*(\w+):(.*)\n/).to_a
+ bogus, input_number, stream_number, language, type = line.match(/Stream #(\d+):(\d+)(?:(?:\[|\()(.*?)(?:\]|\)))?:\s*(\w+):(.*)\n/).to_a
stream.send(:input_number=, input_number)
stream.send(:stream_number=, stream_number)
if language
language_code = language.match(/(?<=\[)\w+(?=\])/)
\ No newline at end of file