Forked from marcbln/stream a mp4 to facebook with ffmpeg
Created
January 22, 2023 06:30
-
-
Save lychhayly/01568a678d4b4c7955c5bd8fa7417ab7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ffmpeg -re -i ./video.mp4 \ | |
-acodec libvo_aacenc -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 1280x720 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace \ | |
-vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmp://live-api-s.facebook.com:80/rtmp/THE-SECRET-KEY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment