-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Every other example works, rtsp has huge delays and tcp implementation is a bit sketchy (SO_REUSEADDR does not appear to be set, and if the "client" disconnects from the camera everything breaks and you'll have to fiddle with finding the pids of the background processes etc)
So I thought I'd give UDP a go, to get some performance out of the network and skipping VLC, as VLC creates some severe bottlenecks on the hardware.
Using for instance:
libcamera-vid -t 0 --inline -o udp://target-ip.lan:8554
And then on the target machine doing:
vlc udp://@:8554 :demux=h264
It produces nothing. I've tried with multicast addresses too.
I don't know why, but libcamera-vid does simply not want to produce the expected stream.
I can clearly see the traffic coming from the pi and being received on the target machine using tcpdump and wireshark.
The firewalls are turned off, VLC sometimes picks up that there was something on the port, but then stops the stream attempt (probably a frame misinterpreted).
So I don't know what information to give here, or where something goes wrong.
But the UDP implementation appears broken, and rtsp creates way to much delay/latency/frame glitches.
Model: Raspberry Pi 4 Model B Rev 1.1
CPU: ARMv7 Processor rev 3 (v7l)