Skip to content

Instantly share code, notes, and snippets.

@henricavalcante
Created December 19, 2023 21:33
Show Gist options
  • Save henricavalcante/b30cc25a023d31ff1d06a91e4cd30430 to your computer and use it in GitHub Desktop.
Save henricavalcante/b30cc25a023d31ff1d06a91e4cd30430 to your computer and use it in GitHub Desktop.
ffmpeg rtsp -> rtmp
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