Live data from Hacker News

Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

github.com

31–40 of 86 posts

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#31
post #16

Is it possible to make an IP camera appear on the other end as /dev/videoX with near zero latency? Even with LAN ping times of 200ms of latency with IP cameras, sometimes as much as 1000ms, and can't figure out a good solution.

In the past, w/ Axis cameras, I have enabled two streams, the high quality, high res. h.264 with high latency, and a lower resolution mjpeg stream with much lower latency.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#32

It amazes me, really, that for as popular as this use case seems to be there isn't a simple, well-packaged way to stream a camera off a pi. I've been trying to get this working lately and nothing works "well". Motion is popular, but is limited to mjpeg rather than h.264. uv4l is closed source and not up to date with current OS versions. None of the various cvlc incantations to do better actually seem to work on my pi…

Gstreamer? I've used it in the past, both professionally and personally, to generate rtsp/rtp and it worked great.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#33
There's a project call rpos that turns a Raspberry Pi into a Onvif Compliant-enough camera that most NVRs can use. Onvif uses RTSP streaming just like this.

https://github.com/BreeeZe/rpos

Either way, OBS supports RTSP so you can pull feeds in and surface them as a virtual webcam to the rest of your OS.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#34
post #21

Does anyone know if any of these projects capture the h.264 stream encoded inside the webcam? I would be interested in setting up something like the nest paid subscription but on a local server (meaning record 100% of the video and build a nice interface to navigate it. No "detection of movement" kind of thing involved unless for tagging).

You can run something local like Shinobi. That just requires any rtsp camera. It can even send you push notifications on a discord channel.

https://shinobi.video/

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#35

It amazes me, really, that for as popular as this use case seems to be there isn't a simple, well-packaged way to stream a camera off a pi. I've been trying to get this working lately and nothing works "well". Motion is popular, but is limited to mjpeg rather than h.264. uv4l is closed source and not up to date with current OS versions. None of the various cvlc incantations to do better actually seem to work on my pi…

Is it that there is no way to “just” run a small custom built daemon script on a Linux box, not just in terms of camera apps but in general?

Like I have this 10 line bash script, that I want it to run for a few years, with no maintenance, that don’t get corrupted from power loss, or lock up from memory leaks, that auto restarts when necessary, but not bring down network either.

And it requires 10+ years of experience in managing and developing on GNU/Linux, a few notable certificates maybe, a bit of embedded background being a plus, to do it right enough, in about 0.25-1.0 man-month.

I’ve tried something like that on Alpine Linux, and it didn’t work always. Mostly due to proficiency issues on me, but it definitely was unnecessarily hard.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#36

It amazes me, really, that for as popular as this use case seems to be there isn't a simple, well-packaged way to stream a camera off a pi. I've been trying to get this working lately and nothing works "well". Motion is popular, but is limited to mjpeg rather than h.264. uv4l is closed source and not up to date with current OS versions. None of the various cvlc incantations to do better actually seem to work on my pi…

Check out rpos (https://github.com/BreeeZe/rpos), it turns your Pi into a compliant enough Onvif camera that you can use for NVRs.

Both rpos and piipcam serve h.264 RTSP streams that you can pull into OBS and turn into a virtual webcam.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#37

Earlier quoted context omitted.

I highly reccomend Motion, check it out if you haven't. I've ripped out and replaced subpar proprietary vendor crap with it. (keep the cameras depending on model, ditch the included DVR systems) [1] https://motion-project.github.io/

Motion is great, but most (all?) consumer IP cameras and DVRs/NVRs are Swiss cheese security wise, they routinely phone home or make connections with servers in China, some even contain hardcoded passwords etc. so that the only way to use them reliably would involve a firewall only accepting connections from trusted sources while preventing the cameras subnet to send anything to the outside world. What we need is som…

Why isn’t motion + motionEye + raspberry pi just that?

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#38
post #30

720p or 1080p wireless/wired/PoE IPCamera with FCC-certification has been on the market for a few years, at the price range of 30ish dollars, you can buy IPCamera modules for about $10 from vendors(mainly in China) and reprogram with your firmware as well. RPI-based camera is great to learn stuff, but to make a product-like devices, there are too many to choose on the market already, cheap and easy and most likely mo…

Links? I’d love to just buy the modules and stick them on my own boards.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#39
post #35

It amazes me, really, that for as popular as this use case seems to be there isn't a simple, well-packaged way to stream a camera off a pi. I've been trying to get this working lately and nothing works "well". Motion is popular, but is limited to mjpeg rather than h.264. uv4l is closed source and not up to date with current OS versions. None of the various cvlc incantations to do better actually seem to work on my pi…

Is it that there is no way to “just” run a small custom built daemon script on a Linux box, not just in terms of camera apps but in general? Like I have this 10 line bash script, that I want it to run for a few years, with no maintenance, that don’t get corrupted from power loss, or lock up from memory leaks, that auto restarts when necessary, but not bring down network either. And it requires 10+ years of experience…

There are fancier modern things but https://cr.yp.to/daemontools.html still works great for keeping a simple script running.

Re: Piipcam – 1080P IP Camera on a Raspberry Pi Zero W

#40
post #16

Is it possible to make an IP camera appear on the other end as /dev/videoX with near zero latency? Even with LAN ping times of 200ms of latency with IP cameras, sometimes as much as 1000ms, and can't figure out a good solution.

You need to tune the buffers on both the sender and the receiver, as well as choose a codec with low latency. It takes some work, but you should be able to get it below a second without too much trouble.
Post reply on HN