mp4

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mp4 contains a MP4 muxer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presentation

type Presentation struct {
	Tracks []*Track
}

Presentation is timed sequence of video/audio samples.

func (*Presentation) Marshal

func (p *Presentation) Marshal(w io.Writer) error

Marshal encodes a Presentation.

type Sample

type Sample struct {
	Duration        uint32
	PTSOffset       int32
	IsNonSyncSample bool
	PayloadSize     uint32
	GetPayload      func() ([]byte, error)
	// contains filtered or unexported fields
}

Sample is a sample of a Track.

type Track

type Track struct {
	ID         int
	TimeScale  uint32
	TimeOffset int32
	Codec      fmp4.Codec
	Samples    []*Sample
}

Track is a track of a Presentation.

Jump to

Keyboard shortcuts

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