streaming() { INRES="1920x1080" # input resolution OUTRES="640x360" FPS="18" # target FPS QUAL="fast" # one of the many FFMPEG preset STREAM_KEY="$1" URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 96k \ -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \ -acodec libmp3lame -ar 44100 -threads 0 \ -f flv "$URL" }
streaming() { INRES="1920x1080" # input resolution OUTRES="640x360" FPS="18" # target FPS QUAL="fast" # one of the many FFMPEG preset STREAM_KEY="$1" URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)" ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 96k \ -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \ -acodec libmp3lame -ar 44100 -threads 0 \ -f flv "$URL" }
|