Documentation ¶
Index ¶
- Constants
- Variables
- type FfmpegService
- func (ffm *FfmpegService) Command(arg ...string) (result string, err error)
- func (ffm *FfmpegService) CustomCommand(args []string) (res string, err error)
- func (ffm *FfmpegService) CustomOneOut(args []string) (res string, err error)
- func (ffm *FfmpegService) GetResult() (res string, err error)
- func (ffm *FfmpegService) GetWidthLenth(args []string) (res string, err error)
- func (ffm *FfmpegService) Synthesis(args []string) (res string, err error)
- func (ffm *FfmpegService) Transcoding(args []string) (res string, err error)
Constants ¶
View Source
const ( SYNTHESIS = "Synthesis" CUSTOM = "Custom" CUSTOMONEOUT = "CustomOneOut" TRANSCODING = "Transcoding" GETWIDTHLENTH = "GetWidthLenth" )
ffmpeg服务名称
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FfmpegService ¶
定义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 视频转码调用
Click to show internal directories.
Click to hide internal directories.