News for hackers. Stuff that matters.
Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by rasz on Friday August 09, 2019 @01:55AM (#20651665)
Compressing 640x64@660 takes exactly the same amount of work as compressing 1280x720@30. You could even use hardware h.264 encoder as long as you can debayer raw 10bit in software fast enough (or convince Broadcom employee 6by9 to make internal Videocore firmware debayering resolution agnostic, its already fast enough keeping up with twice the amount of data when using camera in 1920x1080@25 mode).

But you dont even need fancy compression, at those framerates things change really slowly so simple delta encoding on raw data will do wonders.

Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by zaarn on Friday August 09, 2019 @02:45AM (#20651853)
Compressing 660fps in real time is a much different task than 30 frames per second, notably because your latency budget is a lot lower. At 30fps you have 33ms to load the frame, compress it and send it off to the destination, at 660fps you have 1.5ms for the same task, which does not necessarily get exponentially faster with lowered resolution.
Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by rasz on Friday August 09, 2019 @04:36PM (#20658063)
You have exactly as much time as at 30fps at 22x higher resolution. You dont need to constantly reuse the same 52KB buffer. Data comes at a steady snail 35MB/s pace. Pee 3 should even be able to save it on USB2 HDD in real time with no compression.
Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by HermannSW on Saturday August 10, 2019 @03:38AM (#20660737)
Really? USB2 is 300Mbps for PI3 ethernet over USB2, is it faster with hdd? I ask because snail 35MB/s is 280Mbps.
Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by rasz on Sunday August 11, 2019 @11:33PM (#20672192)
replied here https://news.ycombinator.com/item?id=20658147

last time I tried USB 2.0 hdd on pee3 did 35MB/s on the dot

Re:A Guide to Recording 660FPS Video on a $6 Raspberry Pi Ca... by novaRom on Friday August 09, 2019 @04:10AM (#20652230)
You do not need any special heavy compression. Just deltas between consecutive frames should result in 1:100 or more compression rate at such high frame rate. This is assuming you can keep both pivot and current frames in processor's SRAM.