From f3ec26f1490db92008d18eed9d71aafa5b38c9f5 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 9 Dec 2024 14:13:22 +0100 Subject: [PATCH] scripts/rec: fix hw encoding --- scripts/rec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rec b/scripts/rec index 0f72d4e..65a70d5 100755 --- a/scripts/rec +++ b/scripts/rec @@ -9,7 +9,7 @@ record() { sleep 2 withcap sys_admin -- ffmpeg -f alsa -i recorder \ - -vaapi_device /dev/dri/renderD128 -f kmsgrab -i - -r 60 \ + -device /dev/dri/card1 -f kmsgrab -i - -r 60 \ -vf "hwmap=derive_device=vaapi,$geometry:format=nv12" \ -c:v hevc_vaapi -qp 21 -rc_mode 1 \ -c:a libopus -b:a 96k -ac 2 -ar 48000 \