fix hls stream script

This commit is contained in:
dec05eba
2024-06-03 10:28:26 +02:00
parent 8b64f915a7
commit 04db56aa8f

View File

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