Created
December 19, 2023 21:33
-
-
Save henricavalcante/b30cc25a023d31ff1d06a91e4cd30430 to your computer and use it in GitHub Desktop.
ffmpeg rtsp -> rtmp
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 -f lavfi -i anullsrc \ | |
-rtsp_transport tcp -i "rtsp://" -tune zerolatency \ | |
-t 12:00:00 -pix_fmt + -vsync 0 \ | |
-c:v libx264 -vcodec libx264 -b:v 13500k -s 2560x1440 \ | |
-c:a aac -b:a 128k \ | |
-strict experimental \ | |
-f flv "rtmp://a.rtmp.youtube.com/live2/{key}" -nostdin -nostats |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment