tracks

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package tracks contains functions to read and write track metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxTypeAv1C

func BoxTypeAv1C() gomp4.BoxType

BoxTypeAv1C returns the box type.

func Read

Read reads track informations. It returns the video track and the audio track.

func Write

func Write(w *message.ReadWriter, videoTrack formats.Format, audioTrack formats.Format) error

Write writes track informations.

Types

type Av1C

type Av1C struct {
	gomp4.Box
	Marker                           uint8   `mp4:"0,size=1,const=1"`
	Version                          uint8   `mp4:"1,size=7,const=1"`
	SeqProfile                       uint8   `mp4:"2,size=3"`
	SeqLevelIdx0                     uint8   `mp4:"3,size=5"`
	SeqTier0                         uint8   `mp4:"4,size=1"`
	HighBitdepth                     uint8   `mp4:"5,size=1"`
	TwelveBit                        uint8   `mp4:"6,size=1"`
	Monochrome                       uint8   `mp4:"7,size=1"`
	ChromaSubsamplingX               uint8   `mp4:"8,size=1"`
	ChromaSubsamplingY               uint8   `mp4:"9,size=1"`
	ChromaSamplePosition             uint8   `mp4:"10,size=2"`
	Reserved                         uint8   `mp4:"11,size=3,const=0"`
	InitialPresentationDelayPresent  uint8   `mp4:"12,size=1"`
	InitialPresentationDelayMinusOne uint8   `mp4:"13,size=4"`
	ConfigOBUs                       []uint8 `mp4:"14,size=8"`
}

Av1C is a Av1C ISO-BMFF box.

func (Av1C) GetType

func (Av1C) GetType() gomp4.BoxType

GetType returns the box type.

Jump to

Keyboard shortcuts

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