ffmpeg

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYNTHESIS     = "Synthesis"
	CUSTOM        = "Custom"
	CUSTOMONEOUT  = "CustomOneOut"
	TRANSCODING   = "Transcoding"
	GETWIDTHLENTH = "GetWidthLenth"
)

ffmpeg服务名称

Variables

View Source
var (
	InArg      string
	OutArg     string
	VideoUrl   string
	BucketName string
	FileType   string
	IP         net.IP
)

Functions

This section is empty.

Types

type FfmpegService

type FfmpegService struct {
	Function string
	Commands []string
}

定义ffmpeg服务结构体

func NewFfmpegService

func NewFfmpegService(fuction string, commands ...string) *FfmpegService

NewFfmpegService 根据功能需求及输入指令创建ffmpeg服务实例

func (*FfmpegService) Command

func (ffm *FfmpegService) Command(arg ...string) (result string, err error)

Command命令行调用

func (*FfmpegService) CustomCommand

func (ffm *FfmpegService) CustomCommand(args []string) (res string, err error)

CustomCommand 自定义命令行及输出的ffmpeg请求

func (*FfmpegService) CustomOneOut

func (ffm *FfmpegService) CustomOneOut(args []string) (res string, err error)

CustomCommand 自定义命令行的单路视频输出ffmpeg请求

func (*FfmpegService) GetResult

func (ffm *FfmpegService) GetResult() (res string, err error)

GetResult 获取ffmpeg服务实现结果

func (*FfmpegService) GetWidthLenth

func (ffm *FfmpegService) GetWidthLenth(args []string) (res string, err error)

GetWidthLenth 获取视频长宽信息调用

func (*FfmpegService) Synthesis

func (ffm *FfmpegService) Synthesis(args []string) (res string, err error)

Synthesis视频合成调用

func (*FfmpegService) Transcoding

func (ffm *FfmpegService) Transcoding(args []string) (res string, err error)

Transcoding 视频转码调用

Jump to

Keyboard shortcuts

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