Skip to content

Snacks v3.2.0

Latest

Choose a tag to compare

@derekshreds derekshreds released this 06 Dec 03:38

Snacks v3.2.0

Automated Media Library Transcoder

A media server and player release. Episodes without chapters now get Skip Intro, and Up Next can appear as the credits start: the server finds each episode's intro and end credits from the sound its season shares, in the background, and every player version uses them. A new Auto-select forced subtitles setting keeps forced tracks out of automatic picks, so an image-based one is never burned in (a transcode) unless you choose it. Snacks Player 1.2.0 and Snacks for Fire TV 1.2.0 get faster scrubbing: hold the key or tap quickly and the step grows, up to a quarter of the title a second. They also add an optional soft tick as the cursor moves. Transcoder-only installs get one fix: the Advanced Video editor saves again on a server opened over plain HTTP.


Upgrade notes

  • No database changes. Neither snacks.db nor config/mediaserver.db gets a migration.
  • The media server makes a one-time pass over your TV episodes. Ten minutes after the media server starts, Snacks begins fingerprinting the sound of each episode, newest first. It decodes the opening (a quarter of the episode, 5–15 minutes) and the ending (a quarter, 5–10 minutes). The work runs at the lowest CPU priority, only while no other background work waits, and pauses while players need the encoders. On a large library, or one on a network share, the first pass can take hours.
    • Media Server → Background jobs lists it as Intro & credits. Pause there stops it, as it does the other background work.
    • The fingerprints take up to 60 KB per episode (about 26 KB for a half-hour one) in markers/ under the metadata folder, so at most 600 MB for 10,000 episodes. Unlike thumbnails and previews, this folder has no size limit.
    • Films and music are never analyzed.
  • Skip Intro, Up Next and watched marks can move on episodes, with every player version, because the server works the markers out:
    • Once its season is analyzed, an episode without chapters gets a Skip Intro. Where the season repeats its end-credits music, it also gets a credits point.
    • Detected credits act like a Credits chapter. Up Next appears there instead of 30 s before the end, and an episode played past them counts as watched (before, it took 90 % of the runtime).
    • A detected intro now replaces a chapter titled Intro; some releases use that title for a cold open or the cast credits. A chapter titled Opening or OP now wins over an earlier Intro chapter (before, the first matching chapter won). A Credits chapter still wins over detected credits.
    • Films keep their chapter markers only.
  • Upgrade cluster playback nodes with the master. A node encodes playback chunks only for a master on the same Snacks version. Until a node with Accept playback chunks runs 3.2.0 too, a 3.2.0 master gets no playback work from it and shows it as incompatible. Library encoding on that node carries on as before.
  • Auto-select forced subtitles is on by default, so subtitles behave as before until a profile turns it off. The server applies the setting to its first choice for every player. The 1.2.0 players also apply it when carrying subtitles to the next episode, and show the toggle only when the server is 3.2.0.
  • Navigation sounds are on by default in both 1.2.0 players. Turn them off in Settings › Interface. On Fire TV, the TV's own Navigation sounds setting also applies.
  • Update the players to 1.2.0 for the new player features, attached to this release.
    • Snacks Player 1.1.0 tells you 1.2.0 is out. With automatic updates on, a build that can replace itself (signed macOS builds, the AppImage and .deb on Linux, Windows) installs it. Otherwise, download it from the release page.
    • Fire TV: install the 1.2.0 APK the same way as 1.1.0. It installs over the old version.
    • 1.1.0 players keep working with a 3.2.0 server and get the detected intros and credits. They don't have the forced-subtitles toggle, the faster scrubbing or the navigation sounds.

The media server

Intro and credits detection

  • Episodes are matched by sound. Snacks fingerprints the opening and ending of each episode and compares it with up to ten of the nearest episodes of its season.
    • The intro is a stretch of the opening, 15 s to 2.5 minutes long, that at least two of them share and agree on where it starts and ends. It ends a second early, so a skip never cuts into the next scene.
    • The credits are music of at least 15 s, shared the same way, that runs on to within a minute of the end. They start a few seconds late, so the last scene is never cut short.
    • Shows whose end music changes every episode get no credits point. A point in the last 30 s is dropped, and the players' own Up Next timing applies.
  • Chapters still count: an Opening / OP chapter, then the detected intro, then an Intro chapter. For credits, a Credits / Ending / ED chapter, then the detected credits. Sessions carry the result in markers, as before. A session that switches to another version gets that version's markers.
  • A season's markers follow as its episodes are ready. An episode matched with fewer than four partners is matched again as more of its season is analyzed. A new file version, or a later analysis version, is analyzed again. Fingerprints of files that left the library go at the regular clean-up.
  • Media Server → Background jobs shows the new Intro & credits kind with its progress, queue and disk use.

Forced subtitles

  • Auto-select forced subtitles (autoForcedSubtitles in /me/preferences, default true). Turned off, no forced track is picked automatically. With Forced only, or Only for foreign audio while the audio is in your language, that means no subtitles. Foreign audio still gets your language's full track. A forced track still shows when you pick it, so an image-based one is never burned in, making a transcode, unasked.

Snacks Player 1.2.0

Faster scrubbing

  • Quick taps keep speeding up. ← and → still step 10 s, then 20, 30, 60 and 120 s as the presses add up (at most 1/25 of the title a step). A press within 450 ms of the last one, in the same direction, keeps climbing even after the previous seek. A slower tap or a reversal starts again at 10 s.
  • Holding the key scrubs by time. It moves 120 s a second at first, then after half a second it rises to a quarter of the title a second (5–30 minutes a second). It never moves slower than the step ladder. The thumbnail follows the preview, and the video seeks once, on release.

Navigation sounds

  • A soft tick when the arrow keys move the cursor somewhere new. It doesn't sound at an edge, on the first arrow after using the mouse, or in the video player. Settings › Interface › Navigation sounds turns it off.

Subtitles

  • Auto-select forced subtitles in Settings › Playback (needs a Snacks 3.2.0 server).
  • Carried to the next episode: with the setting off, subtitles that were off stay off. A carried regular or SDH choice never lands on a forced track. A forced track you picked yourself is still carried.

Snacks for Fire TV 1.2.0

Faster scrubbing

  • The same steps and speeds as Snacks Player. Quick taps on the timeline keep climbing, and taps at an easy pace still move 10 s each. Hold Left or Right and the preview speeds up the longer you hold, then plays from there when you let go. A hold begun with the controls hidden carries on along the timeline.
  • Fast-forward and Rewind still jump 30 s and 10 s on a press. Held, they scrub the preview the same way, never less than their own step, and play from it on release.

Navigation sounds

  • The TV's own navigation sound when the remote moves the cursor. It follows the TV's Navigation sounds setting and stays silent in the video player. Settings › Interface › Navigation sounds turns it off.

Subtitles

  • Auto-select forced subtitles in Settings › Playback (needs a Snacks 3.2.0 server). It carries subtitles the same way as Snacks Player.

Control panel

  • Advanced Video saves over plain HTTP. On a server opened by its network address over plain HTTP (not HTTPS or localhost), the Advanced Video editor made ids the server could not read for new profiles and rules. Saving a policy with a new profile, rule or quick-start template failed with 400. The editor now makes proper GUIDs in every browser.
  • The Media Server menu shows a pressed or current row in the Snacks purple instead of Bootstrap's blue.

Tests

  • EpisodeMarkerTests (new):
    • Shared stretches found at other times, through a quieter copy and short gaps.
    • The intro where two partners agree, ended a moment early, and the credits a moment late. One partner alone is not enough.
    • Another version of the same episode is never a partner, and partners are the nearest ten.
    • Window sizes, markers stored and read back, and the order of chapters and detected markers in a session.
  • MarkerAnalyzerTests (new): each episode's intro and credits from its season's sound, episodes found by the job service by itself, files too short or without sound skipped, and leftover fingerprints swept.
  • PlaybackSessionApiTests: a session carries the detected markers of its version through a reopen.
  • PlaybackAdminApiTests: markers among the Background jobs disk kinds.
  • SubtitleTests, PlayerCredentialTests and PlayerAuthApiTests:
    • No forced track in any mode with automatic forced subtitles off.
    • autoForcedSubtitles on by default, stored, and changed only when sent. Invalid values are refused.
  • PlacedSchedulerTests: a race in a cluster retry test removed.
  • CI now runs the Advanced Video editor checks. They include ids made in secure, plain-HTTP and no-Web-Crypto contexts. The server log is shown only after the smoke-test server started.
  • Snacks Player: nav-sound (new), plus focus key moves, scrubbing, subtitle carry and preferences.
  • Fire TV: PlayerRulesTest (scrubbing), NavigationFuzzTest, TrackCarryTest, SearchAndSettingsTest and PageNavigationTest.

Documentation

  • /docs/index.html:
    • autoForcedSubtitles in GET / PUT /me/preferences.
    • How a session's markers are found.
    • The Intros and credits background work: its markers/ disk use, and MediaJobConcurrency.
    • The markers kind on GET /api/media-server/jobs.
  • README.md: intro and credits detection in the feature list and the media server section.

Files Changed

Media server

  • Snacks/MediaServer/Playback/Markers/AudioFingerprint.cs, EpisodeMarkers.cs, FingerprintMatch.cs (new): fingerprints and season matching
  • Snacks/MediaServer/Playback/Extras/MarkerAnalyzer.cs (new), MediaJobService.cs, Snacks/MediaServer/Playback/MediaPlaybackRegistration.cs, Snacks/MediaServer/Data/Entities/MediaAssetEntities.cs: the markers background job
  • Snacks/MediaServer/Api/Playback/PlaybackSessionService.cs, Snacks/MediaServer/Playback/Sessions/PlaybackSession.cs, Snacks/MediaServer/Playback/Timeline/ChapterMarkers.cs: detected markers in sessions, Opening chapters first
  • Snacks/MediaServer/Accounts/PlayerAccountModels.cs, Snacks/MediaServer/Api/MeController.cs, Snacks/MediaServer/Playback/Subtitles/SubtitleDefaults.cs: autoForcedSubtitles
  • Snacks/wwwroot/js/media-server/jobs.js: Intro & credits on Background jobs

Control panel

  • Snacks/wwwroot/js/settings/advanced-video.js: GUIDs without crypto.randomUUID
  • Snacks/wwwroot/css/site.css: dropdown menu colours

Snacks Player

  • players/desktop/renderer/js/core/nav-sound.js (new), focus.js, ui-prefs.js, players/desktop/electron/prefs.cjs, players/desktop/renderer/js/main.js: navigation sounds
  • players/desktop/renderer/js/player/scrub.js, player.js: faster scrubbing
  • players/desktop/renderer/js/player/track-carry.js, controller-model.js, players/desktop/renderer/js/views/settings.js: Auto-select forced subtitles, Navigation sounds setting

Snacks for Fire TV

  • players/firetv/app/src/main/java/com/snacks/player/tv/ui/NavSound.kt (new), MainActivity.kt, ui/App.kt, ui/Components.kt, ui/Menu.kt, data/Settings.kt: navigation sounds
  • players/firetv/app/src/main/java/com/snacks/player/tv/playback/Scrub.kt (new), ui/player/PlayerScreen.kt: faster scrubbing
  • players/firetv/app/src/main/java/com/snacks/player/tv/playback/TrackCarry.kt, ui/player/PlayerViewModel.kt, api/ApiModels.kt, ui/settings/SettingsScreen.kt: Auto-select forced subtitles, Navigation sounds setting

Documentation

  • Snacks/wwwroot/docs/index.html, README.md

Tests and CI

  • Snacks.Tests/MediaServer/Playback/EpisodeMarkerTests.cs (new), MarkerAnalyzerTests.cs (new), PlaybackSessionApiTests.cs, PlaybackAdminApiTests.cs, SubtitleTests.cs
  • Snacks.Tests/MediaServer/Accounts/PlayerAuthApiTests.cs, PlayerCredentialTests.cs, Snacks.Tests/MediaServer/Realtime/PlacedSchedulerTests.cs
  • scripts/test-advanced-video-ui.mjs, .github/workflows/ci.yml
  • players/desktop/tests/: renderer/nav-sound.test.mjs (new), renderer/focus.test.mjs, renderer/hygiene.test.mjs, renderer/player-controls.test.mjs, renderer/player-track-carry.test.mjs, renderer/session-oracle.test.mjs, renderer/ui-prefs.test.mjs, shell-fixtures/media-api.cjs, shell-prefs.test.cjs
  • players/firetv/app/src/test/java/com/snacks/player/tv/: NavigationFuzzTest.kt, PageNavigationTest.kt, PlayerRulesTest.kt, SearchAndSettingsTest.kt, TrackCarryTest.kt

Version bumps

  • Snacks/Snacks.csproj: <Version>3.2.0</Version> (single source of truth)
  • electron-app/package.json / package-lock.json, build-and-export.bat, Snacks.Tests/Settings/AppVersionTests.cs, Snacks/wwwroot/docs/index.html: synchronized via sync-version.mjs; the docs page's updated date moves to 2026-12-05
  • players/desktop/package.json / package-lock.json: Snacks Player 1.2.0
  • players/firetv/app/build.gradle.kts: Snacks for Fire TV versionName 1.2.0, versionCode 6; players/firetv/README.md

Full documentation: README.md · /docs/index.html on a running instance