u8sand / Baka-MPlayer

The libmpv based media player
https://u8sand.github.io/Baka-MPlayer/
GNU General Public License v2.0
428 stars 93 forks source link

To have working Nvida-hardware video acceleration in Baka-MPlayer #332

Open danilw opened 5 months ago

danilw commented 5 months ago

Fix - file src/mpvhandler.cpp add to line 31:

    mpv_set_option_string(mpv, "hwdec", "auto");
    mpv_set_option_string(mpv, "vo", "gpu");

For more info look - https://mpv.io/manual/stable/#options-hwdec Search on page - Actively supported hwdecs:

Note: Do not use vdpau - it works only in x11, and it completely freeze x11 on 545+ latest nvidia drivers.

To confirm video acceleration works - nvidia-settings - GPU - Video Engine Utilization

For me - before mpv used CPU to decode all videos, now it use GPU.