photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Support Realtime Recording

Open carlosgj opened this issue 2 years ago • 5 comments

It would be helpful to record each frame during a match, in order to diagnose glitches and tweak parameters.

Obviously, this would be need to be optional, and would only be plausible on coprocessors with bulk storage on a fast connection (USB3, SATA, etc.)

carlosgj avatar Jan 27 '23 04:01 carlosgj

The encoding overhead here seems pretty substantial -- worth considering, though

mcm001 avatar Jan 30 '23 03:01 mcm001

Maybe when/if H264 streaming becomes a thing within CSCore/PV/

mdurrani808 avatar Jan 30 '23 15:01 mdurrani808

I don't know whether this is relevant or not. ffmpeg supports use of the H.264 and H.265 encoders baked into the RK3588. Perhaps that would alleviate some of the CPU load, though only for a select set of boards.

tyrius02 avatar Oct 02 '24 20:10 tyrius02

That's also an intrinsically lossy compression. I'm not sure if I buy that being genuinely useful for debugging if you can't replay the actual inputs to the detector.

Of course, the only solution here is to go full 971 mode. /s

mcm001 avatar Oct 02 '24 20:10 mcm001

Huffman YUV (HFYU) is a lossless codec and is supported by ffmpeg and OpenCV. The resulting .avi file will be quite large, of course. I've no idea how much additional load this'd put on the CPU.

tyrius02 avatar Oct 03 '24 17:10 tyrius02