github derekshreds/Snacks v3.0.0
Snacks v3.0.0

59 minutes ago

Snacks v3.0.0

Automated Media Library Transcoder

Snacks can now serve your library as well as transcode it. The new, optional media server turns a Snacks install into a Plex-style home server: libraries of movies, shows and music with artwork and metadata, profiles with PINs and parental controls, and playback that picks Direct Play, Direct Stream or Transcode per device, with adaptive quality, HDR, subtitles and seek thumbnails. On a cluster, nodes can encode the streams too, and when a node freezes while someone is waiting on it, the master gives that video to another encoder instead of waiting out the node's timeouts. It plays in Snacks Player 1.0.0, the new desktop app attached to this release. The media server is off by default: a transcoder-only install creates no media database, runs no media work, and behaves as before. Every install also gets a database fix (a rare SQLite connection mix-up under load), and clusters get parallel heartbeats, IPv6 peers, and cluster settings saves that no longer switch HTTPS off.


Upgrade notes

  • Nothing changes until you turn the media server on. Upgrading a 2.20.x install adds no setting you must set, no port, and no volume. snacks.db keeps its schema: 3.0.0 adds no migration to it. No config/mediaserver.json is written until an administrator saves the Media Server tab.
  • Turning it on: Settings → Media Server → Enable the media server (applies at once, no restart), or pin it with SNACKS_MEDIA_Enabled=true. On enable, Snacks creates and write-checks its folders and creates config/mediaserver.db. It is created on first enable, not on first start, and its migrations run then and on every later start. If that fails, the tab says why and the media server stays off. Any media server setting can be pinned as SNACKS_MEDIA_<Property>.
  • Storage it adds once enabled:
    • config/mediaserver.db (libraries, catalog, player accounts, watch state) and config/media-metadata/ (artwork, seek thumbnails up to 20 GB, motion previews up to 10 GB). Both sit in config/, which Docker installs already persist. Back them up with the rest of config/.
    • <work>/transcode-cache holds disposable video segments, 20 GB by default. In Docker, give it its own volume (/app/work/transcode-cache) on a fast disk, so it stays out of the container's writable layer: docker-compose.media.yml and the unraid/snacks-media-server.xml template already do.
  • No new port. Players connect to the web port, 6767. They are accepted from the local network only. Remote players need control-panel sign-in, Allow players outside my local network, and your own HTTPS reverse proxy that sends X-Forwarded-For.
  • Libraries must be inside what Snacks may read. In Docker that means inside /app/work/uploads: mount extra shares below it (read-only is fine).
  • Upgrade the master and every node together. A node on another major version is turned away, whether discovery found it or it was added by URL (2.x let a node added by URL join a master of another version). So a 3.0.0 master and 2.x nodes do not work together. A node on another Snacks version is never sent playback work.
  • Cluster nodes that should encode streams: on the master, turn on Accept playback chunks in each node's Hardware Devices dialog (the gear on its card). It is off by default, has no environment variable, and needs no extra port or volume. A node keeps a chunk's segments in /app/work/playback-chunks until the master has fetched them, at most 2 GB. On a small Unraid docker.img, give that folder its own path.
  • Clusters over HTTPS: in 2.20.x, saving the Cluster settings page reset useHttps (and staleReceiveTimeoutSeconds) in config/cluster.json to their defaults, so a cluster set to HTTPS quietly went back to HTTP. 3.0.0 keeps them. After upgrading, check useHttps on every instance that should use it.
  • Behind a reverse proxy: the new SNACKS_TRUSTED_PROXIES (a proxy's address, or its network) lets sign-in throttling, and a cluster master's view of nodes that reach it through the proxy, see the real client address. It never makes anyone local. Without it, nothing changes.
  • While the media server is on: replacing or deleting a file someone is watching waits up to PlaybackLeaseWaitSeconds (120 s), and batch encodes may yield the CPU to playback. In Docker, that needs root with CAP_SYS_NICE (cap_add: [SYS_NICE], or --cap-add=SYS_NICE on Unraid). Transcoded output is the same either way.
  • Snacks Player needs a Snacks server v3.0.0 or later with the media server on, at least one library, and a player account created under Media Server → Players & households.

The media server

An optional module built into the same app. It keeps its own database, never reads or writes snacks.db, and is independent of Plex and Jellyfin (which Snacks can still ask to rescan).

Libraries, metadata and artwork

  • Movies, shows and music, in the usual folder and file naming. Editions and versions sit side by side, and subtitles as sidecar files. Scans record new, changed, moved and missing files, and run on a schedule, on demand, and right after the transcoder replaces or deletes a library file.
  • Missing files are kept for 30 days and moved files keep their watch progress. A scan that would make more than 20 % of a library disappear changes nothing and asks first, which protects against an unmounted share.
  • Metadata and artwork from TMDB, out of the box, with Snacks' built-in TMDB key; enter your own under Settings → Connections → TMDb and it takes over (the transcoder's original-language lookup no longer needs a key either). Fetch titles and artwork from TMDB in the media server settings (on by default) keeps everything local when turned off. Sonarr and Radarr catalogs help recognize titles. Media Server → Catalog & matching shows how each title was recognized, and lets you fix a match, split a file off, or lock a title.
  • Music info and artwork online, also on by default (Fetch music info and artwork online in the media server settings): artist photos, backgrounds and logos from fanart.tv (Snacks' built-in key; a personal key under Settings → Connections → fanart.tv shows new artwork sooner), artist biographies from Wikipedia, genres from MusicBrainz, and Cover Art Archive covers for albums with no art of their own. Albums are found by the MusicBrainz ids Picard writes into tags, or by an exact name, never a guess. Your folder and embedded art always wins, and names from your tags are never changed. MusicBrainz allows about one request a second, so the first pass over a large music library takes a while. Turned off, music stays local: names and covers come from your files.

Profiles, households and PINs

  • Player accounts are separate from control-panel logins and are created by the administrator. A device signs in once and stays signed in.
  • Households: every household profile appears in Who's watching?. PINs (4–8 digits) protect switching to a profile, and wrong PINs are slowed down.
  • Parental controls: a maximum movie and TV rating, unrated titles shown or hidden, and which libraries a profile may see. They can be set only while control-panel sign-in is on.
  • Changes apply at once. A new PIN, new limits, a disabled profile or a signed-out device ends that profile's streams, and the player is told why.
  • PIN profiles during playback: a film started late in the sign-in's 12 hours is not interrupted by the PIN pad. While the device is playing, the token renews without the PIN. The profile locks again at most 30 minutes after its last stream, and never later than 24 hours after the PIN was entered. Every one of these numbers is a setting.

Playback

  • Direct Play sends the original file when the player can play it as it is. Direct Stream copies the video into HLS, converting only the audio (to AAC, 5.1 where the player can output it), when the container or audio is the problem. Transcode covers everything else, encoded just ahead of the playhead and cached.
  • Adaptive quality: 1080p, 720p and 480p qualities, H.264 with an HEVC 1080p quality where a hardware HEVC encoder passes its self-test, plus the Original when it can be streamed. Auto adapts to the connection; picking a quality locks it.
  • HDR: HDR10 and HLG pass through to players that report HDR. Where an HEVC encoder passes the HDR self-test, an HDR session also gets HDR qualities below the Original, so a slow link steps down without leaving HDR. Other players get tone mapping to SDR, with the best mapper that passes a real PQ test-pattern check on that machine. Dolby Vision profiles 8.1 and 7 play as their HDR10 base layer; no real Dolby Vision title has been played in testing yet.
  • Subtitles: text subtitles (SRT, ASS/SSA, mov_text, WebVTT; embedded or sidecar) are drawn by the player, and an ASS/SSA track also comes as its original styled script with its fonts. Image subtitles (PGS, VobSub, DVB) are burned into a transcode. Default languages and the subtitle mode are set per profile.
  • Seek thumbnails, motion previews and resume frames are made in the background at the lowest CPU priority, one at a time, and pause while players need the encoders. They never touch the batch queue.
  • Hardware: VideoToolbox on macOS. Elsewhere, NVENC, Quick Sync, VAAPI or AMF, each used only after its self-test passed on that machine, otherwise libx264. The NVIDIA, Intel and AMD playback encoders have been validated against the Docker image's FFmpeg, but have not yet encoded on real hardware in the maintainers' testing. The self-test guards each machine.
  • Watching it: Media Server → Now playing, History, Encoders and Background jobs show what plays, what played, how the encoders tested, and what the background work does.

Cluster playback

  • Cluster nodes can encode the media server's transcodes, so a cluster serves many more simultaneous streams than one machine. Turn on Accept playback chunks for a node in the master's Hardware Devices dialog; a node never runs the media server itself. Players only ever talk to the master, which checks, caches and serves every segment.
  • The master sets each GPU's limits. Per device (every GPU and the CPU): Max encodes, Library jobs and Streams. Nodes pick them up within a heartbeat and show Managed by the master. By default a GPU runs one more encode than its library jobs (its session limit on NVIDIA), so it is no longer overcommitted when streams start beside library work.
  • Streams first. When a viewer is waiting for a stream and every GPU is full, the library job with the least progress is stopped and requeued (not failed, no retry count), and the stream takes its slot. The CPU is used only after that. Jobs that are finishing are never stopped.
  • Node names on cluster cards open that node's own web page in a new tab.
  • Node settings saves merge. POST /api/cluster-admin/node-settings changes only the members a request names, so saving a node's Hardware Devices no longer clears its schedule, display name or shared-storage opt-out, and a schedule edit no longer restores old device numbers.
  • Encode on the master too, or only on nodes: Encode playback on this server (on by default) decides whether the master's own encoders take part.
  • The cluster dashboard shows a PLAYBACK used/cap line for the master and each node, beside the batch slots.

Frozen-node failover

When a node freezes, loses power, or stays alive but stops making progress, a viewer does not wait out the node's generic timeouts:

  • When a viewer needs a node's next piece of video now (it is due within 10 seconds, or it is the start of playback) and the node has delivered nothing for about one and a half times as long as that piece should take, plus about three quarters of a second (never less than 2.5 seconds), the master gives that piece up at once and makes it on another encoder, if one can take it now. A free slot counts, and so does encode-ahead work it may stop.
  • That node gets no new work for 15 seconds, or 30 seconds when it happens again within 2 minutes. Its other work carries on. A piece is moved this way at most three times.
  • A raised Cluster node segment wait (ClusterNodeSegmentTimeoutSeconds) applies only while no viewer needs the chunk within 10 seconds. A viewer who needs that video now waits it out only when no other encoder can take the work.
  • Work the master stops on a node, including a request the node never answered, is deleted on the node in the background, so the viewer never waits for that.
  • A frozen node is also noticed by the master's liveness probe, every 2 seconds. Viewers with a buffer play on without a stall.
  • Measured on a loaded 3-node test cluster on one Mac: the master moved the work after about 3 seconds of silence at a start or for a piece due right away, and after about 5.5–7.5 seconds otherwise. A viewer starting a film on a frozen node waited a median of about 4.5 seconds (7.8 seconds without this move). A node freezing mid-film cost the viewer about 12 seconds (16 without it) at the default node segment wait, and about 9 seconds (259 without it) with that wait raised to 250 seconds. Your figures will vary with your machines, network and load.

Snacks Player 1.0.0

The desktop app for the media server, attached to this release. It has a cinema-style Home with title logos, artwork and muted motion previews; rails for Continue watching and My list; profiles and PINs; the adaptive player with HDR and subtitles (styled ASS subtitles included); and music playback, with artist photos, genres and biographies. Enter the server's address with its port (http://<server>:6767) and sign in with a player account.

Runs on macOS 12 or later, Windows 10 or later, and Linux x64 and arm64 (AppImage, .deb, tar.gz). It needs a Snacks server v3.0.0 or later with the media server on.

Snacks for Fire TV 1.0.0

A native app for Amazon Fire TV (Fire OS 6 or later; other Android TV devices with Android 7.1 or later), attached to this release as an APK. It has Home with a spotlight and rows, Movies and TV Shows with sorting, filters and an A–Z jump, title pages with seasons and episodes, search with an on-screen keypad, music with Now Playing, profiles and PINs, and the player with subtitles. To install it, turn on ADB debugging and Apps from Unknown Sources in the Fire TV's Developer options. Then install the APK with adb install, or with the Downloader app using the APK's link from the release page. Open Snacks, enter the server's address (http://<server>:6767) and sign in with a player account.


Database fix

Snacks now uses Entity Framework Core and Microsoft.Data.Sqlite 10.0.13 (from 10.0.10). Under concurrent load, the 10.0.10 connection pool could rarely give one SQLite connection to two users at once, so one piece of work could run inside another's transaction. That showed up as rare, random database errors. snacks.db uses that pool too, so this fix reaches every install, including transcoder-only ones.


Cluster

  • Heartbeats run in parallel. Each node is probed with its own timeout. A frozen or unreachable node no longer adds its timeout to every other node's heartbeat, which with a few such nodes could push healthy nodes past the node timeout.
  • Cluster settings saves keep every setting. The settings page no longer resets useHttps and staleReceiveTimeoutSeconds (see the upgrade notes), and a save that does not name a node id keeps the instance's identity instead of minting a new one and leaving a ghost entry behind.
  • IPv6 peers: a node, master or discovery sender with an IPv6 address gets a valid URL (http://[2001:db8::5]:6767). Before, every call to such a peer failed.
  • Discovery proves the secret first. A node found only by UDP discovery is sent the shared secret only after it answers a fresh challenge for the address it was reached at, so a replayed or relayed announcement draws nothing. Masters and nodes added by URL are unchanged; a peer behind NAT must be added by URL. Every 3.x release has the challenge (2.x nodes are turned away by the major version anyway).
  • Reverse proxies in front of a master: with SNACKS_TRUSTED_PROXIES set, a node that reaches the master through a listed proxy is recorded at its own address, not the proxy's. Any other peer's forwarding headers are ignored.
  • Culture-independent values: times in the API, the upload length a master sends to a node, and the dashboard's local time are written in one invariant form. Before, a server whose system language uses another time separator (Finnish, for example) wrote dates that browsers could not read, and one whose language uses another calendar (Thai) wrote the wrong year. While a cluster runs mixed 2.x and 3.0.0 versions, a node on a decimal-comma host may show a wrong length on its upload progress card. Encoding is not affected. Upgrade the master and nodes together.
  • Version mismatches are visible. A node on another major version is refused at the handshake (HTTP 426) with the reason, whether discovery found it or it was added by URL. The turned-away node shows a notice saying what to update to, and the master's dashboard lists it. Nodes on a different version of the same major show a Version differs badge, and the master's Updates list names every node behind the latest release and how each one updates.
  • Workers report the free space of the disk their jobs use. A Docker worker reported the free space of the container's root overlay instead of the bind mount its jobs land on, so the master skipped it for large files ("no positive slot score"). It now reports the filesystem that holds its job folder (NodeTempDirectory, or <work>/remote-jobs). Thanks to Nonobis for the report and the fix that pointed the way.

Transcoding fixes

  • Hardware HEVC encoders encode H.264 again instead of copying it. With hevc_videotoolbox, hevc_nvenc, hevc_qsv, hevc_vaapi or hevc_amf, an H.264 file under the bitrate target counted as already at target: Process Item copied its video (-c:v copy) and scans skipped it. The target codec now comes from the encoder name (hardware AV1 encoders count as AV1), and a job pinned to another GPU vendor gets that vendor's HEVC encoder.
  • options is optional on process-file, process-directory and analyze-directory. When it is omitted, null or {}, the server's saved settings are used, output location included. Before, an omitted options meant factory defaults, which wrote <name> [snacks].mkv beside the source.
  • No remux just to copy audio. With Preserve original audio off and an audio output whose codec and layout every kept track already has, Hybrid, MuxOnly and Process Item counted the file as having audio work and remuxed it, copying the same tracks. A file now counts only when the planned audio differs from its own (a track encoded, dropped, added or reordered).
  • Legacy audio fields in API requests take effect. twoChannelAudio, audioCodec and audioBitrateKbps become audioOutputs when a request has no audioOutputs. When it has one, even [], that list wins.

Transcoding options

  • Output check before a file is replaced. Before any output replaces or joins its original (local, cluster, remux and music jobs), its duration must match the source's within 0.5% (2 s for short files); on by default. An optional size check (off by default) accepts 5% to 101% of the source's size. A failing output is deleted, the original kept, and the job fails with the reason.
  • File Replaced notification. A new notification event, off by default, fires after an output replaces its original or is written beside it. Webhooks get the job id, both paths, the action, sizes, durations and codec; a failed delivery is retried twice and never holds up the job.
  • Sidecar subtitle controls. Sidecars can be limited to the best track per language, named with 2-letter (.en.srt) or 3-letter (.eng.srt) tags, and skipped for languages that already have one. The defaults keep the old behaviour.
  • Tag HEVC as hvc1 for Apple devices. With an MP4 output, an HEVC file tagged hev1 gets a retag-only remux to hvc1 (video copied, never re-encoded). The tag is read when a file is probed, so run Process Directory on an existing library. Advanced Video rules can match the new Codec tag field, e.g. a MuxOnly rule for hev1.
  • Matching audio tracks. A source track that already matches an audio output (same codec and layout) is still copied, at any bitrate. New opt-ins re-encode one whose known bitrate is more than 5% above the output's, and limit which AAC profiles copy (e.g. LC only).

Hardware encoding

  • Every GPU is used. Detection finds each card: every Intel and AMD render node on Linux (each with its own VAAPI driver), every NVIDIA GPU (-gpu N), and each confirmed Intel adapter on Windows. Jobs spread across them. Before, Linux used only the first render node and one NVIDIA GPU.
  • Turn cards on or off in the Hardware Devices list, one row per card with its own slots. Open it with the Hardware button on this machine's card in the Queue page's Cluster panel (on a cluster master, the gear on each node's card). A per-vendor setting saved before 3.0.0 still applies to each card of that vendor.
  • Rockchip RK35xx (experimental, arm64, Linux): H.264 and HEVC through Rockchip MPP, with MPP decode and RGA scaling. It is used once its decode → scale → encode check passes at startup, and needs a Rockchip BSP kernel (see docker-compose.gpu.yml). It encodes 8-bit only: HDR sources keep HDR10 on the CPU unless tone mapping is on.
  • NVIDIA on arm64 takes the same NVENC path as on amd64 (the arm64 FFmpeg has NVENC; the NVIDIA runtime must be installed).
  • V4L2, Vulkan, Media Foundation and D3D12 encoders in an FFmpeg build are no longer listed as untested CPU encoders.

Docker image

  • The Jellyfin signing key is pinned to its fingerprint, so a swapped key fails the build instead of signing the FFmpeg in the image.
  • amd64 and arm64. The image is published for both. Jellyfin builds VAAPI for amd64 only, so arm64 has none.
  • Updates without a new image (opt-in). With Install updates automatically on, a container downloads the signed server release into /app/work/app, and after Restart (or by itself on a worker its master allows) restarts into it. A version that does not start goes back to the previous one. A release that needs a new image still asks for docker compose pull. Mount /app/work/app to keep updates across recreation: the compose files and Unraid templates now do. Nothing gets the Docker socket; SNACKS_CONTAINER_UPDATES=false turns it off.

Updates

  • Release check: Snacks asks GitHub for the latest release at most every 12 hours, anonymously, and shows how to update this install. It can be turned off, or vetoed with SNACKS_UPDATE_CHECK=false.
  • Automatic install is opt-in, and in a cluster the master decides for every node. Before installing, Snacks winds down: no new encode starts or is sent to a worker, the running ones finish, then it restarts.
  • Desktop apps (Snacks and Snacks Player) update themselves on macOS (signed builds), Linux (AppImage and .deb) and Windows. On Windows an update installs only after a click on Restart and Windows' administrator prompt, and only when it is signed with the same certificate as the installed app.

Linux desktop

  • Snacks and Snacks Player for Linux, x64 and arm64: AppImage, .deb and tar.gz. Snacks bundles the Docker image's FFmpeg (jellyfin-ffmpeg 7.1.4-3).
  • Ubuntu 24.04 and later: the .deb installs an AppArmor profile and runs sandboxed. The AppImage starts without Chromium's sandbox there and says so once; the README has the fix.

Known issues

  • Snacks Player: rare profile and sign-in timing problems. When a profile's or the device's access ends at the same moment that you press, unlock or leave a profile, or you press something while Sign out is still running, the player may show a missing or doubled message, a briefly wrong screen, or a PIN pad that flashes. Access is always enforced by the server: none of these cases gives a profile or a device access the server has not granted.
  • A slow cluster node that still produces video can make a viewer wait. The master moves work off a node that delivers nothing. A node that keeps delivering, but more slowly than expected, keeps its work, and a viewer may see the player's Taking longer than usual message until the node catches up. Snacks does not yet make the same piece on two encoders at once. The opposite case is untested: whether the master can wrongly move work off a node that is slow but healthy under heavy load.
  • With nothing else to take the work, the viewer still waits. In a cluster where every other encoder is busy, or where the frozen node is the only one allowed to encode (local encoding off, one node), the viewer waits until an encoder is free again or the node recovers.
  • The moved work can land on a busy node. When the master moves a frozen node's work, it can give it to a node that is already busy making the same viewer's video ahead. That can add a few seconds to the viewer's wait.
  • Under heavy load, a frozen node's first piece can take longer to move. Until the master has timed that node's own starts, it judges the node by the average start time of all its encoders. Under heavy load that average grows, so the move can take about 7 seconds instead of about 3.
  • A frozen node can stay busy after it recovers. If a node freezes and the master's background request to delete its stopped work is lost, the node keeps that work until its own deadline after it thaws. For that time it may count as busy and take less new playback work. It clears by itself.

Tests

  • Media server suites (new) cover the module end to end through a real HTTP pipeline: settings and environment overrides, the player and admin APIs, accounts, PINs and parental controls, library scans and matching, playback decisions, packaging and the transcode cache, subtitles and HDR, background media jobs, and cluster playback. That includes moving a chunk off a node that delivers nothing while a viewer waits, and never moving one off a node that keeps producing at its expected speed. GET /api/media/v1/server reports features.cluster only while this server is a cluster master with a ready node that accepts its playback chunks.
  • Database pool — bursts of concurrent openers on both databases never share a SQLite handle and never close a live one.
  • Cluster — playback slots beside batch slots, configuration saves that keep every setting and the node's identity, IPv6 peer URLs, culture-independent wire values, and heartbeats that a frozen node no longer delays.
  • End-to-end (e2e/) — streaming, cluster playback (a node killed or frozen mid-chunk: no stall, no error), and media extras.

Documentation

  • /docs/index.html gains the Media Server guide (every setting) and the Media Server API reference (the admin routes and the player API v1).
  • README: the optional media server, Snacks Player and Snacks for Fire TV, the cluster playback switch, the Linux packages, updates, and every GPU being used.
  • Licence notices: the Mac, Windows and Linux apps ship FFmpeg's GPL-3.0 licence beside it, with a source note (version, build configuration, where to get the source) and each bundled library's licence. Snacks and Snacks Player also ship the licences of their update library and its dependencies.
  • docker-compose.media.yml, new: the media server override, which pins the module on and maps the transcode cache. unraid/snacks-media-server.xml, new: the Unraid template with the media server on. The other compose files and unraid/README.md explain the media server, playback nodes, and GPU passthrough for playback.

Files Changed

Media server (new)

  • Snacks/MediaServer/ — the module: libraries and catalog, metadata and artwork, accounts and households, the player API (/api/media/v1) and the admin API (/api/media-server), the playback engine (decisions, HLS packaging, the transcode cache, subtitles, HDR, seek thumbnails and previews), and cluster playback (placement, the node chunk service, failover)
  • Snacks/Views/MediaServer/, Snacks/wwwroot/js/media-server/, Snacks/wwwroot/js/settings/panels/media-server-panel.js — the control panel's Media Server pages and settings tab
  • Snacks/Program.cs — registers the module (off by default) and the node playback service

Transcoder hooks

  • Snacks/Services/IMediaFileEvents.cs, IPlaybackLeaseRegistry.cs, IBatchProcessPriority.cs (new) — no-op extension points that the media server replaces: file events, playback leases on replace and delete, and batch priority while someone watches
  • Snacks/Services/TranscodingService.cs, Snacks/Controllers/LibraryController.cs — honor playback leases and report file changes
  • Snacks/Services/FileService.cs — shares its video and music extension lists; Snacks/Services/IntegrationService.cs — shares its Sonarr/Radarr path mapping with the media server's title matching
  • Snacks/Services/Tmdb/ (new) — the TMDB credential (your key, else Snacks' built-in one), shared by the original-language lookup and the media server
  • Snacks/Services/FfprobeService.cs, Snacks/Models/ProbeResult.cs, Snacks/Services/FfmpegCapabilityService.cs — chapters, HDR10+ detection and the filter inventory for the media library
  • Snacks/Services/AuthMiddleware.cs, Snacks/Services/PlayerEndpointAuth.cs (new), Snacks/Services/RequestEncodingGuard.cs (new), Snacks/Services/ClientNetwork.cs, Snacks/Services/EnvConfigOverrides.cs — player authentication, SNACKS_TRUSTED_PROXIES, SNACKS_MEDIA_* overrides

Cluster

  • Snacks/Services/ClusterService.cs — parallel heartbeats, playback slots on the dashboard, the configuration-applied event
  • Snacks/Services/Slots/SlotLedger.cs, SlotClass.cs (new), SlotReservation.cs, Snacks/Services/ClusterCapacityPolicy.cs — playback slots counted apart from batch slots, device session limits
  • Snacks/Models/ClusterConfig.cs, ClusterNode.cs, NodePlaybackCapabilities.cs (new), Snacks/Services/Cluster/ClusterPlaybackAdvertisement.cs (new) — the playback-chunk settings and advertisement
  • Snacks/Controllers/ClusterAdminController.cs — the full configuration in GET config, node identity kept on save, playback slots in the status
  • Snacks/Services/ClusterPeerUrl.cs (new), ClusterController.cs, ClusterDiscoveryService.cs, ClusterFileTransferService.cs, ClusterNodeJobService.cs, DiagnosticsController.cs — IPv6 peer URLs, forwarded node addresses, culture-invariant headers
  • Snacks/Json/UtcDateTimeConverter.cs — invariant date format
  • Snacks/Views/Shared/_ClusterSettings.cshtml, Snacks/wwwroot/js/cluster/* — the Accept playback chunks switch and the PLAYBACK line
  • Snacks/Models/NodeSettings.cs, Snacks/Services/Slots/StreamPreemption.cs (new), Snacks/MediaServer/Realtime/ClusterChunkPlacement.cs, Snacks/Views/Shared/_AppModals.cshtml — master-set Max encodes / Library jobs / Streams and Accept playback chunks, streams first, node links

Hardware encoding

  • Snacks/Services/Hardware/HardwareCardScanner.cs, HardwareCards.cs, Snacks/Services/RockchipVideoGraph.cs (new) — per-card detection, card ids, Rockchip MPP shapes
  • Snacks/Services/TranscodingService.cs, VideoEncoderRegistry.cs, Routing/VideoJobRouter.cs, ClusterCapacityPolicy.cs, ClusterNodeJobService.cs, ClusterDiscoveryService.cs, ClusterService.cs, Snacks/Models/HardwareDevice.cs, ClusterNode.cs, EncoderOptions.cs — per-card commands, scheduling and cluster compatibility
  • Snacks/MediaServer/Playback/Ffmpeg/*, Snacks/MediaServer/Realtime/ClusterPlayback*.cs — playback on card ids
  • Snacks/wwwroot/js/cluster/hardware-cards.js (new), cluster-dashboard.js, override-dialog.js, dashboard/dashboard.js, the Hardware acceleration selects — the Hardware Devices list and card chips
  • Snacks/entrypoint.sh, docker-compose.gpu.yml, docker-compose.yml — Rockchip device groups and notes

Database

  • Snacks/Snacks.csproj — Microsoft.EntityFrameworkCore.Sqlite and .Design 10.0.13

Docker and deployment

  • Snacks/Dockerfile, .dockerignore — pinned Jellyfin key, arm64 build, the e2e output kept out of the build context
  • docker-compose.media.yml (new), docker-compose.yml, docker-compose.gpu.yml, deploy-compose.yml, unraid/snacks-media-server.xml (new), unraid/snacks.xml, unraid/README.md

Documentation

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

Tests

  • Snacks.Tests/MediaServer/ (new) — the module's suites, including the database pool's behavior under concurrent load
  • Snacks.Tests/Cluster/, Snacks.Tests/Security/, Snacks.Tests/Pipeline/, Snacks.Tests/Video/ — playback slots, configuration saves, peer URLs, wire culture, heartbeats, forwarded addresses, the request encoding guard, playback leases and batch priority
  • e2e/ — streaming, cluster playback (including a frozen node) and media extras scenarios

Version bumps

  • Snacks/Snacks.csproj — <Version>3.0.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

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

Don't miss a new Snacks release

NewReleases is sending notifications on new releases.