media

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Overview

Package media provides media open, close and conversion support

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.5.1

func New() *manager

func NewCodecEncoder added in v1.5.1

func NewCodecEncoder(id ffmpeg.AVCodecID) *codec

Create a codec from a AVCodecID for a stream

func NewDecoder added in v1.5.1

func NewDecoder(stream *stream) *decoder

Create a decoder for a stream

func NewEncoderByName added in v1.5.1

func NewEncoderByName(name string) *encoder

Create a encoder for a stream

func NewFrame added in v1.5.1

func NewFrame() *frame

func NewInputDevice added in v1.5.1

func NewInputDevice(device MediaFormat, cb func(Media) error) (*input, error)

func NewInputFile added in v1.5.1

func NewInputFile(path string, format MediaFormat, cb func(Media) error) (*input, error)

func NewInputFormat

func NewInputFormat(ctx *ffmpeg.AVInputFormat, flags MediaFlag) *format_in

Create a input format container

func NewInputURL added in v1.5.1

func NewInputURL(path string, format MediaFormat, cb func(Media) error) (*input, error)

func NewMap added in v1.5.1

func NewMap(media Media, flags MediaFlag) (*decodemap, error)

func NewMetadata

func NewMetadata(ctx **ffmpeg.AVDictionary) *metadata

Create new metadata object. The metadata is odd, in that when there are no entries the dictionary gets freed, and when there are entries the dictionary is allocated. So we have to use a pointer to a pointer

func NewOutputDevice added in v1.5.1

func NewOutputDevice(device MediaFormat, cb func(Media) error) (*output, error)

func NewOutputFile added in v1.5.1

func NewOutputFile(path string, cb func(Media) error) (*output, error)

func NewOutputFormat

func NewOutputFormat(ctx *ffmpeg.AVOutputFormat, flags MediaFlag) *format_out

Create a output format container

func NewPacket added in v1.5.1

func NewPacket(fn func(int) Stream) *packet

func NewResampler added in v1.5.1

func NewResampler(src, dest AudioFormat) *resampler

Create a new resampler for a frame

func NewScalar added in v1.5.1

func NewScalar(src, dest *ffmpeg.AVFrame) *scaler

Create a new video scalar for a source and destination frame. If the destination is nil then use the sample parameters as the source.

func NewStream

func NewStream(ctx *ffmpeg.AVStream) *stream

func PrintVersion added in v1.5.1

func PrintVersion(w io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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