Stream to youtube live
| #!/bin/sh | |
| VBR="2500k" | |
| FPS="30" | |
| QUAL="ultrafast" | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # | |
| KEY="supersecret-key" | |
| ffmpeg \ | |
| -video_size 1920x1080 -f x11grab -i :0.0+1920,10 -deinterlace \ | |
| -f alsa -i default \ | |
| -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \ | |
| -acodec libmp3lame -ar 44100 -threads 6 -q:v 3 -b:a 712000 -bufsize 512k \ | |
| -f alsa "$YOUTUBE_URL/$KEY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.