Last active
May 23, 2021 14:27
-
-
Save OkoyaUsman/fd8a6f74b1b5b4d99d83c327064edd08 to your computer and use it in GitHub Desktop.
Perfect FFMPEG Command For Stable Live Streaming
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 "http://example.com/live/username/password/1234.m3u8" -bsf:a aac_adtstoasc -r 30 -b:v 2048k -bufsize 2048k -maxrate 4296k -vf scale="1280:720" -vcodec libx264 -preset ultrafast -c:a copy -f flv "rtmp://freertmpserver.com/servername/keyname" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ffmpeg -i file.wmv -vcodec h264 -b:v 1000k -acodec mp3 file.mp4