Class: MediaInfo::AudioStream
- Defined in:
- lib/media_info/streams/audio.rb
Constant Summary collapse
- TYPE =
:audio
Instance Attribute Summary collapse
-
#bit_rate ⇒ Object
readonly
Returns the value of attribute bit_rate.
-
#bit_rate_maximum ⇒ Object
readonly
Returns the value of attribute bit_rate_maximum.
-
#bit_rate_maximum_string ⇒ Object
readonly
Returns the value of attribute bit_rate_maximum_string.
-
#bit_rate_minimum ⇒ Object
readonly
Returns the value of attribute bit_rate_minimum.
-
#bit_rate_minimum_string ⇒ Object
readonly
Returns the value of attribute bit_rate_minimum_string.
-
#bit_rate_mode ⇒ Object
readonly
Returns the value of attribute bit_rate_mode.
-
#bit_rate_mode_string ⇒ Object
readonly
Returns the value of attribute bit_rate_mode_string.
-
#bit_rate_nominal ⇒ Object
readonly
Returns the value of attribute bit_rate_nominal.
-
#bit_rate_nominal_string ⇒ Object
readonly
Returns the value of attribute bit_rate_nominal_string.
-
#bit_rate_string ⇒ Object
readonly
Returns the value of attribute bit_rate_string.
-
#channel_layout ⇒ Object
readonly
Returns the value of attribute channel_layout.
-
#channel_layout_id ⇒ Object
readonly
Returns the value of attribute channel_layout_id.
-
#channel_positions ⇒ Object
readonly
Returns the value of attribute channel_positions.
-
#channel_positions_string2 ⇒ Object
readonly
Returns the value of attribute channel_positions_string2.
-
#channel_s ⇒ Object
(also: #channels)
readonly
Returns the value of attribute channel_s.
-
#channel_s_string ⇒ Object
(also: #channels_string)
readonly
Returns the value of attribute channel_s_string.
-
#compression_mode ⇒ Object
readonly
Returns the value of attribute compression_mode.
-
#compression_mode_string ⇒ Object
readonly
Returns the value of attribute compression_mode_string.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#duration_string ⇒ Object
readonly
Returns the value of attribute duration_string.
-
#duration_string1 ⇒ Object
readonly
Returns the value of attribute duration_string1.
-
#duration_string2 ⇒ Object
readonly
Returns the value of attribute duration_string2.
-
#duration_string3 ⇒ Object
readonly
Returns the value of attribute duration_string3.
-
#duration_string4 ⇒ Object
readonly
Returns the value of attribute duration_string4.
-
#duration_string5 ⇒ Object
readonly
Returns the value of attribute duration_string5.
-
#encoded_date ⇒ Object
readonly
Returns the value of attribute encoded_date.
-
#frame_count ⇒ Object
readonly
Returns the value of attribute frame_count.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
-
#resolution_string ⇒ Object
readonly
Returns the value of attribute resolution_string.
-
#sampling_rate ⇒ Object
readonly
Returns the value of attribute sampling_rate.
-
#sampling_rate_string ⇒ Object
readonly
Returns the value of attribute sampling_rate_string.
-
#tagged_date ⇒ Object
readonly
Returns the value of attribute tagged_date.
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
Constructor Details
This class inherits a constructor from MediaInfo::Stream
Instance Attribute Details
#bit_rate ⇒ Object
Returns the value of attribute bit_rate.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate @bit_rate end |
#bit_rate_maximum ⇒ Object
Returns the value of attribute bit_rate_maximum.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_maximum @bit_rate_maximum end |
#bit_rate_maximum_string ⇒ Object (readonly)
Returns the value of attribute bit_rate_maximum_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_maximum_string @bit_rate_maximum_string end |
#bit_rate_minimum ⇒ Object
Returns the value of attribute bit_rate_minimum.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_minimum @bit_rate_minimum end |
#bit_rate_minimum_string ⇒ Object (readonly)
Returns the value of attribute bit_rate_minimum_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_minimum_string @bit_rate_minimum_string end |
#bit_rate_mode ⇒ Object (readonly)
Returns the value of attribute bit_rate_mode.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_mode @bit_rate_mode end |
#bit_rate_mode_string ⇒ Object (readonly)
Returns the value of attribute bit_rate_mode_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_mode_string @bit_rate_mode_string end |
#bit_rate_nominal ⇒ Object
Returns the value of attribute bit_rate_nominal.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_nominal @bit_rate_nominal end |
#bit_rate_nominal_string ⇒ Object (readonly)
Returns the value of attribute bit_rate_nominal_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_nominal_string @bit_rate_nominal_string end |
#bit_rate_string ⇒ Object (readonly)
Returns the value of attribute bit_rate_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def bit_rate_string @bit_rate_string end |
#channel_layout ⇒ Object (readonly)
Returns the value of attribute channel_layout.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_layout @channel_layout end |
#channel_layout_id ⇒ Object (readonly)
Returns the value of attribute channel_layout_id.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_layout_id @channel_layout_id end |
#channel_positions ⇒ Object (readonly)
Returns the value of attribute channel_positions.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_positions @channel_positions end |
#channel_positions_string2 ⇒ Object (readonly)
Returns the value of attribute channel_positions_string2.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_positions_string2 @channel_positions_string2 end |
#channel_s ⇒ Object Also known as: channels
Returns the value of attribute channel_s.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_s @channel_s end |
#channel_s_string ⇒ Object (readonly) Also known as: channels_string
Returns the value of attribute channel_s_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def channel_s_string @channel_s_string end |
#compression_mode ⇒ Object (readonly)
Returns the value of attribute compression_mode.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def compression_mode @compression_mode end |
#compression_mode_string ⇒ Object (readonly)
Returns the value of attribute compression_mode_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def compression_mode_string @compression_mode_string end |
#duration ⇒ Object
Returns the value of attribute duration.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration @duration end |
#duration_string ⇒ Object (readonly)
Returns the value of attribute duration_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string @duration_string end |
#duration_string1 ⇒ Object (readonly)
Returns the value of attribute duration_string1.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string1 @duration_string1 end |
#duration_string2 ⇒ Object (readonly)
Returns the value of attribute duration_string2.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string2 @duration_string2 end |
#duration_string3 ⇒ Object (readonly)
Returns the value of attribute duration_string3.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string3 @duration_string3 end |
#duration_string4 ⇒ Object (readonly)
Returns the value of attribute duration_string4.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string4 @duration_string4 end |
#duration_string5 ⇒ Object (readonly)
Returns the value of attribute duration_string5.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def duration_string5 @duration_string5 end |
#encoded_date ⇒ Object
Returns the value of attribute encoded_date.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def encoded_date @encoded_date end |
#frame_count ⇒ Object
Returns the value of attribute frame_count.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def frame_count @frame_count end |
#resolution ⇒ Object
Returns the value of attribute resolution.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def resolution @resolution end |
#resolution_string ⇒ Object (readonly)
Returns the value of attribute resolution_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def resolution_string @resolution_string end |
#sampling_rate ⇒ Object
Returns the value of attribute sampling_rate.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def sampling_rate @sampling_rate end |
#sampling_rate_string ⇒ Object (readonly)
Returns the value of attribute sampling_rate_string.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def sampling_rate_string @sampling_rate_string end |
#tagged_date ⇒ Object
Returns the value of attribute tagged_date.
7 8 9 |
# File 'lib/media_info/streams/audio.rb', line 7 def tagged_date @tagged_date end |
Instance Method Details
#duration_seconds ⇒ Object
43 44 45 |
# File 'lib/media_info/streams/audio.rb', line 43 def duration_seconds duration / 1000.0 end |