Last active
December 15, 2020 16:36
-
-
Save AlekseyArh/02e054bc7fe07b6b21fd0f1f4faade2e to your computer and use it in GitHub Desktop.
ffmpeg flv streaming encoding
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
ffmpeg -re -i video.mp4 -vf scale=-1:720 -c:v libx264 -preset fast -ar 44100 -ac 2 -b:a 128k -crf 24 -g 3 -b:v 6M -maxrate 6M -bufsize 3M -f flv video.flv | |
ffmpeg -re -i video.flv -c copy -f flv rtmp://%STREAM_URL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment