seanocaster
Posts: 10
Joined: Mon Sep 30, 2019 2:32 pm

View/monitor RTSP IP camera feed on RPi

Tue Oct 08, 2019 1:47 pm

I have been around and around in circles with this. I feel like i've read every single article on google and tried to install a million different little apps with no success yet.

I have an IP camera (hikvision broadcasting an rtsp stream 1920x1080 @ 1 fps.) connected to my RPi 4 and it is streaming ok http://weather4fuj.ddns.net:1051/

The problem i have is that this stream is too heavy on data and CPU. This one camera alone is using 200% CPU and if i add a 2nd camera the system starts freezing. And i do need to add a 2nd camera.

I have tried RPi-Cam-Web-Interface but i was not able to get UV4L working - which i believe is supposed to add the IP camera to the RPi as if it was attached locally. I was hoping to grab a single image every 60 seconds and somehow broadcast that in a similar way as mentioned in link above.

The goal is to use a web browser and see an updated picture of the remote location every 60 seconds.

If anyone has any suggestions - please point me in the right direction!

Thanks.

User avatar
neilgl
Posts: 2226
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: View/monitor RTSP IP camera feed on RPi

Tue Oct 08, 2019 4:57 pm

Maybe just get your camera to take a still picture every minute (using cron). Call this "new.jpg"
Then use apache2 on the pi to serve a simple page showing that image:

Code: Select all

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Show latest picture</title>
  <body>
    <h1>Show new.jpg</h1>
    <a href="new.jpg">new.jpg</a>
  </body>
</html>

seanocaster
Posts: 10
Joined: Mon Sep 30, 2019 2:32 pm

Re: View/monitor RTSP IP camera feed on RPi

Tue Oct 08, 2019 5:50 pm

Thanks for the reply, that is helpful.

Any suggestions on which software should be used to grab a still from the RTSP (IP camera) feed?

User avatar
neilgl
Posts: 2226
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: View/monitor RTSP IP camera feed on RPi

Tue Oct 08, 2019 5:58 pm

Not sure as I don't have that camera (I use £24 pi camera module) but some of them apparently can take a picture via a URL to the camera.

Return to “Beginners”