Created
January 5, 2017 15:30
-
-
Save giannisp/922338526de5cad740b15703ab6f98b3 to your computer and use it in GitHub Desktop.
HLS stream to RMTP (for Facebook 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
brew install ffmpeg | |
ffmpeg -re -i "https://<HLS-url>/playlist.m3u8" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/<rmtp-url>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ggg