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