Guest User

Twitch.com streamer.

a guest
May 11th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/shh
  2. # Streams Desktop to Twitch/Justin.tv
  3.  
  4. INRES="1600x900"
  5. OUTRES="1280x720"
  6. FPS="30"
  7. QUAL="medium"
  8. BITRATE="256k"
  9. STREAM_KEY="live_40412197_hV3SclTOv5M23rZ7GuOKuNnDCSkXsL"
  10.  
  11. ffmpeg \
  12. -f x11grab \
  13. -s "$INRES" \
  14. -r "$FPS" \
  15. -i :0.0+0,299 \
  16. -itsoffset -00:00:01 \
  17. -f alsa \
  18. -i hw:0,0 \
  19. -af aresample \
  20. -vcodec libx264 \
  21. -preset "$BITR" \
  22. -s "$OUTRES" \
  23. -acodec libmp3lame \
  24. -ar 44100 \
  25. -threads 4 \
  26. -b:a "$BITRATE" \
  27. -pix_fmt yuv420p \
  28. -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
Add Comment
Please, Sign In to add comment