Advertisement
Guest User

Untitled

a guest
Jul 29th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. twitch() {
  2. STREAM_KEY="xxxxxxxxx"
  3. INRES=1920x1080 # input resolution
  4. OUTRES=1280x720
  5. FPS=20 # target FPS
  6. QUAL="superfast" # one of the many FFMPEG preset
  7.  
  8.  
  9. ffmpeg -f x11grab -s $INRES -r $FPS -i :0.0+0,0 \
  10. -f alsa -ac 2 -i pulse -vcodec libx264 -preset:v $QUAL -s $OUTRES \
  11. -acodec libmp3lame -ab 96k -ar 44100 -threads 0 \
  12. -f flv rtmp://live.justin.tv/app/$STREAM_KEY
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement