Skip to content

Instantly share code, notes, and snippets.

@agranig
Created July 28, 2014 11:11
Show Gist options
  • 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}"
@berserkingyadis
Copy link

Thanks :) great gist

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