Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Create thumbnail from end of segment. Closes #14

Gabe Kangasf5bbd4d4cb6e
diff --git a/core/ffmpeg/thumbnailGenerator.go b/core/ffmpeg/thumbnailGenerator.go
index cd5ecde130..832a1ed752 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