2022-03-25 00:09:12 +00:00
|
|
|
#!/bin/sh -e
|
2020-08-30 00:39:28 +00:00
|
|
|
|
2022-03-25 00:09:12 +00:00
|
|
|
selected_audio_input="$(pactl get-default-sink).monitor"
|
2020-04-04 12:54:12 +00:00
|
|
|
|
|
|
|
echo "Select a window to record"
|
2022-03-25 00:09:12 +00:00
|
|
|
window_id=$(xdotool selectwindow)
|
2020-04-04 12:54:12 +00:00
|
|
|
|
|
|
|
echo -n "Enter video fps: "
|
|
|
|
read fps
|
|
|
|
|
|
|
|
echo -n "Enter output file name: "
|
|
|
|
read output_file_name
|
|
|
|
|
|
|
|
output_dir=$(dirname "$output_file_name")
|
|
|
|
mkdir -p "$output_dir"
|
|
|
|
|
2022-09-19 14:19:41 +00:00
|
|
|
gpu-screen-recorder -w "$window_id" -c mp4 -f "$fps" -a "$selected_audio_input" -o "$output_file_name"
|