media

package
v0.0.0-...-607d97d Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(decipher IDecipher)

Types

type AVCodeId

type AVCodeId uint16
const (
	FLV AVCodeId = iota
	H264
)

type IDecipher

type IDecipher interface {
	Init(file *os.File)
	Match() (bool, error)
	DumpInfo() (*VideoInfo, error)
}

func GetDecipher

func GetDecipher(file *os.File) (IDecipher, error)

type IEncoder

type IEncoder interface {
}

type InputVideo

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

func OpenVideo

func OpenVideo(file string) (*InputVideo, error)

func (*InputVideo) ReadVideoInfo

func (v *InputVideo) ReadVideoInfo() (*VideoInfo, error)

type OutputVideo

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

func CreateOutputVideo

func CreateOutputVideo(filePath string) (*OutputVideo, error)

func (*OutputVideo) Write

func (v *OutputVideo) Write(vp *VideoPacket)

type VideoInfo

type VideoInfo struct {
	AvCodeId  AVCodeId
	Height    uint32
	Width     uint32
	Duration  float64
	Framerate uint32
}

func NewVideoInfo

func NewVideoInfo(AvCodeId AVCodeId) *VideoInfo

type VideoPacket

type VideoPacket struct {
}

Jump to

Keyboard shortcuts

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