From bc0cb5f6c426c7e53d0abb6bfd1b3e5555b11921 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Wed, 14 Jan 2026 20:30:28 +0100 Subject: [PATCH] recording: constqp should be better for recording --- .../.config/quickshell/Services/RecordService.qml | 3 +-- config/scripts/.local/scripts/luks-mount | 2 +- config/scripts/.local/scripts/record-script | 8 +++----- config/shell/.config/fish/conf.d/10-env.fish | 6 +++--- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/config/quickshell/.config/quickshell/Services/RecordService.qml b/config/quickshell/.config/quickshell/Services/RecordService.qml index dd78601..a90bc57 100644 --- a/config/quickshell/.config/quickshell/Services/RecordService.qml +++ b/config/quickshell/.config/quickshell/Services/RecordService.qml @@ -15,8 +15,7 @@ Singleton { property string recordingDisplay: "" readonly property int framerate: 60 readonly property var codecParams: Object.freeze([ - "preset=p5", "rc=vbr", "cq=18", - "b:v=80M", "maxrate=120M", "bufsize=160M", + "preset=p4", "rc=constqp", "qp=18", "color_range=tv" ]) readonly property var filterArgs: "" diff --git a/config/scripts/.local/scripts/luks-mount b/config/scripts/.local/scripts/luks-mount index 2fa3371..d17988d 100755 --- a/config/scripts/.local/scripts/luks-mount +++ b/config/scripts/.local/scripts/luks-mount @@ -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}" diff --git a/config/scripts/.local/scripts/record-script b/config/scripts/.local/scripts/record-script index aef2ff3..b38b786 100755 --- a/config/scripts/.local/scripts/record-script +++ b/config/scripts/.local/scripts/record-script @@ -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 \ No newline at end of file +fi diff --git a/config/shell/.config/fish/conf.d/10-env.fish b/config/shell/.config/fish/conf.d/10-env.fish index 6655bbf..8e3aef6 100644 --- a/config/shell/.config/fish/conf.d/10-env.fish +++ b/config/shell/.config/fish/conf.d/10-env.fish @@ -28,6 +28,6 @@ end set -x -g GPG_TTY (tty) # fnm -if type -q fnm - eval (fnm env --shell fish) -end +# if type -q fnm +# eval (fnm env --shell fish) +# end