Created
July 28, 2014 11:11
-
-
Save agranig/df3c94201eb45c583e34 to your computer and use it in GitHub Desktop.
stream to hitbox.tv from your linux command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}" |
Thanks a lot :)
Thanks :) great gist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've made a change to this script to allow it to capture pulseaudio too: https://gist.github.com/johnhamelink/aad5477ad805cf59fa91