From 266fe51028a3a49a61864a929a639bb240dc9122 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 6 Jul 2020 22:16:40 -0700 Subject: [PATCH] Create thumbnail from end of segment. Closes #14 --- core/ffmpeg/thumbnailGenerator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ffmpeg/thumbnailGenerator.go b/core/ffmpeg/thumbnailGenerator.go index cd5ecde13..832a1ed75 100644 --- a/core/ffmpeg/thumbnailGenerator.go +++ b/core/ffmpeg/thumbnailGenerator.go @@ -75,7 +75,7 @@ func fireThumbnailGenerator(chunkPath string, variantIndex int) error { config.Config.FFMpegPath, "-y", // Overwrite file "-threads 1", // Low priority processing - "-t 1", // Pull from frame 1 + "-sseof -0:0:1", // Pull from the end of the segment "-i", mostRecentFile, // Input "-f image2", // format "-vframes 1", // Single frame