I am trying to stream a youtube live video. I have an mp3 file and a still image. I used following code for stream,
ffmpeg -y -loop 1 -i "still.jpg" -i "audio.mp3" " -c:v libx264 -preset ultrafast -pix_fmt yuv420p -minrate 6000k -maxrate 6000k -bufsize 12000k -b:v 6000k -r 30 -g 30 -keyint_min 60 -x264opts "keyint=60:min-keyint=60:no-scenecut" -s 1280x720 -tune zerolatency -b:a 128k -c:a aac -ar 48000 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/steam-key
It seems to be working but it has huge data transfer I think. I need to make bitrate and frame rate and other configuration to lowest. How to do it? And somewhere I found to add -re option which is missing here.