convert

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ToMP4

func ToMP4(_ context.Context, params Params) (files.Output, error)

Types

type Config

type Config struct {
	OutputDir string `fig:"output_dir" yaml:"output_dir" default:"conversions"`
}

func (Config) Apply

func (c Config) Apply(params Params) (Params, error)

type Params

type Params struct {
	Preset    Preset
	Source    string
	Prefix    string
	OutputDir string
}

func (Params) Filename

func (p Params) Filename(prefix, ext string) string

func (Params) SouceRelative

func (p Params) SouceRelative() string

type Preset

type Preset string
const (
	UltraFast Preset = "ultrafast"
	SuperFast Preset = "superfast"
	VeryFast  Preset = "veryfast"
	Faster    Preset = "faster"
	Fast      Preset = "fast"
	Medium    Preset = "medium"
	Slow      Preset = "slow"
	Slower    Preset = "slower"
	VerySlow  Preset = "veryslow"
	Placebo   Preset = "placebo"
)

func (Preset) String

func (p Preset) String() string

type Presets

type Presets []Preset

func (Presets) String

func (p Presets) String() string

Jump to

Keyboard shortcuts

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