Enable screen recorder to use CPU encoder (#259)

This commit is contained in:
Cameron Smith
2024-09-16 08:27:26 +10:00
committed by GitHub
parent f09ffa7699
commit cc0ba8f0c7

View File

@@ -27,7 +27,9 @@ startRecording() {
exit 1 exit 1
fi fi
gpu-screen-recorder -w "$target" -f 60 -a "$(pactl get-default-sink).monitor" -o "$outputPath" & GPU_TYPE=$(lspci | grep -E 'VGA|3D' | grep -Ev '00:02.0|Integrated' > /dev/null && echo "" || echo "-encoder cpu")
gpu-screen-recorder -w "$target" -f 60 -a "$(pactl get-default-sink).monitor" -o "$outputPath" $GPU_TYPE &
echo "Recording started. Output will be saved to $outputPath" echo "Recording started. Output will be saved to $outputPath"
} }