Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # originaly from http://tinyurl.com/twitch-linux from taladan
- # www.youtube.com/user/taladan
- # gist created by brodul
- RES="1366x768" # TU_ZMIENIC_ROZDZIELCZOSC
- FPS="30"
- STREAM_KEY="TU_WPISAC_KLUCZ_STREAMA" # This is your streamkey generated by jtv/twitch found at: http://www.justin.tv/broadcast/adv_other
- # -i pulse
- # -preset $QUAL
- avconv \
- -f x11grab -s $RES -r "$FPS" -i :0.0 \
- -f alsa -ac 2 -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \
- -vcodec libx264 -s $RES \
- -acodec libmp3lame -ar 44100 -threads 4 -qscale 3 -b 712000 -bufsize 512k \
- -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
Add Comment
Please, Sign In to add comment