Skip to content

Instantly share code, notes, and snippets.

@bsdunx
Created March 29, 2015 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsdunx/68141fb976b3035cbe9f to your computer and use it in GitHub Desktop.
Save bsdunx/68141fb976b3035cbe9f to your computer and use it in GitHub Desktop.
Twitch .sh
#!/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