Added quotes to path

fixes #48
This commit is contained in:
ExceptionalError
2019-08-31 07:11:01 +02:00
committed by GitHub
parent 8cc2766244
commit 1d4feab478

View File

@@ -21,7 +21,7 @@ func (e *Encoder) Screenshot(probeResult VideoFile, options ScreenshotOptions) {
"-v", options.Verbosity,
"-ss", fmt.Sprintf("%v", options.Time),
"-y",
"-i", probeResult.Path, // TODO: Wrap in quotes?
"-i", `"` + probeResult.Path + `"`,
"-vframes", "1",
"-q:v", fmt.Sprintf("%v", options.Quality),
"-vf", fmt.Sprintf("scale=%v:-1", options.Width),