skills

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package skills provides an easy way to find out which codec, de/muxers, filters, and formats ffmpeg supports and which devices are available for ffmpeg on the system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	Id       string
	Name     string
	Encoders []string
	Decoders []string
}

Codec represents a codec with its availabe encoders and decoders

type Device

type Device struct {
	Id      string
	Name    string
	Devices []HWDevice
}

Device represents a type of device (e.g. V4L2) including connected actual devices

type Filter

type Filter struct {
	Id   string
	Name string
}

Filter represents a supported filter (e.g. anullsrc, test2)

type Format

type Format struct {
	Id   string
	Name string
}

Format represents a supported format (e.g. flv)

type HWAccel

type HWAccel struct {
	Id   string
	Name string
}

type HWDevice

type HWDevice struct {
	Id    string
	Name  string
	Extra string
	Media string
}

HWDevice represents a hardware device (e.g. USB device)

func DevicesALSA

func DevicesALSA() ([]HWDevice, error)

DevicesALSA returns a list of available ALSA devices

func DevicesAvfoundation

func DevicesAvfoundation(binary string) ([]HWDevice, error)

DevicesAvfoundation returns a list of AVFoundation devices. You have to provide the path to the ffmpeg binary.

func DevicesFramebuffer

func DevicesFramebuffer() ([]HWDevice, error)

DevicesFramebuffer returns a list of framebuffer devices found on the system

func DevicesV4L

func DevicesV4L() ([]HWDevice, error)

DevicesV4L returns a list of available V4L devices

type Library

type Library struct {
	Name     string
	Compiled string
	Linked   string
}

Library represents a linked av library

type Protocol

type Protocol struct {
	Id   string
	Name string
}

Protocol represents a supported protocol (e.g. rtsp)

type Skills

type Skills struct {
	FFmpeg ffmpeg

	Filters  []Filter
	HWAccels []HWAccel

	Codecs    ffCodecs
	Devices   ffDevices
	Formats   ffFormats
	Protocols ffProtocols
}

Skills are the detected capabilities of a ffmpeg binary

func New

func New(binary string) (Skills, error)

New returns all skills that ffmpeg provides

Jump to

Keyboard shortcuts

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