Skip to content

Instantly share code, notes, and snippets.

@giannisp
Created January 5, 2017 15:30
Show Gist options
  • Save giannisp/922338526de5cad740b15703ab6f98b3 to your computer and use it in GitHub Desktop.
Save giannisp/922338526de5cad740b15703ab6f98b3 to your computer and use it in GitHub Desktop.
HLS stream to RMTP (for Facebook Live)
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>"
@mahdouch85
Copy link

ggg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment