Advertisement
Guest User

Untitled

a guest
Feb 9th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. INRES="1600x900"
  4. OUTRES="1024x576"
  5. INAUD="hw:0,0"
  6. FPS="30"
  7. QUAL="fast"
  8. STREAM_KEY=XXXXX
  9. WEBCAM="/dev/video0" # WebCam device
  10. WEBCAM_WH="320:240" # WebCam Width end Height
  11.  
  12. STREAM_URL="rtmp://live.twitch.tv/app/$STREAM_KEY"
  13.  
  14. "rtmp://live.justin.tv/app/$STREAM_KEY"
  15.  
  16. ffmpeg -itsoffset 3 \
  17. -f x11grab -s $INRES -r "$FPS" -i :0.0+0,0 \
  18. -f alsa -ac 2 -i plughw:0,0 \
  19. -vcodec libx264 -s $OUTRES -preset $QUAL -pix_fmt yuv420p \
  20. -acodec libmp3lame -ar 44100 -threads 0 -b 712000 -bufsize 2048K \
  21. -f flv \
  22. -vf "movie=/dev/video0:f=video4linux2, scale=240:-1, fps, setpts=PTS-STARTPTS [movie]; [in][movie] overlay=10:main_h-overlay_h-10 [out]" \
  23. $STREAM_URL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement