0

I'm looking for assistance with wirelessly streaming video from a (headless) Raspberry Pi Zero and pi NOIR v2 camera module. I'd like to collect data for a machine vision application with a fixed frame rate and arbitrary (fixed) latency. Motion/clips are typically 20-30 seconds long.

In contrast to the resources I've found to date, I don't care about the amount of latency- I only care about a consistent frame rate at a fixed resolution- Ideally something >=30 fps and with resolution >=1280x720.

I'm happy to do the leg-work on this- I'm looking for leads that might amount to something I haven't tried yet.

Things I've tried:

  1. I've moved the motion detection off the pi (and into iSpy on a windows box) to reduce loading on the RPiZ, but still am not having much success. (I tend to like the iSpy interface now that I've tried it...)

  2. raspivid | cvlc: Most success to date, typically 10-30FPS in mode 6 (1280x720), but choppy. I used mode 6 to reduce loading on the RPiZ versus custom cropped frames. (using: raspivid -o - -t 0 -md 6 -fps 30 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 :h264-fps=30)

  3. MotionEye server on RPiZ: Frame rate dropped to single digits when detecting motion

  4. cvlc & v4l2: Segmentation fault (cvlc v4l2:///dev/video0 1 --v4l2-width 1280 --v4l2-height 720 --v4l2-chroma h264 --sout '#rtp{sdp=rtsp://:8554/}')

  5. iSpy also detects an FFMPEG video feed called MOTIOeye on port 8081 (not the port I've been using) but just overlays "UNABLE TO OPEN VIDEO DEVICE" on a grey field. (This may be a left-over after all the other things I've tried...)

  6. I've tried playing with the -b parameter in raspivid with no perceivable impact.

I've also read about things like mjpeg-streamer, gstreamer, and a few others but they all seemed to be pointed at low-res (eg. VGA) with low latency, and video snippets demonstrated inconsistent/low frame rates.

When I get a few minutes, I'll try to get an iperf measurement between the RPiZ and iSpy machine (across the 802.11ac network) and append it to this question.

Can anyone point me in the right direction? Anyone else trying to do this? Am I off my rocker trying to get this scale of performance from an RPiZ on a wireless connection?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.