krzys_h

Twitch.tv linux streaming

Dec 28th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  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. RES="1366x768" # TU_ZMIENIC_ROZDZIELCZOSC
  9. FPS="30"
  10. STREAM_KEY="TU_WPISAC_KLUCZ_STREAMA"   # This is your streamkey generated by jtv/twitch found at: http://www.justin.tv/broadcast/adv_other
  11.  
  12. # -i pulse
  13. # -preset $QUAL
  14.  
  15. avconv \
  16.     -f x11grab -s $RES  -r "$FPS" -i :0.0 \
  17.     -f alsa -ac 2 -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor  \
  18.     -vcodec libx264 -s $RES \
  19.     -acodec libmp3lame -ar 44100 -threads 4 -qscale 3 -b 712000  -bufsize 512k \
  20.     -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
Add Comment
Please, Sign In to add comment