Created
October 27, 2013 17:57
-
-
Save nddrylliog/7185717 to your computer and use it in GitHub Desktop.
Script to stream to twitch.tv
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
#!/bin/sh | |
YOUR_KEY="something that starts with live_, get it at http://www.twitch.tv/broadcast" | |
ffmpeg -v warning -s 1920x1080 -f x11grab -r 25 -i :0.0 -f pulse -ac 1 -i default -c:v libx264 -preset veryfast -b:v 450k -maxrate 700k -bufsize 4000k -pix_fmt yuv420p -s 1280x720 -c:a libmp3lame -ab 64k -ar 44100 -threads 2 -f flv "rtmp://live-ams.twitch.tv/app/#{YOUR_KEY}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment