I have a RTMP
live stream coming from Unreal Media Server
that I need to display on a HTML5 page with <video>
tag. So far I am thinking of using ffmpeg libraries to transcode the stream with H.264 codec and output it to a .mp4 file and then access it through http protocol like this: http://ip_addr/output_from_ffmpeg.mp4
I am, however, uncertain if this would play the whole output file from the beginning or stream it live. My current ffmpeg command for transcoding the stream is:
ffmpeg -i rtmp://IP_addr_of_rtmp_stream:5119/live/Roulette -c:v libx264 -maxrate 1000k -bufsize 2000k -g 50 output.mp4
Could anyone point me in the right direction? I have also read in the docs that ffserver is able to achieve this but windows build is unavailable for it.