Move scripts to script dir, add youtube-hls-stream script, fix twitch stream script

This commit is contained in:
dec05eba
2022-09-19 16:19:41 +02:00
parent 59b730a806
commit 85cd5a9d11
9 changed files with 18 additions and 5 deletions

17
scripts/interactive.sh Executable file
View 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"