We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e6ec7 commit 0c60913Copy full SHA for 0c60913
lib/ffmpeg/movie.rb
@@ -62,7 +62,7 @@ def initialize(paths, analyzeduration = 15000000, probesize=15000000 )
62
@duration = 0
63
else
64
video_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'video' }
65
- audio_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'audio' and stream[:codec_name] }
+ audio_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'audio' and stream[:codec_name] != 'none' }
66
67
data_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'data' }
68
0 commit comments