Versions in this module Expand all Collapse all v1 v1.2.0 Dec 22, 2023 Changes in this version + type Exec struct + Loglevel Loglevel + func New(ffmpegFile string, options ...Option) *Exec + func (e *Exec) ExecCtx(ctx context.Context, args ...string) error + func (e *Exec) ExecCtxValue(ctx context.Context, loglevel Loglevel, args ...string) (string, error) + func (e *Exec) GenerateVideoPreviewImg(ctx context.Context, videoFilePath, outputFilePath string) error + func (e *Exec) GetResolution(ctx context.Context, input string) (image.Point, error) + func (e *Exec) MergeImg2Video(ctx context.Context, imgDir, audioFile, outputFile string) error + func (e *Exec) Overlay(ctx context.Context, isVideo bool, outputFile string, elementFile ...string) error + func (e *Exec) Scale(ctx context.Context, input string, w, h int, output string) error + func (e *Exec) VideoFrameExtraction(ctx context.Context, videoFile, outputDir string) error + type Loglevel int + const LogLevelDebug + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelPanic + const LogLevelQuiet + const LogLevelTrace + const LogLevelVerbose + const LogLevelWarning + type Option func(*Exec) + func WithLoglevel(loglevel Loglevel) Option