media

package
v3.2.16 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 2 Imported by: 293

Documentation

Overview

Package media provides media writer and filters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sample

type Sample struct {
	Data               []byte
	Timestamp          time.Time
	Duration           time.Duration
	PacketTimestamp    uint32
	PrevDroppedPackets uint16
	Metadata           interface{}
}

A Sample contains encoded media and timing information

type Writer

type Writer interface {
	// Add the content of an RTP packet to the media
	WriteRTP(packet *rtp.Packet) error
	// Close the media
	// Note: Close implementation must be idempotent
	Close() error
}

Writer defines an interface to handle the creation of media files

Directories

Path Synopsis
Package h264reader implements a H264 Annex-B Reader
Package h264reader implements a H264 Annex-B Reader
Package h264writer implements H264 media container writer
Package h264writer implements H264 media container writer
Package ivfreader implements IVF media container reader
Package ivfreader implements IVF media container reader
Package ivfwriter implements IVF media container writer
Package ivfwriter implements IVF media container writer
Package oggreader implements the Ogg media container reader
Package oggreader implements the Ogg media container reader
Package oggwriter implements OGG media container writer
Package oggwriter implements OGG media container writer
Package rtpdump implements the RTPDump file format documented at https://www.cs.columbia.edu/irt/software/rtptools/
Package rtpdump implements the RTPDump file format documented at https://www.cs.columbia.edu/irt/software/rtptools/
Package samplebuilder provides functionality to reconstruct media frames from RTP packets.
Package samplebuilder provides functionality to reconstruct media frames from RTP packets.

Jump to

Keyboard shortcuts

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