Skip to content

Instantly share code, notes, and snippets.

@agranig
Created July 28, 2014 11:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save agranig/df3c94201eb45c583e34 to your computer and use it in GitHub Desktop.
Save agranig/df3c94201eb45c583e34 to your computer and use it in GitHub Desktop.
stream to hitbox.tv from your linux command line
# the key you get from http://www.hitbox.tv/settings/youruser/livestreams
HITBOX_KEY="youruser?key=xxxxx"
# top-left corner of capture window
CAPTURE_POS="250,200"
# width/height of capture window
CAPTURE_SIZE="1050x600"
# make sure to have a really recent ffmpeg version (0.10.12 works fine)
ffmpeg -f x11grab -show_region 1 \
-s ${CAPTURE_SIZE} -r 25 -i :0.0+${CAPTURE_POS} \
-vcodec libx264 -maxrate 400k -minrate 400k \
-g 50 -bufsize 400k -pix_fmt yuv420p -f flv \
"rtmp://live.hitbox.tv/push/${HITBOX_KEY}"
@johnhamelink
Copy link

I've made a change to this script to allow it to capture pulseaudio too: https://gist.github.com/johnhamelink/aad5477ad805cf59fa91

@FoxVisionPro
Copy link

Thanks a lot :)

@berserkingyadis
Copy link

Thanks :) great gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment