From 43a74b648cd21044e68d550d5ac6e90aa9d1f207 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 22 Mar 2020 21:42:37 +1000 Subject: [PATCH] Skip blanks in screenshot capture and allow more time --- media/video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/video.go b/media/video.go index e864be0..c97be9f 100644 --- a/media/video.go +++ b/media/video.go @@ -81,7 +81,7 @@ func ParseVideo(p *Path, name string) (*Video, error) { } else if utils.CmdExists("mt") { thumbFn := fmt.Sprintf("%s.jpg", strings.TrimSuffix(pth, filepath.Ext(pth))) if !utils.FileExists(thumbFn) { - if err := utils.RunCmd(10, "mt", "-s", "-n", "1", pth); err != nil { + if err := utils.RunCmd(30, "mt", "-b", "-s", "-n", "1", pth); err != nil { err := fmt.Errorf("error generating thumbnail: %w", err) log.Error(err.Error()) return nil, err