l mpv: fix slow gpu output

This commit is contained in:
lassulus 2023-07-02 19:44:11 +02:00
parent 58afd36741
commit 8ea8fcf31d

View File

@ -72,14 +72,7 @@ let
paths = [ paths = [
(pkgs.writeDashBin "mpv" '' (pkgs.writeDashBin "mpv" ''
set -efu set -efu
if [ -n "''${DISPLAY+x}" ]; then Y_RES=1081
Y_RES=$(${pkgs.xorg.xrandr}/bin/xrandr |
${pkgs.jc}/bin/jc --xrandr |
${pkgs.jq}/bin/jq '.screens[0].current_width'
)
else
Y_RES=1000
fi
# we need to disable sponsorblock local database because of # we need to disable sponsorblock local database because of
# https://github.com/po5/mpv_sponsorblock/issues/31 # https://github.com/po5/mpv_sponsorblock/issues/31
exec ${pkgs.mpv.override { exec ${pkgs.mpv.override {
@ -88,7 +81,6 @@ let
youtube-quality youtube-quality
]; ];
}}/bin/mpv \ }}/bin/mpv \
-vo=gpu \
--no-config \ --no-config \
--input-conf=${mpvInput} \ --input-conf=${mpvInput} \
--include=${mpvConfig} \ --include=${mpvConfig} \