IP camera multicast stream on web - html

We are developing a project and a part of this project is showing live preview on web page. I should use multicast stream because there will be too many clients and none of them will directly connect to camera. I want to use multicast property of camera and no need to increase network traffic. I want to this very simple, I mean I want to show the stream on html img tag or something like this and give the source path (for ex : ) multicast IP address of the camera. I googled and could not find any clear solution. By the way I want to support all browsers so html img tag I prefered. I do not want to embed any video stream plugin because cross platform supporting. I need ideas or suggestion and a clear example. Thanks in advance..

There are many ways,
you can directly insert rtsp link inside your webpage using vlc plugin or Quicktime plugin, or you can make a server to read stream from the camera(may be using nodejs or gstreamer or opencv etc) and broadcast it to a http ip or send it in base64 images to webport and on the website you can read it using websockets, socket.io library

Related

How to pass parameter in a link to open VLC?

It's an HTML page which I use only locally.
I have a link to a video in my HD like this:
Watch video
When clicking it, it launches the video with VLC directly as expected.
Now, I'd like to pass parameter inside like the starting time for this video.
In the shell for example you can do:
vlc /path/to/myvideo.mp4 --start-time=126
And it will launches the video at the 126 second point.
How can I do that with my HTML link?
I've tried for example:
Watch video
But it still launches it from the beginning of the video.
At this point I think you would need to use some kind of server-side wrapper/listener, as I had commented in a related question's old answer, the plugin is not available on modern web browsers anymore.
Depending on how badly you need to control the start time (and if its a thing you need to build into an application) then you could call the VLC HTTP Server via its web API and remote control to scrub the player forward on the user's desktop. If you had some kind of push mechanism in place you could even control that via a regular link on the web.
I would suggest to combine a framework like Pusher for the web controls:
https://github.com/pusher/pusher-js
Followed by your choice of backend language to listen over HTTP(S), and remote control VLC via its API (either HTTP or native):
LibVLC:
https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc.html
How to Use VLC Media Player API in a C Program:
https://progur.com/2017/06/how-to-use-vlc-api-in-c.html
VLCJ -- Java framework for the VLC media player: https://github.com/caprica/vlcj
Node.JS -- VLC API: https://github.com/jfhbrook/node-vlc-api .Net
Interface to VLC: https://wiki.videolan.org/.Net_Interface_to_VLC
PHP/Python/Perl options -- Linux control a running vlc process through command line:
Linux control a running vlc process through command line
No code option, just use the basic web interface that comes with VLC: https://www.howtogeek.com/117261/how-to-activate-vlcs-web-interface-control-vlc-from-a-browser-use-any-smartphone-as-a-remote/

Audio Visualizer for WebRTC

I am trying to use www.rtcmulticonnection.org, spefically: http://www.rtcmulticonnection.org/docs/onstream/
I want to be able to grab the video element and connect it to a frequency analyzer.
I have tried $("video").get(0).connect
But that is not even a function, attempting on chrome. I do have an audiocontext, and a webrtc connection working. Any thoughts?
Are you looking for something like this example which queries a local stream volume using the WebAudio API?
In Chrome this has only been recently (M49 or M50) been fixed to work with remote streams received via a RTCPeerConnection.
Note that you will need the MediaStream object typically, not the video element.

HTTP live Streaming reader

I have a server providing live streaming channel over a network via http and upd (http://..., upd://...), and I've been trying to find a way to display the stream to users in their browser (on at least Windows 7). I have tried to set video tag with src "http:// ip of server - ip of channel...", but i have obtained that "video format or MIME type is not supported".
so i have tried to save this content for 1 min and then played as a normal video, it's played normaly. So i think that my problem is to find a solution to display this content on the browser.
kindly, can you help me to find this solution or the steps and the tools required for this issue. please.
best regards,

Capturing Microphone Using Html 5 and broadcast using socket.io

I am currently developing Virtual Classroom with whiteboard,video/audio conferencing. How can I capture microphone using HTML5,Javascript. How can i create base64 encoded string from microphone ? I already capture video image from tag and draw on canvas and received base64 encoded string and broadcast to all students and its works. is any similar way for audio tag also ? i would like to broadcast teacher microphone voice to whole class using socket.io. I found number of tutorial but every body explain about video not audio :( . I am using Chrome -v 21 and able to use webkit.
Thanks in advance
The Stream API should allow you to do this but unfortunately it's not supported in any of the current (stable) browsers. You could download the nightly build of Google Chrome which definitely includes some support for the API, though how complete I'm not sure.
I'm guessing it shouldn't be too long until plugins for node start appearing to help with the handling of this stuff on the server side, but meantime the following might be useful:
Streaming audio from a Node.js server to HTML5 tag
A Node.js module for parsing and/or injecting metadata into SHOUTcast/Icecast radio streams.
Streaming audio using Firefox Audio Data API + Node.js + WebSocket + Redis Pub/Sub
Update:
http://code.google.com/p/chromium/issues/detail?id=112367
This issue is being worked making it stable for windows platform too, but working on Mac.

How to read stream video from IP cam

I am trying to read the streaming from a Network IP Camera.
I can connect to the IP Camera (web server) by proprietary web interface and I can watch the video (h.264 format), but I need to read the video stream and put it in a web page that I am developing.
How can I read only the stream video ?
I think I have to authenticate in some way before read the video stream, right ? (and how ?)
Do exist some particular camera that allow me to read easily the video stream ?
Is there some plugin, applet or something that I can use in my html page ?
I know: to many question :) you can suggest me some web page that can help me.
Thank you,
Alessandro
hej allesandro,
only streaming the h.264 video data looks like a task for RTSP. There are some HTML-plugins for websites which can start a RTSP stream. Either you use one of them or you simply program your own plugin for your website. live555 is a powerful library for RTP and RTSP streaming. Try to find out if your server supports RTSP...
greetings,
jens.