Surprise Me!

Streaming on Linux: FFMPEG, Twith, Hitbox

2014-12-05 7 Dailymotion

In this video we shall be looking at streaming to hitbox.tv / twitch.tv by means of a bash script using FFMPEG. Be sure to check out my previous video tutorial on setting up your pulse audio so u can stream both your gameplay and mic - http://goo.gl/6mXtix <br /> <br />Network your Youtube Channel with GamerPeer and Freedom @ http://goo.gl/Zcjmnz <br /> <br />streaming.sh <br /> <br /> <br />#! /bin/bash <br /> <br />INRES="1280x1024" # input resolution (The resolution of the program you want to stream!) <br />OUTRES="1024x790" # Output resolution (The resolution you want your stream to be at) <br />FPS="22" # target FPS <br />QUAL="ultrafast" <br /># one of the many FFMPEG presets that can be used <br /># If you have low bandwidth, put the qual preset on 'ultrafast' (upload bandwidth) <br /># If you have medium bandwitch put it on normal to medium or fast <br />STREAM_KEY="xxxxxxxxxxxx" # this is your streamkey <br /> <br /> <br />ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \ <br />-f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" \ <br />-acodec libmp3lame -ab 128k -ar 44100 -threads 0 \ <br />-f flv "rtmp://live.hitbox.tv/push/$STREAM_KEY" <br /> <br /># For streaming to twitch.tv replace rtmp address with rtmp://live.twitch.tv/app/

Buy Now on CodeCanyon