Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (14 sloc) 0.44 kB
#/bin/sh
INRES="$2"
OUTRES="$3"
INPUT_SINK="$TWITCH_IMPUT_SINK"
OFFSET="$TWITCH_OFFSET"
FPS="30"
QUAL="fast"
STREAM_KEY="$1"
URL="rtmp://live.twitch.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0"$TWITCH_OFFSET" -ab 22050\
-f pulse -i "$INPUT_SINK" \
-vcodec libx264 -pix_fmt yuv420p -s "$OUTRES" -preset "$QUAL" \
-acodec libmp3lame -ac 1 -ar 22050 \
-f flv "$URL"
Jump to Line
Something went wrong with that request. Please try again.