prelude

package
v16.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
	// common
	Address  string
	Format   string
	Index    uint64
	Stream   uint64
	Language string
	Type     string
	Codec    string
	Coder    string
	Bitrate  float64 // kbps
	Duration float64 // sec

	// video
	FPS    float64
	Pixfmt string
	Width  uint64
	Height uint64

	// audio
	Sampling uint64 // Hz
	Layout   string
	Channels uint64
}

func Parse

func Parse(lines []string) (inputs, outputs []IO, noutputs int)

Parse parses the inputs and outputs from the default FFmpeg output. It returns a list of detected inputs and outputs as well as the number of outputs according to the stream mapping.

Jump to

Keyboard shortcuts

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