From 7af4f106e77eed9a41a2b455a48325ce59276e27 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 7 Mar 2025 02:47:20 +0100 Subject: Example scripts: use cbr for replay scripts --- TODO | 4 +++- scripts/replay-application-name.sh | 2 +- scripts/start-replay.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index b295291..22c415c 100644 --- a/TODO +++ b/TODO @@ -241,4 +241,6 @@ Support reconnecting (and setting things up again) if the audio server is restar Find out how nvidia-smi fixes nvenc not working on opensuse and do that ourselves instead of relying on nvidia-smi that is not always installed. -Pulseaudio code: add "running" variable to loops to allow stopping the running code when quitting. \ No newline at end of file +Pulseaudio code: add "running" variable to loops to allow stopping the running code when quitting. + +Scale screenshot frame libswscale or implement lanczos shader for improved scaline for video as well. diff --git a/scripts/replay-application-name.sh b/scripts/replay-application-name.sh index 2a651bb..1182ac3 100755 --- a/scripts/replay-application-name.sh +++ b/scripts/replay-application-name.sh @@ -3,4 +3,4 @@ window=$(xdotool selectwindow) window_name=$(xdotool getwindowname "$window" || xdotool getwindowclassname "$window" || echo "Game") window_name="$(echo "$window_name" | tr '/\\' '_')" -gpu-screen-recorder -w "$window" -f 60 -c mkv -a default_output -r 60 -o "$HOME/Videos/Replays/$window_name" +gpu-screen-recorder -w "$window" -f 60 -c mkv -a default_output -bm cbr -q 45000 -r 60 -o "$HOME/Videos/Replays/$window_name" diff --git a/scripts/start-replay.sh b/scripts/start-replay.sh index 860f2ce..1ac2422 100755 --- a/scripts/start-replay.sh +++ b/scripts/start-replay.sh @@ -3,4 +3,4 @@ pidof -q gpu-screen-recorder && exit 0 video_path="$HOME/Videos" mkdir -p "$video_path" -gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -r 30 -o "$video_path" +gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -bm cbr -q 45000 -r 30 -o "$video_path" -- cgit v1.2.3-70-g09d2