I have an rtsp stream with MP4 video codec and G711 audio codec. I need to get it work without FlashPlugins.
Video stream in WEB is a frustrating thing.
Is there a possibilty to convert in browser with javascript my Mp4 video and G711 audio in a webm or a h264 codec on fly to use it as a stream for video html5 element or any player!
The problem is, flowplayer does not support rtsp stream, vlc does not work in chrome and flash does not support into android.
so there are many many problems to get it work. So if there is a possbility to transocde the rtsp stream on the client perhapse there is a possibility to resolve this problems.
thx
Firstly - MP4 is not a video codec but a container. So the question is the RTSP server really streaming MP4 (which I doubt but it might) or maybe you have confused MP4 with H.264.
Chrome and Firefox both accept live video streams in the fragmented MP4 and WebM (which is irrelevant in this case) video containers. So if you really already have MP4 payload you can simply unpack it from the RTSP stream and forward to the browser. If you have H.264 you will have to perform muxing of the raw H.264 video stream into an MP4 container together with the audio (I am not sure if G711 is supported by browsers, I doubt it so audio might need to be transcoded). The free option is to setup FFmpeg to transcode rtsp to fragmented MP4 (there are lots of examples for this, just Google) or if you are looking for a commercial product our company has just released an video surveillance product that can offer HTML5 compatible live streaming from RTSP cameras. If you have any interest in the commercial product leave a comment.