ffmpeg

package
v0.0.0-...-b3bab2c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const SampleRate = 48000

SampleRate is the sample rate used by FFMPEG.

Variables

This section is empty.

Functions

func GetDshowDevices

func GetDshowDevices() ([]string, error)

func NewFFMPEGStream

func NewFFMPEGStream(input io.Reader, debug ...bool) (audio.Stream, error)

NewFFMPEGStream returns an audio stream from any input that FFMPEG accepts.

func NewFFMPEGStreamAdvanced

func NewFFMPEGStreamAdvanced(cmd *exec.Cmd, debug ...bool) (audio.Stream, error)

NewFFMPEGStreamAdvanced returns an audio stream from a constructed FFMPEG command. The output must be single channel "pcm_s32le" at a sample rate of SampleRate to stdout (pipe:1).

func NewFFMPEGStreamFromDshow

func NewFFMPEGStreamFromDshow(device string, debug ...bool) (audio.Stream, error)

func NewFFMPEGStreamFromFile

func NewFFMPEGStreamFromFile(name string, debug ...bool) (audio.Stream, error)

NewFFMPEGStreamFromFile returns an audio stream from the given filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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