mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Move scripts to script dir, add youtube-hls-stream script, fix twitch stream script
This commit is contained in:
17
scripts/interactive.sh
Executable file
17
scripts/interactive.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
selected_audio_input="$(pactl get-default-sink).monitor"
|
||||
|
||||
echo "Select a window to record"
|
||||
window_id=$(xdotool selectwindow)
|
||||
|
||||
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"
|
||||
|
||||
gpu-screen-recorder -w "$window_id" -c mp4 -f "$fps" -a "$selected_audio_input" -o "$output_file_name"
|
||||
Reference in New Issue
Block a user