Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 440 Bytes
#/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"