- To create an output stream, you have to use the following FFmpeg command
ffmpeg -i input_source -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset fast -r 30 -g 60 -b:v 2000k -bufsize 4000k -acodec libmp3lame -ar 44100 -b:a 712000 -f flv YouTube_RTMP_URL
You can adjust the frame rate and video bitrate according to your requirements with -r and -b:v options.
- Execute the above command in a terminal, if everything goes well then, you will able to see the output indicating the streaming process.
Visit this thread if you face any problems while streaming.
Error while recording the live streaming video
Thanks