Documentation ¶
Overview ¶
Package annexb - universal for H264 and H265
Index ¶
Constants ¶
View Source
const StartCode = "\x00\x00\x00\x01"
Variables ¶
This section is empty.
Functions ¶
func DecodeAVCC ¶
func DecodeAVCCWithAUD ¶
DecodeAVCCWithAUD - AUD doesn't important for FFmpeg, but important for Safari
func EncodeToAVCC ¶
EncodeToAVCC will change original slice data! safeAppend should be used if original slice has useful data after end (part of other slice)
FFmpeg MPEG-TS: 00000001 AUD 00000001 SPS 00000001 PPS 000001 IFrame FFmpeg H264: 00000001 SPS 00000001 PPS 000001 IFrame 00000001 PFrame
func IndexFrame ¶
IndexFrame - get new frame start position in the AnnexB stream
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.