New Paste

 

Recent Pastes

Administrate




Pastebin on pastebin.tropi.us

 
PasteID: 2i
Pasted by Coding Awoo, 04:04:08 1549425848GMTC o February 06, 2019 GMT
Expires Never
Paste size 697 b
Toggle Expand   Wrap   Style   Raw
 
  1. #!/bin/sh  
  2.   
  3. INRES=1680x1050  
  4. test "$FPS" || FPS=29.97  
  5. test "$OUTRES" || OUTRES=672x420  
  6.   
  7. test "$URL" || URL="http://127.0.0.1:2509/live/purrloin"  
  8. test "$GOP" || GOP=120  
  9.   
  10. AUDIO_IN="-thread_queue_size 1024 -f dshow -channels 2 "  
  11. VIDEO_IN="-thread_queue_size 128 -f gdigrab -framerate $FPS -i desktop"  
  12.   
  13. FILTER="-vf fps=$FPS -af aresample=async=1000 -s $OUTRES -ac 2"  
  14.   
  15. CODECS="-acodec libopus -vcodec vp8 -g $GOP"  
  16.   
  17. BIG_CLUSTERS="-live 1 -cluster_size_limit 10M -cluster_time_limit 10K"  
  18. OUTPUT="-f webm $BIG_CLUSTERS"  
  19.   
  20. AUDIO_IN="$AUDIO_IN -i audio=\"Stereo Mix (Realtek High Definition Audio)\""  
  21. ffmpeg $AUDIO_IN $VIDEO_IN $FILTER $CODECS $OUTPUT "$URL"  
  22.  

 
 

 
 
 
 
 
Written by Knoxious.co.uk, 2010.