h264writer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package h264writer implements H264 media container writer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H264Writer

type H264Writer struct {
	// contains filtered or unexported fields
}

H264Writer is used to take RTP packets, parse them and write the data to an io.Writer. Currently it only supports non-interleaved mode Therefore, only 1-23, 24 (STAP-A), 28 (FU-A) NAL types are allowed. https://tools.ietf.org/html/rfc6184#section-5.2

func New

func New(filename string) (*H264Writer, error)

New builds a new H264 writer.

func NewWith

func NewWith(w io.Writer) *H264Writer

NewWith initializes a new H264 writer with an io.Writer output.

func (*H264Writer) Close

func (h *H264Writer) Close() error

Close closes the underlying writer.

func (*H264Writer) WriteRTP

func (h *H264Writer) WriteRTP(packet *rtp.Packet) error

WriteRTP adds a new packet and writes the appropriate headers for it.

Jump to

Keyboard shortcuts

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