Handle stopped streams, live bandwidth, and rework the upscaling tiers
When the server owner stops a stream, Plex cuts the connection and repeats the termination in every timeline reply to the client until it reports a stop. The player now reads those replies (also when playback stalls or fails), stops mpv, shows the owner's message and acknowledges it; a termination on a session's first reply is left over from an earlier stream and is cleared instead of cancelling the new one. Each title also starts unpaused, as mpv keeps pause across files. The dashboard's bandwidth graph refreshes every second. Plex's real-time samples are bytes per second with idle seconds omitted, so they are laid on a gap-free per-second axis (they were divided by six before). Upscaling: Balanced is now the strongest shader chain, light nlmeans, FSRCNNX 16, KrigBilateral and debanding. Measured against 1080p references shrunk to 480p it beat FSRCNNX 8, two network passes, RAVU and SSimSuperRes. The denoiser is AN3223's light profile with luma strength at 60%, which keeps texture the default profile smoothed away. Quality is now NVIDIA RTX Video Super Resolution through mpv's d3d11vpp filter, sized to the window and re-applied when it changes; it is offered only on Windows with an NVIDIA RTX GPU (app_info now lists the adapters), runs Balanced for HDR or at native size, and drops a tier if the driver refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ac5048f0b2
commit
d9e22dde2e
17 changed files with 316 additions and 524 deletions
|
|
@ -66,16 +66,22 @@ transparent only while video is visible (`html.video-active`), so browsing is op
|
|||
part titles are joined with an mpv EDL); other qualities request Plex HLS with
|
||||
timestamps kept absolute. If direct play fails, playback retries through Plex once.
|
||||
Plex streams are matched to mpv tracks by stream index; external subtitles are added
|
||||
on demand. Timeline reports every 10 seconds make the session appear in Plex, and the
|
||||
title is marked watched at the configured percentage. The player's back arrow (or Esc)
|
||||
on demand. Timeline reports every 10 seconds (and when playback stalls) make the session appear in
|
||||
Plex; a reply carrying a termination (the server owner stopped the stream) stops
|
||||
playback and shows their message. The title is marked watched at the configured percentage. The player's back arrow (or Esc)
|
||||
shrinks playback into a miniplayer: the video is drawn in a corner rectangle and the
|
||||
interface stays visible around it, with a matching hole masked out of the page
|
||||
(`html.player-mini`).
|
||||
- **Upscaling** (`player/enhance.ts`): tiers set mpv's scalers and debanding and load
|
||||
shaders bundled from `src-tauri/shaders/` (FSRCNNX, nlmeans, KrigBilateral, AMD CAS);
|
||||
each shader's `WHEN` condition decides whether it runs for the current video and size.
|
||||
The chosen tier and the running one are tracked separately: shader errors in mpv's log
|
||||
or missing network passes in `vo-passes` drop to the tier below. Compiled shaders are
|
||||
- **Upscaling** (`player/enhance.ts`): Performance and Balanced set mpv's scalers and
|
||||
debanding and load shaders bundled from `src-tauri/shaders/` (FSRCNNX 16, nlmeans,
|
||||
KrigBilateral, AMD CAS); each shader's `WHEN` condition decides whether it runs for the
|
||||
current video and size. Quality is NVIDIA RTX Video Super Resolution through mpv's
|
||||
`d3d11vpp` filter (`scaling-mode=nvidia`, labelled `@kaleido-vsr`), sized to the window
|
||||
and re-applied when that changes; it is offered only on Windows with an NVIDIA RTX GPU
|
||||
(`app_info` lists the adapters), runs Balanced for HDR or at native size, and the
|
||||
driver's own setting picks its quality level. The chosen tier and the running one are
|
||||
tracked separately: shader or RTX Video errors in mpv's log, missing network passes in
|
||||
`vo-passes`, or RTX Video output that isn't enlarged drop to the tier below. Compiled shaders are
|
||||
cached in the app cache folder (`gpu-shader-cache-dir`), so a slow first Direct3D
|
||||
compile happens once per shader set, mpv version and GPU driver.
|
||||
- **Updates**: `app/updater.ts` checks the signed feed on start; installs need the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue