Guest User

Untitled

a guest
Aug 21st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. live() {
  2. INRES="1680x1050"
  3. OUTRES="1280x720"
  4. FPS="30"
  5. GOP="60
  6. GOPMIN="30"
  7. THREADS="2"
  8. CBR="2500k"
  9. QUALITY="superfast"
  10. AUDIO_RATE="44100"
  11. STREAM_KEY=""
  12. SERVER="live"
  13.  
  14. ffmpeg -f x11grab -s "$INRES" - r "$FPS" -i :0.0+1366,0 \
  15. -f pulse -ac 2 -ar 44100 -i alsa_input.pci-0000_00_1b.0.analog-stereo \
  16. -vcodec libx264 -g $GOP -keyint_min $GOPMIN -b:v $CBR -minrate $CBR -maxrate $CBR -pix_fmt yuv420p\
  17. -s $OUTRES -preset $QUALITY -tune film -acodec libmp3lame -threads $THREADS - strict normal \
  18. -bufsize $CBR -f flv "rtmp://$SERVER.twitch.tv/app/$STREAM_KEY"
  19. }
Add Comment
Please, Sign In to add comment