Streaming on Linux: FFMPEG

Veröffentlicht am: 29 November 2014
auf dem Kanal: Darren Young
8,359
19

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

Network your Youtube Channel with GamerPeer and Freedom @ http://goo.gl/Zcjmnz

streaming.sh


#! /bin/bash

INRES="1280x1024" # input resolution (The resolution of the program you want to stream!)
OUTRES="1024x790" # Output resolution (The resolution you want your stream to be at)
FPS="22" # target FPS
QUAL="ultrafast"
one of the many FFMPEG presets that can be used
If you have low bandwidth, put the qual preset on 'ultrafast' (upload bandwidth)
If you have medium bandwitch put it on normal to medium or fast
STREAM_KEY="xxxxxxxxxxxx" # this is your streamkey


ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \
-f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" \
-acodec libmp3lame -ab 128k -ar 44100 -threads 0 \
-f flv "rtmp://live.hitbox.tv/push/$STREAM_KEY"

For streaming to twitch.tv replace rtmp address with rtmp://live.twitch.tv/app/

VSP Group, my partner program. Get connected! https://youpartnerwsp.com/en/join?60646


Auf dieser Seite können Sie das Online-Video Streaming on Linux: FFMPEG mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Darren Young 29 November 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,359 Mal angesehen und es wurde von 19 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!