Transfer of RTSP / RTP video stream to the site

Welcome. Has anyone ever encountered a subj? You need to stream video from the IP camera to the site. What is the easiest way to implement it?

Is this implemented directly, or maybe you need to put an intermediate server that would, for example, convert the RTP stream to flv files, which would be played on the site?

2 answers

Yes, you can take for example VideoLAN as an intermediary. Then you take the src for html-a from it.

What kind of camera do you have ? Does MJPEG support ?

UPD

You can still insert <img src="ваш_ip_camera:port/videostream.cgi?user=admin&pwd=test"> in the form of(example) <img src="ваш_ip_camera:port/videostream.cgi?user=admin&pwd=test"> on the site, the advantage is that without any player components, purely html-e broadcasts, I myself use this code, well, the quality is not better than H. 264, but 10-15 connections are served.
Good luck!

 1
Author: Vfvtnjd, 2013-02-09 18:09:49

You can broadcast the RTP stream to the site using WebRTC. On the one hand, data is transmitted over the RTP protocol, on the other hand, the Media Source Api is used.

There is an article (English) http://updates.html5rocks.com/2011/11/Stream-video-using-the-MediaSource-API and example http://html5-demos.appspot.com/static/media-source.html

And another one on the topic http://habrahabr.ru/post/229243/

 1
Author: SiZE, 2015-07-13 07:39:12