Versions in this module Expand all Collapse all v1 v1.0.0 Dec 27, 2020 Changes in this version + const NameNotProvidedError + const NotAllowedCodec + const NotAllowedPreset + const NotAllowedTune + type Cfg struct + FfmpegBin string + FfmpegOpts FfmpegOpts + InputFile string + OutputFile string + type FfmpegOpts struct + Name string + QualityCRF *int + QualityPreset string + QualityTune string + Threads int + VideoCodec string + VideoDuration time.Duration + VideoScale int + VideoStart time.Duration + func NewFromInterface(in interface{}) (*FfmpegOpts, error) + func (opts *FfmpegOpts) Args() ([]string, error) + func (opts *FfmpegOpts) VideoExt() string + type Transcoder struct + func New(cfg *Cfg) (*Transcoder, error) + func (tc *Transcoder) GetCmd() ([]string, error) + func (tc *Transcoder) GetOutputFile() string + func (tc *Transcoder) Run() (string, error)