Forked from marcbln/stream a mp4 to facebook with ffmpeg
Created
August 17, 2021 09:15
-
-
Save svirmi/b4bac31748a10a25f81dea7a1bbb2697 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