-
-
Save JonnoFTW/f24613308d845406a2741bdad9355f2d to your computer and use it in GitHub Desktop.
Stream to youtube live
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Author
JonnoFTW
commented
Nov 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment