diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-07 02:47:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-07 02:47:20 +0100 |
commit | 7af4f106e77eed9a41a2b455a48325ce59276e27 (patch) | |
tree | ea7daac85d83bfa154e08513e309956b4397fe1e /scripts | |
parent | a26aa2dd3ed4b4bb5572d4582bb75aaa6bc2a737 (diff) |
Example scripts: use cbr for replay scripts
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/replay-application-name.sh | 2 | ||||
-rwxr-xr-x | scripts/start-replay.sh | 2 |
2 files changed, 2 insertions, 2 deletions
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" |