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
@@ -15,8 +15,7 @@ Singleton {
property string recordingDisplay: "" property string recordingDisplay: ""
readonly property int framerate: 60 readonly property int framerate: 60
readonly property var codecParams: Object.freeze([ readonly property var codecParams: Object.freeze([
"preset=p5", "rc=vbr", "cq=18", "preset=p4", "rc=constqp", "qp=18",
"b:v=80M", "maxrate=120M", "bufsize=160M",
"color_range=tv" "color_range=tv"
]) ])
readonly property var filterArgs: "" readonly property var filterArgs: ""
+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" sudo chown "$(whoami):$(whoami)" "$LUKS_MOUNT_POINT"
echo "[INFO] Successfully mounted at $LUKS_MOUNT_POINT." >&2 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" cd "$LUKS_MOUNT_POINT"
USER_SHELL="${SHELL:-/bin/bash}" USER_SHELL="${SHELL:-/bin/bash}"
+3 -5
View File
@@ -8,13 +8,11 @@
# - wf-recorder # - wf-recorder
# - slurp # - slurp
[ -z "$codec" ] && codec="av1_nvenc" [ -z "$codec" ] && codec="av1_nvenc"
[ -z "$pixel_format" ] && pixel_format="p010le" [ -z "$pixel_format" ] && pixel_format="p010le"
[ -z "$frame_rate" ] && frame_rate="60" [ -z "$frame_rate" ] && frame_rate="60"
[ -z "$codec_params" ] && codec_params=\ [ -z "$codec_params" ] && codec_params=\
"preset=p5 rc=vbr cq=18 \ "preset=p4 rc=constqp qp=18 \
b:v=80M maxrate=120M bufsize=160M \
color_range=tv" color_range=tv"
[ -z "$filter_args" ] && filter_args="" [ -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' & notify-send "Recording Stopped" "Stopped" -a 'record-script' &
pkill -x wf-recorder -u "$USER" pkill -x wf-recorder -u "$USER"
else 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 if [[ "$1" == "--sound" ]]; then
wf-recorder --geometry "$(slurp)" --audio="$(getaudiooutput)" "${recorder_args[@]}" & disown wf-recorder --geometry "$(slurp)" --audio="$(getaudiooutput)" "${recorder_args[@]}" & disown
elif [[ "$1" == "--fullscreen-sound" ]]; then elif [[ "$1" == "--fullscreen-sound" ]]; then
@@ -63,4 +61,4 @@ else
else else
wf-recorder --geometry "$(slurp)" "${recorder_args[@]}" & disown wf-recorder --geometry "$(slurp)" "${recorder_args[@]}" & disown
fi fi
fi fi
+3 -3
View File
@@ -28,6 +28,6 @@ end
set -x -g GPG_TTY (tty) set -x -g GPG_TTY (tty)
# fnm # fnm
if type -q fnm # if type -q fnm
eval (fnm env --shell fish) # eval (fnm env --shell fish)
end # end