From cde50a4fab169a90ee4a6c08e82c77be803aa744 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 18 Sep 2019 21:53:40 +0200 Subject: [PATCH] shotcut: use vaapi_device /dev/dri/renderD128 instead of ":0" This fixes the auto-detection of VAAPI hardware encoders provided by Intel chipsets. Be sure to define hardware.opengl.extraPackages = [pkgs.vaapiIntel]; in configuration.nix to make the necessary OpenGL drivers available. --- pkgs/applications/video/shotcut/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/video/shotcut/default.nix b/pkgs/applications/video/shotcut/default.nix index a50ee8b56643..3edee15db5fc 100644 --- a/pkgs/applications/video/shotcut/default.nix +++ b/pkgs/applications/video/shotcut/default.nix @@ -33,6 +33,8 @@ mkDerivation rec { sed 's_qApp->applicationDirPath(), "ffmpeg"_"${mlt.ffmpeg}/bin/ffmpeg"_' -i src/docks/encodedock.cpp NICE=$(type -P nice) sed "s_/usr/bin/nice_''${NICE}_" -i src/jobs/meltjob.cpp src/jobs/ffmpegjob.cpp + # Fix VAAPI auto-config: https://github.com/mltframework/shotcut/issues/771 + sed 's#"-vaapi_device" << ":0"#"-vaapi_device" << "/dev/dri/renderD128"#' -i src/docks/encodedock.cpp ''; qtWrapperArgs = [