aac

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureAAC

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

将 rtmp AAC 传入,输出带 ADTS 头的 AAC ES流 @param <payload> rtmp message payload部分

Types

type ADTS

type ADTS struct {
	// contains filtered or unexported fields
}

func (*ADTS) GetADTS

func (obj *ADTS) GetADTS(length uint16) []byte

获取 ADTS 头,注意,每个包的长度不同,所以生成的每个包的 ADTS 头也不同 @param <length> rtmp message payload长度,包含前面2个字节

func (*ADTS) PutAACSequenceHeader

func (obj *ADTS) PutAACSequenceHeader(payload []byte)

传入 AAC Sequence Header,一会生成 ADTS 头时需要使用 @param <payload> rtmp message payload,包含前面2个字节

Jump to

Keyboard shortcuts

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