ffmpeg

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(b FFmpegBackend, cfg input.SessionConfig) (*execread.Session, error)

Types

type ALSA

type ALSA struct{}

func (ALSA) Close

func (p ALSA) Close() error

func (ALSA) DefaultDevice

func (p ALSA) DefaultDevice() (input.Device, error)

func (ALSA) Devices

func (p ALSA) Devices() ([]input.Device, error)

func (ALSA) Init

func (p ALSA) Init() error

func (ALSA) Start

func (p ALSA) Start(cfg input.SessionConfig) (input.Session, error)

type ALSADevice

type ALSADevice string

ALSADevice is a string that is the path to /dev/audioN.

func ParseALSADevice

func ParseALSADevice(hwString string) (ALSADevice, error)

ParseALSADevice parses %d:%d

func (ALSADevice) InputArgs

func (d ALSADevice) InputArgs() []string

func (ALSADevice) String

func (d ALSADevice) String() string

type FFmpegBackend

type FFmpegBackend interface {
	InputArgs() []string
}

type Pulse

type Pulse struct {
	parec.Backend
}

Pulse is the pulse input for FFmpeg.

func (Pulse) Start

func (p Pulse) Start(cfg input.SessionConfig) (input.Session, error)

type Sndio

type Sndio struct{}

Sndio is the sndio input for FFmpeg.

func (Sndio) Close

func (p Sndio) Close() error

func (Sndio) DefaultDevice

func (p Sndio) DefaultDevice() (input.Device, error)

func (Sndio) Devices

func (p Sndio) Devices() ([]input.Device, error)

Devices returns a list of sndio devices from /dev/audio*. This is kernel-specific and is only known to work on OpenBSD.

func (Sndio) Init

func (p Sndio) Init() error

func (Sndio) Start

func (p Sndio) Start(cfg input.SessionConfig) (input.Session, error)

type SndioDevice

type SndioDevice string

SndioDevice is a string that is the path to /dev/audioN.

func (SndioDevice) InputArgs

func (d SndioDevice) InputArgs() []string

func (SndioDevice) String

func (d SndioDevice) String() string

Jump to

Keyboard shortcuts

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