mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
revert changes #117
This commit is contained in:
@@ -18,14 +18,14 @@ func (e *Encoder) Screenshot(probeResult VideoFile, options ScreenshotOptions) {
|
|||||||
options.Quality = 1
|
options.Quality = 1
|
||||||
}
|
}
|
||||||
args := []string{
|
args := []string{
|
||||||
"-v " + options.Verbosity,
|
"-v", options.Verbosity,
|
||||||
fmt.Sprintf("-ss %v", options.Time),
|
"-ss", fmt.Sprintf("%v", options.Time),
|
||||||
"-y",
|
"-y",
|
||||||
"-i \"" + probeResult.Path + "\"",
|
"-i", probeResult.Path, // TODO: Wrap in quotes?
|
||||||
"-vframes 1",
|
"-vframes", "1",
|
||||||
fmt.Sprintf("-q:v %v", options.Quality),
|
"-q:v", fmt.Sprintf("%v", options.Quality),
|
||||||
fmt.Sprintf("-vf scale=%v:-1", options.Width),
|
"-vf", fmt.Sprintf("scale=%v:-1", options.Width),
|
||||||
"-f image2",
|
"-f", "image2",
|
||||||
options.OutputPath,
|
options.OutputPath,
|
||||||
}
|
}
|
||||||
_, _ = e.run(probeResult, args)
|
_, _ = e.run(probeResult, args)
|
||||||
|
|||||||
Reference in New Issue
Block a user