Class: shaka.transmuxer.H264

Constructor

new H264()

Source:

Members

NALU_TYPE_AUD_ :number

NALU type for Access Unit Delimiter (AUD) for H.264.
Type:
  • number
Source:

NALU_TYPE_FILLER_DATA_ :number

NALU type for Filler Data for H.264.
Type:
  • number
Source:

NALU_TYPE_IDR_ :number

NALU type for Instantaneous Decoder Refresh (IDR) for H.264.
Type:
  • number
Source:

NALU_TYPE_NDR_ :number

NALU type for NDR for H.264.
Type:
  • number
Source:

NALU_TYPE_PPS_ :number

NALU type for Picture Parameter Set (PPS) for H.264.
Type:
  • number
Source:

NALU_TYPE_SEI_ :number

NALU type for Supplemental Enhancement Information (SEI) for H.264.
Type:
  • number
Source:

NALU_TYPE_SPS_ :number

NALU type for Sequence Parameter Set (SPS) for H.264.
Type:
  • number
Source:

PROFILES_WITH_OPTIONAL_SPS_DATA_ :Array.<number>

Values of profile_idc that indicate additional fields are included in the SPS. see Recommendation ITU-T H.264 (4/2013) 7.3.2.1.1 Sequence parameter set data syntax
Type:
  • Array.<number>
Source:

Methods

parseFrame(nalusnon-null) → {?{data: !Uint8Array, isKeyframe: boolean}}

Parameters:
Name Type Description
nalus Array.<shaka.extern.VideoNalu>
Source:
Returns:
Type
?{data: !Uint8Array, isKeyframe: boolean}

parseInfo(nalusnon-null) → {?{height: number, width: number, videoConfig: !Uint8Array, hSpacing: number, vSpacing: number}}

Read a sequence parameter set and return some interesting video properties. A sequence parameter set is the H264 metadata that describes the properties of upcoming video frames.
Parameters:
Name Type Description
nalus Array.<shaka.extern.VideoNalu>
Source:
Returns:
Type
?{height: number, width: number, videoConfig: !Uint8Array, hSpacing: number, vSpacing: number}