aboutsummaryrefslogtreecommitdiff
path: root/twitch-stream.sh
diff options
context:
space:
mode:
Diffstat (limited to 'twitch-stream.sh')
-rwxr-xr-xtwitch-stream.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/twitch-stream.sh b/twitch-stream.sh
new file mode 100755
index 0000000..0be4d12
--- /dev/null
+++ b/twitch-stream.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "$#" -ne 2 ] && echo "usage: twitch-stream.sh <window_id> <livestream_key>" && exit 1
+sibs build --release && ./sibs-build/linux_x86_64/release/hardware-screen-recorder "$1" "dummy.h264" | ffmpeg -i pipe:0 -c:v copy -f flv "rtmp://live.twitch.tv/app/$2"