Class: FfmpegWrapper::Stream

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/ffmpeg_wrapper/stream.rb

Instance Method Summary collapse

Instance Method Details

#audio?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/ffmpeg_wrapper/stream.rb', line 7

def audio?
  codec_type == 'audio' if codec_type
end

#video?Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/ffmpeg_wrapper/stream.rb', line 3

def video?
  codec_type == 'video' if codec_type
end