mpegts

package
v0.0.0-...-177ec65 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mpegts contains MPEG-ts utilities.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTracks = errors.New("no supported tracks found (supported are H265, H264," +
	" MPEG-4 Video, MPEG-1/2 Video, Opus, MPEG-4 Audio, MPEG-1 Audio, AC-3")

ErrNoTracks is returned when there are no supported tracks.

Functions

func FromStream

func FromStream(
	stream *stream.Stream,
	writer *asyncwriter.Writer,
	bw *bufio.Writer,
	sconn srt.Conn,
	writeTimeout time.Duration,
) error

FromStream links a server stream to a MPEG-TS writer.

func ToStream

func ToStream(r *mpegts.Reader, stream **stream.Stream) ([]*description.Media, error)

ToStream converts a MPEG-TS stream to a server stream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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