Live data from Hacker News

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

github.com

61–70 of 86 posts

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

#61
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…

Something like that ?

    [Unit]
    Description=auto start script
    After=multi-user.target
    [Service]
    Type=simple
    ExecStart=/home/pi/script.sh
    User=pi
    WorkingDirectory=/home/pi
    Restart=on-failure
    [Install]
    WantedBy=multi-user.target

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

#62

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…

I’d like to plug my project, APStreamline for just this use case (https://github.com/shortstheory/APStreamline). It supports network adaptive streaming which adjusts the resolution and bitrate of the H264 video streamed from the Pi camera depending on the quality of your network connection. You can then use an RTSP player such as VLC to view the video stream. It works great with other types of cameras too!

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

#63

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…

Same, have been looking for a slightly different use case: Using RPi as a video capture card that takes an HDMI input and outputs H.264. Even better would have been to implement it as a UVC device that can be plugged in as a video source.

I was surprised that gamers haven't implemented this yet as a DIY Elgato project.

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

#64

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…

I’d like to plug my project, APStreamline for just this use case ( https://github.com/shortstheory/APStreamline ). It supports network adaptive streaming which adjusts the resolution and bitrate of the H264 video streamed from the Pi camera depending on the quality of your network connection. You can then use an RTSP player such as VLC to view the video stream. It works great with other types of cameras too!

Took a look at your GitHub link, looks like you put in quite a lot of work.

Looks very interesting.

When you say "works great with other types of cameras", could you explain? You've tested with other cameras and could you tell us which?

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

#65

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.

This is the comment I was scrolling for. GStreamer is awesome.

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

#66
post #26

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…

This is sadly 'just' homekit, but I was pretty impressed with the polish of the solution: https://hochgatterer.me/hkcam/ I agree on the comment for rtsp though. Most solutions have multiple seconds of latency which is a bit suboptional.

This is really nice.

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

#67
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.

There were a bunch of people experimenting with using RaspberryPis for low latency drone FPV video. Turns out for some use cases WiFi in it's standard config is a big part of the "getting below a few hundred milliseconds latency" problem. (Note: trying for low latency on 1080p video is making life harder for yourself too. If you don't _need_ 2 megapixel frames, go smaller. 720 or 600 lines might be fine. Drone FPV often uses 525 line analog video.)

I've got a setup I built based on this: https://befinitiv.wordpress.com/wifibroadcast-analog-like-tr... that's well below 100ms if latency. It's still not as good as analog video for fast drones though.

These days most drone people just blow money on the new-ish DJI digital video stuff (which works on non-DJI drones). It's pretty spectacular, but it's over a grand (in AUD) worth of gear so for now I'm sticking with my old analog video gear.

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

#68
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…

> Isn't ip-camera a solved problem? Not if you care about: - image quality, most of these 10$ camera modules have "sensors" that only work halfway decent with good lighting and are little more than static noise at night - general build quality, expect issues with the power supply or at temperature extremes - security, there's no OpenWRT or equivalent for these, so even if you make your own firmware you're still respo…

Reolink PoE... Pretty great... like the Unifi of security cameras.

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

#69

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…

Just wait until you try to include audio in the stream...
Post reply on HN