convert

package
v0.0.0-...-e7f4e31 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatMap = map[string]FormatOption{

	"png":  {Type: "image", Codec: "png"},
	"jpg":  {Type: "image", Codec: "mjpeg"},
	"jpeg": {Type: "image", Codec: "mjpeg"},
	"webp": {Type: "image", Codec: "libwebp"},
	"gif":  {Type: "image", Codec: "gif"},
	"bmp":  {Type: "image", Codec: "bmp"},
	"tiff": {Type: "image", Codec: "tiff"},

	"mp4": {Type: "video", Codec: "libx264"},
	"avi": {Type: "video", Codec: "libx264"},
	"mov": {Type: "video", Codec: "libx264"},
	"mkv": {Type: "video", Codec: "libx264"},

	"mp3":  {Type: "audio", Codec: "libmp3lame"},
	"wav":  {Type: "audio", Codec: "pcm_s16le"},
	"flac": {Type: "audio", Codec: "flac"},
	"aac":  {Type: "audio", Codec: "aac"},
}

Functions

func MediaFile

func MediaFile(inputFile, outputFile, outputFormat string, deleteSource bool) (state string, err error)

Types

type FormatOption

type FormatOption struct {
	Type  string
	Codec string
}

Jump to

Keyboard shortcuts

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