ffmpeg

package
v0.0.0-...-c3ad350 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version50 = "59. 16"
	Version51 = "59. 27"
	Version60 = "60.  3"
	Version61 = "60. 16"
	Version70 = "61.  1"
)

correlation of libavformat versions with ffmpeg versions

Variables

This section is empty.

Functions

func ParseVersion

func ParseVersion(b []byte) (ffmpeg string, libavformat string)

Types

type Args

type Args struct {
	Bin     string   // ffmpeg
	Global  string   // -hide_banner -v error
	Input   string   // -re -stream_loop -1 -i /media/bunny.mp4
	Codecs  []string // -c:v libx264 -g:v 30 -preset:v ultrafast -tune:v zerolatency
	Filters []string // scale=1920:1080
	Output  string   // -f rtsp {output}
	Version string   // libavformat version, it's more reliable than the ffmpeg version

	Video, Audio int // count of Video and Audio params
}

func (*Args) AddCodec

func (a *Args) AddCodec(codec string)

func (*Args) AddFilter

func (a *Args) AddFilter(filter string)

func (*Args) HasFilters

func (a *Args) HasFilters(filters ...string) bool

func (*Args) InsertFilter

func (a *Args) InsertFilter(filter string)

func (*Args) String

func (a *Args) String() string

Jump to

Keyboard shortcuts

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