Lumen rebuilds the decode times
Matroska stores only presentation times; MP4 needs decode times too. Lumen sorts each group's presentation times and deals them out in decode order: the exact timeline, whatever the reorder depth.
The playback engine behind Laterna.
Lumen reads the file exactly as it sits on disk, repackages it in the browser tab and hands it to the device's video chip. 4K, HDR10, Dolby Vision and multichannel sound included.
From the server's disk to the video chip, every stage has its own part. Bytes travel, pixels stay untouched.
Before every film, Lumen asks the browser: this format, this encoder, this Dolby Vision profile. Its answer picks the path.
A format out of reach or a connection too slow: Jellyfin takes over in HLS, at the same second, with the same track.
Lumen recognises the format from the file's own bytes. Depending on the device, each track is copied as is or decoded in the tab, and Jellyfin's player takes the rest.
copied handed to the browser as isWASM decoded in the tab, then re-encoded to AAC or Opusserver played by Jellyfin's server player
Matroska stores only presentation times; MP4 needs decode times too. Lumen sorts each group's presentation times and deals them out in decode order: the exact timeline, whatever the reorder depth.
Before starting or seeking, Lumen reads the frame's first NAL unit: only IDR, CRA and BLA open a segment. When the point it finds lands too far, it steps back through the index, 12 seconds at a time.
The computing is nearly free, so Lumen shapes its requests: six-chunk readahead, chunks of one read requested together, the file's header and index read in parallel at open, stale reads dropped on every seek.
Each system orders its channels differently. Lumen hands the device's encoder the order it expects: dialogue in the centre, effects at the back, an order checked system by system.
Safari caps each video buffer in bytes, about thirty seconds of 4K on an iPad. Lumen counts its fill in bytes actually appended and frees memory behind the playhead itself.
The embedded decoders were compared with FFmpeg channel by channel, on real files. The largest gap measured for TrueHD is a hundredth of a decibel.
For a file the browser can't carry, Lumen hands over to Jellyfin, which chooses between direct play and transcoding. A panel shows the path taken and why. This fallback can be switched off in one setting.
Lumen compares the bitrate it receives with the film's. When the link can't keep up, a lighter version is prepared in the background and the player switches to it at the same second, same language, same subtitles.
The server measures the real picture on the scrubbing thumbnails, without decoding any video, then the player enlarges the film to the edge of the screen. Only black is cropped.
The same engine, as a plugin for the Jellyfin web client.
Keep your interface: MKV and MP4 files play as they are, the browser repackages them and decodes the audio itself, and the server no longer starts ffmpeg for these files. Measured against the regular player: playback starts 2 to 4 times sooner, seeks are 3 to 4 times faster, and changing the audio track is about 8 times faster.
In Jellyfin, Dashboard > Plugins > Repositories, add this repository, then install Lumen from the catalog and restart Jellyfin.
https://raw.githubusercontent.com/LK59/lumen/main/manifest.json