Created
March 29, 2015 03:26
-
-
Save bsdunx/65a349287da6a63f36e1 to your computer and use it in GitHub Desktop.
Twitch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TOPXY="$1,$2" | |
INRES="880x1080" | |
OUTRES="880x1080" | |
FPS="5" | |
QUAL="medium" | |
STREAM_KEY=$(cat ~/.twitch_key) | |
avconv -f x11grab -s $INRES -r $FPS -i ":0.0+0,0" -vcodec libx264 -s $OUTRES -preset $QUAL -threads 4 -qscale 3 -b 512000 -bufsize 512k -f flv "rtmp://live.twitch.tv/app/$STREAM_KEY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment