diff --git a/src/stremio_app/stremio_player/player.rs b/src/stremio_app/stremio_player/player.rs index 06501b5..6586979 100644 --- a/src/stremio_app/stremio_player/player.rs +++ b/src/stremio_app/stremio_player/player.rs @@ -76,7 +76,19 @@ fn create_shareable_mpv(window_handle: HWND) -> Arc { set_property!("msg-level", "all=no"); set_property!("quiet", "yes"); set_property!("hwdec", "auto"); - // set_property!("vo", "gpu-next,"); + // gpu-next: libplacebo VO with modern HDR tone-mapping; gpu, is the fallback. + set_property!("vo", "gpu-next,gpu,"); + for (name, value) in [ + ("tone-mapping", "bt.2390"), + ("dither-depth", "auto"), + ("deband", "yes"), + ("scale", "spline36"), + ("cscale", "spline36"), + ] { + if let Err(error) = initializer.set_property(name, value) { + eprintln!("mpv: cannot set {name}={value}: {error:?}"); + } + } Ok(()) }); Arc::new(mpv.expect("cannot build MPV"))