Advertisement
Guest User

Untitled

a guest
Feb 21st, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. streaming() {
  2. INRES="1920x1080" # input resolution
  3. OUTRES="640x360"
  4. FPS="15" # target FPS
  5. QUAL="fast" # one of the many FFMPEG preset
  6. STREAM_KEY="$1"
  7. URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
  8.  
  9. #ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 22050\
  10. # -f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" -level 30 -f mpegts \
  11. # -acodec libmp3lame -ac 1 \
  12. # -f flv "$URL"
  13.  
  14.  
  15.  
  16.  
  17. ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 96k \
  18. -f alsa -ac 2 -i pulse -vcodec libx264 "-pix_fmt yuv420p" -crf 30 -preset "$QUAL" -s "1280x720" \
  19. -acodec libmp3lame -ar 44100 -threads 4 \
  20. -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement