ffprobe

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand() *Command

func (*Command) Args

func (c *Command) Args() []string

func (*Command) Run

func (c *Command) Run(ctx context.Context) (media.File, error)

Run executes the ffprobe command and returns the media file

func (*Command) WithBinPath

func (c *Command) WithBinPath(binPath string) *Command

WithBinPath sets the path to the ffmpeg binary.

func (*Command) WithInputPath

func (c *Command) WithInputPath(inputPath string) *Command

func (*Command) WithInputReader

func (c *Command) WithInputReader(inputReader io.Reader) *Command

func (*Command) WithOutputWriter

func (c *Command) WithOutputWriter(outputWriter io.Writer) *Command

Jump to

Keyboard shortcuts

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