mp4

package
v0.28.20241114122041 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 9 Imported by: 0

README

mp4 decoder

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBufTooLarge = errors.New("ErrBufTooLarge")
	ErrMisTraks    = errors.New("ErrMisTraks")
)
View Source
var (
	ErrMisBox     = perrors.New("decode", "ErrMisBox")
	ErrCantResync = perrors.New("decode")
)
View Source
var (
	ErrUnkownBox = perrors.New("ErrUnkownBox")
)

Functions

This section is empty.

Types

type Fmp4Decoder

type Fmp4Decoder struct {
	AVTDiff float64 // 音视频时间戳容差
	// contains filtered or unexported fields
}

func NewFmp4Decoder

func NewFmp4Decoder() *Fmp4Decoder

func (*Fmp4Decoder) Init_fmp4

func (t *Fmp4Decoder) Init_fmp4(buf []byte) (b []byte, err error)

func (*Fmp4Decoder) Search_stream_fmp4

func (t *Fmp4Decoder) Search_stream_fmp4(buf []byte, keyframe *slice.Buf[byte]) (cu int, err error)

Jump to

Keyboard shortcuts

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