ExMP4.Box.Sidx (MP4 Reader and Writer v0.11.0)
View SourceA module representing sidx
box.
This box provides a compact index of one media stream within the media segment to which it applies
Summary
Functions
Calculates the bitrate (bps) of the segment.
Gets the total duration of the segment.
Gets the total size of the segment.
Types
@type t() :: %ExMP4.Box.Sidx{ earliest_presentation_time: integer(), entries: [ %{ reference_type: integer(), referenced_size: integer(), subsegment_duration: integer(), starts_with_sap: integer(), sap_type: integer(), sap_delta_time: integer() } ], first_offset: integer(), flags: integer(), reference_id: integer() | nil, timescale: integer() | nil, version: integer() }
Functions
Calculates the bitrate (bps) of the segment.
Gets the total duration of the segment.
If unit
is provided, it will convert the duration to that unit.
Gets the total size of the segment.