ffmpeg

package
v0.0.0-...-48889b8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*ffmpeg, error)

new ffmpeg wrapper where args can be added

Types

type Ffmpeger

type Ffmpeger interface {
	ToMp3(c *Mp3Config) (string, error)
	OptimizeAlbumArt(s, d string) (string, error)
	Exec(args ...string) (string, error)
}

type Metadata

type Metadata struct {
	Artist  string
	Album   string
	Disc    string
	Track   string
	Title   string
	Date    string
	Artwork string
}

type MockFfmpeg

type MockFfmpeg struct {
	Embedded string
}

func (*MockFfmpeg) Exec

func (m *MockFfmpeg) Exec(args ...string) (string, error)

func (*MockFfmpeg) OptimizeAlbumArt

func (m *MockFfmpeg) OptimizeAlbumArt(s, d string) (string, error)

func (*MockFfmpeg) ToMp3

func (m *MockFfmpeg) ToMp3(c *Mp3Config) (string, error)

type Mp3Config

type Mp3Config struct {
	Input, Quality, Output string
	Meta                   Metadata
	Fix                    bool
}

Jump to

Keyboard shortcuts

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