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