@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias UpscalingDecodingCause

    UpscalingDecodingCause:
        | "copy-back"
        | "hwdec-off"
        | "software"
        | "other-hwdec"
        | string & {}

    Why the video is not decoded on the GPU that renders it: the UpscalingReason.cause of a decoding reason. A newer player may add causes: show UpscalingReason.message for the ones you do not handle.

    Cause Meaning
    copy-back Decoded on the GPU and copied back to memory, because a plugin's video filter needs the frames there (UpscalingReason.plugins names it), or because of the user's hwdec setting.
    hwdec-off Hardware decoding is turned off (mpv's hwdec is no).
    software This video is decoded in software: a cover picture, a format the GPU does not decode, or a hardware decoder that failed. It passes with the next video.
    other-hwdec This video is decoded with another hardware decoder than the one the upscaler needs.

    A plugin's upscaling window explains a decoding reason by its cause, and for copy-back names the plugins whose filters stand in the way, so the user can turn them off there (a plugin cannot run another plugin's commands).

    const { reason } = await plugin.video.upscaling.state();
    if (reason?.code === "decoding" && reason.cause === "copy-back") {
    const names = (reason.plugins ?? []).map((p) => p.name).join(", ");
    // Ask the user to reset those filters; the manifest names are not translated.
    console.log(names ? `Turn off the video filters of ${names}` : reason.message);
    } else if (reason) console.log(reason.message);

    0.5.25

    1.5.43