aboutsummaryrefslogtreecommitdiff
path: root/twitch-stream.sh
blob: d4da5304af7e7a0753e9971e596a8fa82acfa064 (plain)
1
2
3
4
#!/bin/sh

[ "$#" -ne 3 ] && echo "usage: twitch-stream.sh <window_id> <fps> <livestream_key>" && exit 1
sibs build --release && ./sibs-build/linux_x86_64/release/gpu-screen-recorder "$1" h264 "$2" | ffmpeg -i pipe:0 -c:v copy -f flv "rtmp://live.twitch.tv/app/$3"