SHOW:
|
|
- or go back to the newest paste.
| 1 | #! /bin/bash | |
| 2 | ||
| 3 | # originaly from http://tinyurl.com/twitch-linux from taladan | |
| 4 | # www.youtube.com/user/taladan | |
| 5 | ||
| 6 | # gist created by brodul | |
| 7 | ||
| 8 | INRES="1366x768" # input resolution <----- TU USTAWIĆ ROZDZIELCZOŚĆ | |
| 9 | OUTRES=$INRES # Output resolution | |
| 10 | FPS="30" # target FPS | |
| 11 | - | #QUAL="medium" # one of the many FFMPEG preset on (k)ubuntu found in /usr/share/ffmpeg |
| 11 | + | |
| 12 | - | # If you have low bandwidth, put the qual preset on 'fast' (upload bandwidth) |
| 12 | + | |
| 13 | - | # If you have medium bandwitch put it on normal to medium |
| 13 | + | |
| 14 | -f x11grab -s $INRES -r "$FPS" -i :0.0 \ | |
| 15 | - | # Write your key in a file named .twitch_key in your home directory |
| 15 | + | |
| 16 | -vcodec libx264 -s $OUTRES \ | |
| 17 | -acodec libmp3lame -ar 44100 -threads 4 -qscale 3 -b 712000 -bufsize 512k \ | |
| 18 | - | # -i pulse |
| 18 | + |