mp4

package
v0.0.0-...-12bdfed Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodecTypes = []av.CodecType{av.H264, av.AAC}

Functions

func Handler

func Handler(h *avutil.RegisterHandler)

Types

type Demuxer

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

func NewDemuxer

func NewDemuxer(r io.ReadSeeker) *Demuxer

func (*Demuxer) CurrentTime

func (self *Demuxer) CurrentTime() (tm time.Duration)

func (*Demuxer) Duration

func (d *Demuxer) Duration(ctx context.Context) (time.Duration, error)

Duration returns the duration from the header is known. If the duration is not stored then -1 is returned and the duration needs to be determined from the streams.

func (*Demuxer) ReadPacket

func (self *Demuxer) ReadPacket(ctx context.Context, skipData bool) (pkt av.Packet, err error)

func (*Demuxer) SeekToTime

func (self *Demuxer) SeekToTime(tm time.Duration) (err error)

func (*Demuxer) Streams

func (d *Demuxer) Streams(ctx context.Context) (streams []av.CodecData, err error)

type Muxer

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

func NewMuxer

func NewMuxer(w io.WriteSeeker) *Muxer

func (*Muxer) WriteHeader

func (self *Muxer) WriteHeader(streams []av.CodecData) (err error)

func (*Muxer) WritePacket

func (self *Muxer) WritePacket(pkt av.Packet) (err error)

func (*Muxer) WriteTrailer

func (self *Muxer) WriteTrailer() (err error)

type Stream

type Stream struct {
	av.CodecData
	// contains filtered or unexported fields
}

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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