Closed IanPhilips closed 2 years ago
Thanks @IanPhilips for checking out the project. I don't think I have seen this error before. I started putting a bug label on this issue, but after I read the output, it seems that it's a system error. It's possible that the initial buffer size is not proper or invalid for the device. The V4L2 API is an intricate beast and can require subtle coding to handle all corner cases. I know these examples don't do a good job at that. Nevertheless, I will keep an eye on that.
Thanks for the quick response! It's weird because the example code completes its job of saving the frames just fine, and then upon exiting & stopping the stream, that error comes up.
Hmmmm actually it seems like all the example needs is a os.Exit(0)
at the end to avoid the error! I haven't used go in a while though and am not sure if that's a valid solution. If so I can submit a PR for that fix.
I am closing this for now. If there are still issues, please re-open.
Hi,
I'm testing out the mjpeg saving example in the README (making the sole change of width to 1280 and height to 720 - which the camera DOES support) and half of the time the example runs smoothly and then sometimes when I run it I get the following error:
Have you seen that before or have any idea why it might be happening seemingly randomly?
Thanks for the library btw!