gpu-screen-recorder/twitch-stream.sh

5 lines
265 B
Bash
Raw Normal View History

#!/bin/sh
2020-03-31 16:44:46 +00:00
[ "$#" -ne 3 ] && echo "usage: twitch-stream.sh <window_id> <fps> <livestream_key>" && exit 1
2020-03-31 21:37:39 +00:00
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"