avc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NaluStartCode = []byte{0x0, 0x0, 0x0, 0x1}
View Source
var NaluUintTypeMapping = map[uint8]string{
	1: "SLICE",
	5: "IDR",
	6: "SEI",
	7: "SPS",
	8: "PPS",
	9: "AUD",
}

Functions

func CaptureAVC

func CaptureAVC(w io.Writer, payload []byte) error

将rtmp avc数据转换成avc裸流 @param <payload> rtmp message的payload部分 或者 flv tag的payload部分

func ParseAVCSeqHeader

func ParseAVCSeqHeader(payload []byte) (sps, pps []byte, err error)

从 rtmp avc sequence header 中解析 sps 和 pps @param <payload> rtmp message的payload部分 或者 flv tag的payload部分

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL