Created
February 26, 2014 06:36
-
-
Save i/9224676 to your computer and use it in GitHub Desktop.
twitch script
This file contains hidden or 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
INRES="1366x768" # input resolution | |
FPS="20" # target FPS | |
QUAL="fast" | |
URL="rtmp://live-jfk.twitch.tv/app/key" | |
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \ | |
-f alsa -i hw:0,0 -ac 2 -vcodec libx264 -crf 30 -preset "$QUAL" -s "$INRES" \ | |
-acodec libmp3lame -ab 96k -ar 44100 -threads 0 -pix_fmt yuv420p \ | |
-f flv "$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment