krzys_h

Twitch streaming

Feb 9th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. STREAM_KEY="TU USTAWIĆ STREAM KEY"   # This is your streamkey generated by jtv/twitch found at: http://www.justin.tv/broadcast/adv_other
  12.  
  13. avconv \
  14.     -f x11grab -s $INRES  -r "$FPS" -i :0.0 \
  15.     -f alsa -ac 2 -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor  \
  16.     -vcodec libx264 -s $OUTRES \
  17.     -acodec libmp3lame -ar 44100 -threads 4 -qscale 3 -b 712000  -bufsize 512k \
  18.     -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
Add Comment
Please, Sign In to add comment