recording: constqp should be better for recording

This commit is contained in:
2026-01-14 20:30:28 +01:00
parent b8ed23db27
commit bc0cb5f6c4
4 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ sudo mount "/dev/mapper/$LUKS_MAPPER_NAME" "$LUKS_MOUNT_POINT"
sudo chown "$(whoami):$(whoami)" "$LUKS_MOUNT_POINT"
echo "[INFO] Successfully mounted at $LUKS_MOUNT_POINT." >&2
echo "[INFO] Exit this shell to unmount and close the LUKS volume..." >&2
echo "[INFO] Exit this shell to unmount and close the LUKS volume." >&2
cd "$LUKS_MOUNT_POINT"
USER_SHELL="${SHELL:-/bin/bash}"
+3 -5
View File
@@ -8,13 +8,11 @@
# - wf-recorder
# - slurp
[ -z "$codec" ] && codec="av1_nvenc"
[ -z "$pixel_format" ] && pixel_format="p010le"
[ -z "$frame_rate" ] && frame_rate="60"
[ -z "$codec_params" ] && codec_params=\
"preset=p5 rc=vbr cq=18 \
b:v=80M maxrate=120M bufsize=160M \
"preset=p4 rc=constqp qp=18 \
color_range=tv"
[ -z "$filter_args" ] && filter_args=""
@@ -53,7 +51,7 @@ if pgrep -x wf-recorder -u "$USER" > /dev/null; then
notify-send "Recording Stopped" "Stopped" -a 'record-script' &
pkill -x wf-recorder -u "$USER"
else
notify-send "Starting recording" 'recording_'"$(getdate)"'.mkv' -a 'record-script'
notify-send "Starting recording" 'recording_'"$(getdate)"'.mkv' -a 'record-script' &
if [[ "$1" == "--sound" ]]; then
wf-recorder --geometry "$(slurp)" --audio="$(getaudiooutput)" "${recorder_args[@]}" & disown
elif [[ "$1" == "--fullscreen-sound" ]]; then
@@ -63,4 +61,4 @@ else
else
wf-recorder --geometry "$(slurp)" "${recorder_args[@]}" & disown
fi
fi
fi