I don't think there's any way to save an mp4 file directly from this circular buffer. I suspect the easiest thing would be to store regular h264 frames (as the example does), and convert to mp4 after the fact using FFmpeg or such-like. (Changing the circular buffer to redirect its write operations elsewhere ought to be feasible, but obviously requires work.)
Statistics: Posted by therealdavidp — Fri Feb 23, 2024 12:53 pm