metalx1000

Stream to Youtube using FFMPEG

Aug 27th, 2016
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ffmpeg -f pulse -i default -f x11grab -framerate 30 -video_size 1920x1080 \                                          :(
  4. -i :0.0+0,0 -vcodec libx264 -preset veryfast -maxrate 1984k -bufsize 3968k \
  5. -vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \
  6. -f flv rtmp://<your youtube url>/<your youtube key>
Add Comment
Please, Sign In to add comment