codecs

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package codecs contains codec definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFMP4

func ToFMP4(in Codec) fmp4.Codec

ToFMP4 converts a codec in its fMP4 equivalent.

func ToMPEGTS

func ToMPEGTS(in Codec) mpegts.Codec

ToMPEGTS converts a codec in its MPEG-TS equivalent.

Types

type AV1

type AV1 struct {
	SequenceHeader []byte
}

AV1 is a AV1 codec.

type Codec

type Codec interface {
	// contains filtered or unexported methods
}

Codec is a codec.

func FromFMP4

func FromFMP4(in fmp4.Codec) Codec

FromFMP4 imports a codec from fMP4.

func FromMPEGTS

func FromMPEGTS(in mpegts.Codec) Codec

FromMPEGTS imports a codec from MPEG-TS.

type H264

type H264 struct {
	SPS []byte
	PPS []byte
}

H264 is a H264 codec.

type H265

type H265 struct {
	VPS []byte
	SPS []byte
	PPS []byte
}

H265 is a H265 codec.

type MPEG4Audio

type MPEG4Audio struct {
	mpeg4audio.Config
}

MPEG4Audio is a MPEG-4 Audio codec.

type Opus

type Opus struct {
	ChannelCount int
}

Opus is a Opus codec.

type VP9

type VP9 struct {
	Width             int
	Height            int
	Profile           uint8
	BitDepth          uint8
	ChromaSubsampling uint8
	ColorRange        bool
}

VP9 is a VP9 codec.

Jump to

Keyboard shortcuts

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