Class: Mediainfo::VideoStream

Inherits:
Stream
  • Object
show all
Defined in:
lib/mediainfo.rb

Instance Attribute Summary

Attributes inherited from Stream

#parsed_response

Instance Method Summary collapse

Methods inherited from Stream

#[], #[]=, create, inherited, #initialize

Constructor Details

This class inherits a constructor from Mediainfo::Stream

Instance Method Details

#cbr?Boolean

Returns:

  • (Boolean)


198
# File 'lib/mediainfo.rb', line 198

def cbr?; video? and "Constant" == bit_rate_mode; end

#fpsObject Also known as: framerate



231
# File 'lib/mediainfo.rb', line 231

def fps; frame_rate[/[\d.]+/].to_f if frame_rate; end

#frame_sizeObject



252
# File 'lib/mediainfo.rb', line 252

def frame_size; "#{width}x#{height}" if width or height; end

#interlaced?Boolean

Returns:

  • (Boolean)


203
# File 'lib/mediainfo.rb', line 203

def interlaced?;  video? and "Interlaced" == scan_type; end

#max_fpsObject Also known as: max_framerate



239
# File 'lib/mediainfo.rb', line 239

def max_fps; maximum_frame_rate[/[\d.]+/].to_f if video?; end

#min_fpsObject Also known as: min_framerate



235
# File 'lib/mediainfo.rb', line 235

def min_fps; minimum_frame_rate[/[\d.]+/].to_f if video?; end

#progressive?Boolean

Returns:

  • (Boolean)


204
# File 'lib/mediainfo.rb', line 204

def progressive?; video? and not interlaced? end

#vbr?Boolean

Returns:

  • (Boolean)


199
# File 'lib/mediainfo.rb', line 199

def vbr?; video? and not cbr?; end