ffmpeg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OS_WINDOWS = "windows"
)

Variables

This section is empty.

Functions

func CutVideo

func CutVideo(inputPath string, outputFolder string) ([]string, error)

CutVideo 使用 ffmpeg 进行视频切割,每段视频时长为 60s

func EncodeVideo

func EncodeVideo(encodeScript string, encodeParam string) error

EncodeVideo 压制视频,压制的 VS 脚本由 encodeScript 指定,压制参数由 encodeParam 指定

func MergeVideo

func MergeVideo(originPath string, inputFiles []string, outputPath string) error

MergeVideo 使用 ffmpeg 进行视频合并,使用 mkvpropedit 清除 tags

func ReMuxWithSourceVideo

func ReMuxWithSourceVideo(originPath string, tempVideoMergedOutputPath string, concatOutputPath string) error

ReMuxWithSourceVideo 使用 ffmpeg 和原始视频进行 remux

Types

type FileInfo

type FileInfo struct {
	Path  string
	Index int
}

Jump to

Keyboard shortcuts

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