Process RTSP with Node.js for taking an image snapshot

13,259

I really found the answer months ago but forgot I asked here.

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

Share:
13,259

Related videos on Youtube

ghostbar
Author by

ghostbar

Software developer (go, bash, javascript) and maintainer (debian, alpine). https://github.com/ghostbar

Updated on June 04, 2022

Comments

  • ghostbar
    ghostbar almost 2 years

    I have a RTSP that I would love to make Node.JS understand. I found a way to do it using Java taking a capture from a webcam but I would love to just use Node.js on this task and get it from a video RTSP'd.

    My intention is to use setInterval, grab the stream, convert it to base64 and stream it through Socket.IO to a client so they can see it as a <img> tag on their browser. Much of this will be taken from the guy who make it with a webcam but I only have a RTSP available as video-source.

    So, does anyone knows if there's a way to do this?

  • Shadow The Kid Wizard
    Shadow The Kid Wizard over 11 years
    Please follow the steps here to merge your accounts. Also please post some relevant code, don't just put link to external website holding the whole code. Thanks!