recording: constqp should be better for recording
This commit is contained in:
@@ -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: ""
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user