ivfwriter

package
v3.2.28 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 7 Imported by: 49

Documentation

Overview

Package ivfwriter implements IVF media container writer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IVFWriter

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

IVFWriter is used to take RTP packets and write them to an IVF on disk

func New

func New(fileName string, opts ...Option) (*IVFWriter, error)

New builds a new IVF writer

func NewWith

func NewWith(out io.Writer, opts ...Option) (*IVFWriter, error)

NewWith initialize a new IVF writer with an io.Writer output

func (*IVFWriter) Close

func (i *IVFWriter) Close() error

Close stops the recording

func (*IVFWriter) WriteRTP

func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error

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

type Option added in v3.1.28

type Option func(i *IVFWriter) error

An Option configures a SampleBuilder.

func WithCodec added in v3.1.28

func WithCodec(mimeType string) Option

WithCodec configures if IVFWriter is writing AV1 or VP8 packets to disk

Jump to

Keyboard shortcuts

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