Advertisement
Guest User

Untitled

a guest
Apr 12th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #! /bin/bash
  2. INRES="1366x768"
  3. OUTRES="1366x768"
  4. FPS="22"
  5. QUAL="medium"
  6. SOUNDSOURCE="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" #pactl list sources | grep Name
  7.  
  8. ffmpeg \
  9. -f x11grab -s $INRES -r "$FPS" -i :0.0 \
  10. -f alsa -ac 1 -f pulse \
  11. -i $SOUNDSOURCE \
  12. -vcodec libx264 -s $OUTRES -preset $QUAL \
  13. -acodec libmp3lame -ac 1 -ar 44100 \
  14. -b:v 450k -b:a 64k -minrate 500k -bufsize 500k -maxrate 500k \
  15. -f flv -g 44 "rtmp...output..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement