ffmpeg

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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 added in v1.9.3

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 added in v1.6.0

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