Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you stream the frames over 10G LAN to record longer videos?


There is no Pi with 10G ethernet. New Pi4 has only Gigabit ethernet, Pi 3B+ has Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps).

The idea is interesting, did some calculation. For v1 camera capturing 640xH frames can be done at framerate "42755/H+13". Lets forget about the 13. raspiraw transfers raw10 Bayer data, that is 640xHx1.25 bytes, with maximal framerate that gives 42755x640x1.25=34204000 bytes/s=261Mbit/s(!).

So you definitely need Gigabit ethernet of the Pi4, not sure whether Pi4 can actually stream out 261Mbit without losing stuff though ...

Just asked on Raspberry networking forum (261Mbps for v1, 464Mbps for v2): https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=2482...


So it's feasible for Pi4?


No answer on the networking forum yet. I cannot try because I don't have a Pi4 yet. It seems possible. An easy test would be to test whether this command will work on Pi4:

raspividyuv -md 7 -w 640 -h 480 -t 0 -fps 90 -o - | nc someIp somePort

and on someIp server service listeing on somePort just storing the data received. Because yuv has 12bits/pixel which is a bit more than the 10bit/pixel of raw Bayer, the command produces a 316Mbps stream of data for v1 camera (732Mbps for v2 camera when recording with "-fps 180"). For testing the service on someIp can be as easy as:

nc -l somePort > foobar


You should be fine with RPi3B+ internal gigabit NIC

https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=2085...

pi@raspberrypi:~ $ sudo iperf3 -c XXX.XXX.X.XXX

[ 4] 0.00-1.00 sec 37.9 MBytes 318 Mbits/sec 0 257 KBytes




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: