RTSP process with Node.js for snapshot image

I have an RTSP that I would like to make Node.JS understand. I found a way to do this using Java, which took the capture from the webcam , but I would really like to just use Node.js to complete this task and get it from the RTSP'd video.

I intend to use setInterval, capture the stream, convert it to base64 and pass it through Socket.IO to the client so that it can see it as a tag <img>in its browser. Most of this will be taken from a guy who does this with a webcam , but I only have RTSP available as a video source.

So, does anyone know if there is a way to do this?

+5
source share
2 answers

I really found the answer a few months ago, but forgot what I asked here.

My code is at https://github.com/ghostbar/RTSP-Streaming.js . It reads it from the RTSP stream and converts it to JPEG, and then to base64, to pass it through Socket.IO to the client.

+3
source

Here is a code with minimal dependencies that can read data from a webcam and upload it as an image on the server using Node: https://github.com/josher19/node-jpegcam

You could send data to the client instead of saving it as an image on the server.

- → Josh <-

0
source

All Articles