Class: Mediainfo::VideoStream

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

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)


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

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

#fpsObject Also known as: framerate



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

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

#frame_sizeObject



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

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

#interlaced?Boolean

Returns:

  • (Boolean)


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

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

#max_fpsObject Also known as: max_framerate



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

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

#min_fpsObject Also known as: min_framerate



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

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

#progressive?Boolean

Returns:

  • (Boolean)


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

def progressive?; video? and not interlaced? end

#vbr?Boolean

Returns:

  • (Boolean)


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

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