batch_ffmpeg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FONT_EXT = []string{".ttf", ".otf", ".ttc"}

Functions

This section is empty.

Types

type VideoBatchOption

type VideoBatchOption struct {
	InputPath      string
	InputFormat    string
	OutputPath     string
	OutputFormat   string
	FontsPath      string
	InputSubSuffix string
	InputSubNo     int
	InputSubTitle  string
	InputSubLang   string
	Advance        string
	Exec           bool
}

type VideoBatcher

type VideoBatcher interface {
	GetVideosList() ([]string, error)         // 获取视频列表s
	GetFontsList() ([]string, error)          // 获取字体列表
	GetFontsParams() ([]string, error)        // 获取字体列表
	GetConvertBatch() ([][]string, error)     // 获取转换视频命令
	GetAddFontsBatch() ([][]string, error)    // 获取添加字体命令
	GetAddSubtitleBatch() ([][]string, error) // 获取添加字幕命令
	ExecuteBatch(batchCmd [][]string) error
}

func NewVideoBatch

func NewVideoBatch(opt *VideoBatchOption) (VideoBatcher, error)

Jump to

Keyboard shortcuts

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