package manager import ( "github.com/stashapp/stash/pkg/ffmpeg" ) func makeScreenshot(probeResult ffmpeg.VideoFile, outputPath string, quality int, width int, time float64) { encoder := ffmpeg.NewEncoder(instance.FFMPEGPath) options := ffmpeg.ScreenshotOptions{ OutputPath: outputPath, Quality: quality, Time: time, Width: width, } encoder.Screenshot(probeResult, options) }