Fix systemd service file

This commit is contained in:
dec05eba
2024-09-05 23:39:17 +02:00
parent cb782763f0
commit 239f2010f5
14 changed files with 21 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
[ "$#" -ne 3 ] && echo "usage: youtube-hls-stream.sh <window_id> <fps> <livestream_key>" && exit 1
active_sink="$(pactl get-default-sink).monitor"
active_sink=default_output
gpu-screen-recorder -w "$1" -c hls -f "$2" -q high -a "$active_sink" -ac aac -o "https://a.upload.youtube.com/http_upload_hls?cid=$3&copy=0&file=stream.m3u8"