KaeruCT

ffmpeg streaming to twitch.tv

Mar 6th, 2012
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. INRES="640x480" # input resolution
  2. OUTRES="640x480"
  3. FPS="20" # target FPS
  4. QUAL="normal"  # one of the many FFMPEG preset
  5. STREAM_KEY=get_key_from_site #get your stream key
  6.  
  7. ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0  -f alsa -ac 2 -i hw:0,0 -vol 4096 -vcodec libx264 -vpre "$QUAL" -s "$OUTRES" -ar 44100 -acodec libmp3lame -ab 128k -threads 0 -f flv "rtmp://live.justin.tv/app/$STREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
Add Comment
Please, Sign In to add comment