Enable screen recorder to use CPU encoder (#259)
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user