Skip to content

Commit

Permalink
Merge branch 'main' into vg/feat/better-retries
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Aug 9, 2024
2 parents 8e1577c + 5776fb9 commit bdd1bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ func extractThumb(outputURI *url.URL, segmentFileName string, storageFallbackURL
return fmt.Errorf("temp file creation failed: %w", err)
}
defer os.RemoveAll(tmpDir)
outFile := filepath.Join(tmpDir, "out.jpg")
outFile := filepath.Join(tmpDir, "out.png")

args := []string{
"-i", segmentFileName,
"-ss", "00:00:00",
"-vframes", "1",
"-vf", "scale=854:480:force_original_aspect_ratio=decrease",
"-vf", "scale=640:360:force_original_aspect_ratio=decrease",
"-y",
outFile,
}
Expand All @@ -264,7 +264,7 @@ func extractThumb(outputURI *url.URL, segmentFileName string, storageFallbackURL
}

// two thumbs, one at session level, the other at stream level
thumbURLs := []*url.URL{outputURI.JoinPath("../latest.jpg"), outputURI.JoinPath("../../../latest.jpg")}
thumbURLs := []*url.URL{outputURI.JoinPath("../latest.png"), outputURI.JoinPath("../../../latest.png")}
fields := &drivers.FileProperties{CacheControl: "max-age=5"}
errGroup := &errgroup.Group{}

Expand Down

0 comments on commit bdd1bf3

Please sign in to comment.