xmp4

package
v0.20.18 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAACCodec

func NewAACCodec(channel int, clockRate int) *core.Codec

func NewH264Codec

func NewH264Codec(sps, pps []byte) *core.Codec

func NewH265Codec

func NewH265Codec(vps, sps, pps []byte) *core.Codec

func NewOpusCodec

func NewOpusCodec(channel int) *core.Codec

func NewPCMACodec

func NewPCMACodec(channel int, clockRate int) *core.Codec

func NewPCMUCodec

func NewPCMUCodec(channel int, clockRate int) *core.Codec

Types

type Muxer

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

func NewMuxer

func NewMuxer(w io.Writer) *Muxer

NewMuxer mp4 muxer, from github.com/AlexxIT/go2rtc/pkg/mp4

func (*Muxer) AddTrack

func (m *Muxer) AddTrack(codecs ...*core.Codec) error

func (*Muxer) WriteAudio

func (m *Muxer) WriteAudio(timestamp time.Duration, data []byte) error

func (*Muxer) WriteVideo

func (m *Muxer) WriteVideo(timestamp time.Duration, data []byte) error

Jump to

Keyboard shortcuts

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