Paste Code
Paste Blends
Paste Images
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"
}
  1. streaming() {
  2. INRES="1920x1080" # input resolution
  3. OUTRES="640x360"
  4. FPS="18" # target FPS
  5. QUAL="fast"  # one of the many FFMPEG preset
  6. STREAM_KEY="$1"
  7. URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
  8.  
  9. ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0  -ab 96k \
  10.     -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \
  11.     -acodec libmp3lame -ar 44100 -threads 0 \
  12.     -f flv "$URL"
  13. }
go to heaven