stash/pkg/scene/generate
Speck Pratt e9e427772b Make marker preview duration ceiling configurable
Replaces the hardcoded maxMarkerPreviewDuration = 20 constant in
pkg/scene/generate/marker_preview.go with a configurable setting on
ConfigGeneral, mirroring the PreviewSegments wiring pattern.

- Default 20 preserves existing behavior for all installs
- Positive N sets the ceiling in seconds
- 0 (or any value <= 0) disables the ceiling, honoring explicit
  endSeconds verbatim
- Adds logger.Warnf for non-positive intervals to aid diagnosis of
  imported or malformed marker data
- Incidentally prevents zero/negative-duration ffmpeg calls that
  were possible under the previous logic

Context: closed issue #6852 (template non-conformance), Discussion
#6851 (mobile-first direction).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 07:08:15 -04:00
..
generator.go Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
marker_preview.go Make marker preview duration ceiling configurable 2026-04-22 07:08:15 -04:00
preview.go added vfr detection, to improve preview generation performance (#3376) 2023-02-17 13:59:36 +11:00
screenshot.go Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
sprite.go Custom sprite generation (#6588) 2026-02-20 15:09:59 +11:00
transcode.go Fix ffmpeg error when trying to scale and copy video (#4660) 2024-03-07 09:02:45 +11:00