mirror of https://github.com/stashapp/stash.git
17 lines
404 B
Go
17 lines
404 B
Go
|
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)
|
||
|
}
|