I am currently recording video with my OpenMV H7 and writing the video via SPI bus to another board. I was thinking I can speed up the process by performing SPI writes on each frame that I create for my mjpeg. Is this possible to do?
I wrote some code to get data to send over the SPI bus but
text reads nothing:
last_size = 0 m = mjpeg.Mjpeg("example.mjpeg") for i in range(150): clock.tick() m.add_frame(sensor.snapshot()) with open("example.mjpeg", "rb") as f: f.seek(last_size) text = f.read(m.size()-last_size) f.close() last_size = m.size() m.close(clock.fps())
The code here records video by adding frames to example.mjpeg and on each frame I attempt to open the file, read out the new frame data to
text. My plan was to then send the frame data over SPI but to simplify the code here I did not include the SPI write part as I’m not able to read any data from example.mjpeg to send in the first place