Class: MediaInfo::VideoStream

Inherits:
Stream
  • Object
show all
Defined in:
lib/media_info/streams/video.rb

Constant Summary collapse

TYPE =
:video

Instance Attribute Summary collapse

Attributes inherited from Stream

#_others, #codec, #codec_extensions, #codec_id, #codec_id_description, #codec_id_hint, #codec_id_info, #codec_id_string, #codec_id_url, #codec_string, #count, #first_packet_order, #format, #format_commercial, #format_commercial_if_any, #format_compression, #format_extensions, #format_info, #format_profile, #format_settings, #format_url, #format_version, #id, #id_string, #inform, #internet_media_type, #status, #stream_count, #stream_kind, #stream_kind_id, #stream_kind_pos, #stream_kind_string, #stream_order, #stream_size, #stream_size_proportion, #stream_size_string, #stream_size_string1, #stream_size_string2, #stream_size_string3, #stream_size_string4, #stream_size_string5, #unique_id, #unique_id_string

Instance Method Summary collapse

Methods inherited from Stream

#initialize, #raw_attributes

Constructor Details

This class inherits a constructor from MediaInfo::Stream

Instance Attribute Details

#bit_depthObject

Returns the value of attribute bit_depth.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_depth
  @bit_depth
end

#bit_depth_stringObject (readonly)

Returns the value of attribute bit_depth_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_depth_string
  @bit_depth_string
end

#bit_rateObject

Returns the value of attribute bit_rate.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate
  @bit_rate
end

#bit_rate_encodedObject (readonly)

Returns the value of attribute bit_rate_encoded.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_encoded
  @bit_rate_encoded
end

#bit_rate_encoded_stringObject (readonly)

Returns the value of attribute bit_rate_encoded_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_encoded_string
  @bit_rate_encoded_string
end

#bit_rate_maximumObject

Returns the value of attribute bit_rate_maximum.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_maximum
  @bit_rate_maximum
end

#bit_rate_maximum_stringObject (readonly)

Returns the value of attribute bit_rate_maximum_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_maximum_string
  @bit_rate_maximum_string
end

#bit_rate_minimumObject

Returns the value of attribute bit_rate_minimum.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_minimum
  @bit_rate_minimum
end

#bit_rate_minimum_stringObject (readonly)

Returns the value of attribute bit_rate_minimum_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_minimum_string
  @bit_rate_minimum_string
end

#bit_rate_modeObject (readonly)

Returns the value of attribute bit_rate_mode.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_mode
  @bit_rate_mode
end

#bit_rate_mode_stringObject (readonly)

Returns the value of attribute bit_rate_mode_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_mode_string
  @bit_rate_mode_string
end

#bit_rate_nominalObject

Returns the value of attribute bit_rate_nominal.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_nominal
  @bit_rate_nominal
end

#bit_rate_nominal_stringObject (readonly)

Returns the value of attribute bit_rate_nominal_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_nominal_string
  @bit_rate_nominal_string
end

#bit_rate_stringObject (readonly)

Returns the value of attribute bit_rate_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bit_rate_string
  @bit_rate_string
end

#bits_pixel_frameObject (readonly)

Returns the value of attribute bits_pixel_frame.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def bits_pixel_frame
  @bits_pixel_frame
end

#chroma_subsamplingObject (readonly)

Returns the value of attribute chroma_subsampling.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def chroma_subsampling
  @chroma_subsampling
end

#color_spaceObject (readonly)

Returns the value of attribute color_space.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def color_space
  @color_space
end

#colorimetryObject (readonly)

Returns the value of attribute colorimetry.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def colorimetry
  @colorimetry
end

#compression_modeObject (readonly)

Returns the value of attribute compression_mode.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def compression_mode
  @compression_mode
end

#compression_mode_stringObject (readonly)

Returns the value of attribute compression_mode_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def compression_mode_string
  @compression_mode_string
end

#compression_ratioObject (readonly)

Returns the value of attribute compression_ratio.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def compression_ratio
  @compression_ratio
end

#display_aspect_ratioObject (readonly)

Returns the value of attribute display_aspect_ratio.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def display_aspect_ratio
  @display_aspect_ratio
end

#display_aspect_ratio_stringObject (readonly)

Returns the value of attribute display_aspect_ratio_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def display_aspect_ratio_string
  @display_aspect_ratio_string
end

#durationObject

Returns the value of attribute duration.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration
  @duration
end

#duration_stringObject (readonly)

Returns the value of attribute duration_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string
  @duration_string
end

#duration_string1Object (readonly)

Returns the value of attribute duration_string1.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string1
  @duration_string1
end

#duration_string2Object (readonly)

Returns the value of attribute duration_string2.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string2
  @duration_string2
end

#duration_string3Object (readonly)

Returns the value of attribute duration_string3.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string3
  @duration_string3
end

#duration_string4Object (readonly)

Returns the value of attribute duration_string4.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string4
  @duration_string4
end

#duration_string5Object (readonly)

Returns the value of attribute duration_string5.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def duration_string5
  @duration_string5
end

#encoded_dateObject

Returns the value of attribute encoded_date.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def encoded_date
  @encoded_date
end

#format_settings_bvopObject (readonly)

Returns the value of attribute format_settings_bvop.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_bvop
  @format_settings_bvop
end

#format_settings_bvop_stringObject (readonly)

Returns the value of attribute format_settings_bvop_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_bvop_string
  @format_settings_bvop_string
end

#format_settings_cabacObject (readonly)

Returns the value of attribute format_settings_cabac.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_cabac
  @format_settings_cabac
end

#format_settings_cabac_stringObject (readonly)

Returns the value of attribute format_settings_cabac_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_cabac_string
  @format_settings_cabac_string
end

#format_settings_frame_modeObject (readonly)

Returns the value of attribute format_settings_frame_mode.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_frame_mode
  @format_settings_frame_mode
end

#format_settings_frame_mode_stringObject (readonly)

Returns the value of attribute format_settings_frame_mode_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_frame_mode_string
  @format_settings_frame_mode_string
end

#format_settings_gmcObject (readonly)

Returns the value of attribute format_settings_gmc.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_gmc
  @format_settings_gmc
end

#format_settings_gmc_stringObject (readonly)

Returns the value of attribute format_settings_gmc_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_gmc_string
  @format_settings_gmc_string
end

#format_settings_gopObject (readonly)

Returns the value of attribute format_settings_gop.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_gop
  @format_settings_gop
end

#format_settings_gop_stringObject (readonly)

Returns the value of attribute format_settings_gop_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_gop_string
  @format_settings_gop_string
end

#format_settings_matrixObject (readonly)

Returns the value of attribute format_settings_matrix.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_matrix
  @format_settings_matrix
end

#format_settings_matrix_stringObject (readonly)

Returns the value of attribute format_settings_matrix_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_matrix_string
  @format_settings_matrix_string
end

#format_settings_pulldownObject (readonly)

Returns the value of attribute format_settings_pulldown.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_pulldown
  @format_settings_pulldown
end

#format_settings_pulldown_stringObject (readonly)

Returns the value of attribute format_settings_pulldown_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_pulldown_string
  @format_settings_pulldown_string
end

#format_settings_qpelObject (readonly)

Returns the value of attribute format_settings_qpel.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_qpel
  @format_settings_qpel
end

#format_settings_qpel_stringObject (readonly)

Returns the value of attribute format_settings_qpel_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_qpel_string
  @format_settings_qpel_string
end

#format_settings_ref_framesObject (readonly)

Returns the value of attribute format_settings_ref_frames.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_ref_frames
  @format_settings_ref_frames
end

#format_settings_ref_frames_stringObject (readonly)

Returns the value of attribute format_settings_ref_frames_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_ref_frames_string
  @format_settings_ref_frames_string
end

#format_settings_wrappingObject (readonly)

Returns the value of attribute format_settings_wrapping.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def format_settings_wrapping
  @format_settings_wrapping
end

#frame_countObject (readonly)

Returns the value of attribute frame_count.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_count
  @frame_count
end

#frame_rateObject

Returns the value of attribute frame_rate.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate
  @frame_rate
end

#frame_rate_maximumObject

Returns the value of attribute frame_rate_maximum.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_maximum
  @frame_rate_maximum
end

#frame_rate_maximum_stringObject (readonly)

Returns the value of attribute frame_rate_maximum_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_maximum_string
  @frame_rate_maximum_string
end

#frame_rate_minimumObject

Returns the value of attribute frame_rate_minimum.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_minimum
  @frame_rate_minimum
end

#frame_rate_minimum_stringObject (readonly)

Returns the value of attribute frame_rate_minimum_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_minimum_string
  @frame_rate_minimum_string
end

#frame_rate_modeObject (readonly)

Returns the value of attribute frame_rate_mode.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_mode
  @frame_rate_mode
end

#frame_rate_mode_stringObject (readonly)

Returns the value of attribute frame_rate_mode_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_mode_string
  @frame_rate_mode_string
end

#frame_rate_nominalObject

Returns the value of attribute frame_rate_nominal.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_nominal
  @frame_rate_nominal
end

#frame_rate_nominal_stringObject (readonly)

Returns the value of attribute frame_rate_nominal_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_nominal_string
  @frame_rate_nominal_string
end

#frame_rate_stringObject (readonly)

Returns the value of attribute frame_rate_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def frame_rate_string
  @frame_rate_string
end

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def height
  @height
end

#height_stringObject (readonly)

Returns the value of attribute height_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def height_string
  @height_string
end

#languageObject (readonly)

Returns the value of attribute language.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language
  @language
end

#language_moreObject (readonly)

Returns the value of attribute language_more.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_more
  @language_more
end

#language_stringObject (readonly)

Returns the value of attribute language_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_string
  @language_string
end

#language_string1Object (readonly)

Returns the value of attribute language_string1.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_string1
  @language_string1
end

#language_string2Object (readonly)

Returns the value of attribute language_string2.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_string2
  @language_string2
end

#language_string3Object (readonly)

Returns the value of attribute language_string3.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_string3
  @language_string3
end

#language_string4Object (readonly)

Returns the value of attribute language_string4.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def language_string4
  @language_string4
end

#pixel_aspect_ratioObject (readonly)

Returns the value of attribute pixel_aspect_ratio.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def pixel_aspect_ratio
  @pixel_aspect_ratio
end

#pixel_aspect_ratio_stringObject (readonly)

Returns the value of attribute pixel_aspect_ratio_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def pixel_aspect_ratio_string
  @pixel_aspect_ratio_string
end

#resolutionObject

Returns the value of attribute resolution.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def resolution
  @resolution
end

#resolution_stringObject (readonly)

Returns the value of attribute resolution_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def resolution_string
  @resolution_string
end

#rotationObject (readonly)

Returns the value of attribute rotation.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def rotation
  @rotation
end

#rotation_stringObject (readonly)

Returns the value of attribute rotation_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def rotation_string
  @rotation_string
end

#scan_orderObject (readonly)

Returns the value of attribute scan_order.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def scan_order
  @scan_order
end

#scan_order_stringObject (readonly)

Returns the value of attribute scan_order_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def scan_order_string
  @scan_order_string
end

#scan_typeObject (readonly)

Returns the value of attribute scan_type.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def scan_type
  @scan_type
end

#scan_type_stringObject (readonly)

Returns the value of attribute scan_type_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def scan_type_string
  @scan_type_string
end

#standardObject (readonly)

Returns the value of attribute standard.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def standard
  @standard
end

#tagged_dateObject

Returns the value of attribute tagged_date.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def tagged_date
  @tagged_date
end

#widthObject

Returns the value of attribute width.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def width
  @width
end

#width_stringObject (readonly)

Returns the value of attribute width_string.



7
8
9
# File 'lib/media_info/streams/video.rb', line 7

def width_string
  @width_string
end

Instance Method Details

#duration_secondsObject



92
93
94
# File 'lib/media_info/streams/video.rb', line 92

def duration_seconds
  duration / 1000.0
end