media

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvMediaType

type AvMediaType int
const (
	AvMediaTypeUnknown AvMediaType = 0

	AvMediaTypeG711U AvMediaType = 1 // g711u
	AvMediaTypeG711A AvMediaType = 2 // g711a
	AvMediaTypeAac   AvMediaType = 3 // aac
	AvMediaTypeOpus  AvMediaType = 4 // opus

	AvMediaTypeH264 AvMediaType = 20 // h264
	AvMediaTypeH265 AvMediaType = 22 // h265
	AvMediaTypeVP8  AvMediaType = 23 // vp8
)

func (AvMediaType) ReadableString

func (a AvMediaType) ReadableString() string

type AvPacket

type AvPacket struct {
	MediaType AvMediaType
	Timestamp uint32 // 如无特殊说明,此字段是Dts
	Payload   []byte

	SampleRate   int
	ChannelCount int
}

AvPacket

不同场景使用时,字段含义可能不同。 使用 AvPacket 的地方,应注明各字段的含义。

func (*AvPacket) IsAudio

func (packet *AvPacket) IsAudio() bool

func (*AvPacket) IsVideo

func (packet *AvPacket) IsVideo() bool

func (*AvPacket) NaluType

func (packet *AvPacket) NaluType() uint8

Directories

Path Synopsis
codec
aac
g711
Package g711 *
Package g711 *
libcodec
Package libcodec *
Package libcodec *
pcm
vp8
Package vp8 *
Package vp8 *
Package converter *
Package converter *

Jump to

Keyboard shortcuts

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