output encoded video to stdout instead and add twitch stream script

This commit is contained in:
dec05eba
2020-03-30 21:21:30 +02:00
parent eff9ff10cc
commit 34a000d836
3 changed files with 32 additions and 23 deletions

4
twitch-stream.sh Executable file
View File

@@ -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"