Fix image thumbnail generation (#2524)

* Better logging for thumbnail generation errors
* Reduce verbosity for thumbnail generation
* Provide stdin during thumbnail generation
This commit is contained in:
WithoutPants
2022-04-25 15:56:06 +10:00
committed by GitHub
parent 9e606feb76
commit 1b91937004
6 changed files with 25 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ func generateSpriteScreenshot(encoder ffmpeg.FFMpeg, input string, t float64) (i
}
args := transcoder.ScreenshotTime(input, t, options)
data, err := encoder.GenerateOutput(context.Background(), args)
data, err := encoder.GenerateOutput(context.Background(), args, nil)
if err != nil {
return nil, err
}