git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitcde50a4fab169a90ee4a6c08e82c77be803aa744 authorPeter Simons <simons@cryp.to> dateWed 18 Sep 2019, 21:53 (7 years ago) parent713fda2
1 file changed+2
pkgs/applications/video/shotcut/default.nix+2
pkgs/applications/video/shotcut/default.nix+2
@@ -33,6 +33,8 @@ mkDerivation rec {
3333 sed 's_qApp->applicationDirPath(), "ffmpeg"_"${mlt.ffmpeg}/bin/ffmpeg"_' -i src/docks/encodedock.cpp
3434 NICE=$(type -P nice)
3535 sed "s_/usr/bin/nice_''${NICE}_" -i src/jobs/meltjob.cpp src/jobs/ffmpegjob.cpp
36+ # Fix VAAPI auto-config: https://github.com/mltframework/shotcut/issues/771
37+ sed 's#"-vaapi_device" << ":0"#"-vaapi_device" << "/dev/dri/renderD128"#' -i src/docks/encodedock.cpp
3638 '';
3739
3840 qtWrapperArgs = [