Created
September 14, 2013 07:35
-
-
Save sergey-miryanov/6559640 to your computer and use it in GitHub Desktop.
twitch
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="1680x1050" | |
OUTRES="1366x768" | |
FPS="30" | |
MAXRATE="1000k" | |
AUDIOBITRATE="60k" | |
QUAL="veryfast" | |
STREAM_KEY="STREAM KEY !!!" | |
URL="rtmp://live.justin.tv/app/$STREAM_KEY" | |
avconv -v verbose -f x11grab -show_region 1 -s "$INRES" -r "$FPS" \ | |
-i :0.0+1366,0 \ | |
-f alsa -ac 2 -b:a "$AUDIOBITRATE" -i pulse -c:v libx264 -crf 30 \ | |
-preset "$QUAL" -s "$OUTRES" -vol 11200 -c:a libmp3lame -ar 44100 \ | |
-pix_fmt yuv420p -maxrate "$MAXRATE" -bufsize "$MAXRATE" \ | |
-f flv "$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment