Class: Mediainfo::VideoStream
Instance Method Summary
collapse
Methods inherited from Stream
#[], #[]=, create, inherited, #initialize
Instance Method Details
#cbr? ⇒ Boolean
196
|
# File 'lib/mediainfo.rb', line 196
def cbr?; video? and "Constant" == bit_rate_mode; end
|
#fps ⇒ Object
Also known as:
framerate
229
|
# File 'lib/mediainfo.rb', line 229
def fps; frame_rate[/[\d.]+/].to_f if frame_rate; end
|
#frame_size ⇒ Object
250
|
# File 'lib/mediainfo.rb', line 250
def frame_size; "#{width}x#{height}" if width or height; end
|
#interlaced? ⇒ Boolean
201
|
# File 'lib/mediainfo.rb', line 201
def interlaced?; video? and "Interlaced" == scan_type; end
|
#max_fps ⇒ Object
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_fps ⇒ Object
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
202
|
# File 'lib/mediainfo.rb', line 202
def progressive?; video? and not interlaced? end
|
#vbr? ⇒ Boolean
197
|
# File 'lib/mediainfo.rb', line 197
def vbr?; video? and not cbr?; end
|