Closed Vinsub closed 2 years ago
What type of camera do you have? What is your config? OS? If it's an usb camera, try to unplug/replug. For the VIDIOC_STREAMON, the documentation says: EINVAL The buffer type is not supported, or no buffers have been allocated (memory mapping) or enqueued (output) yet. Try it with capture_memory = MMAP configuration value.
I added some checks to spot some kind of buffer configuration errors.
Sorry for delay, i have e raspberry 4, camera 2.1, Raspbian.
Traceback (most recent call last):
File "fmp4streamer.py", line 264, in
Something is using your camera.
I dont now, but if i try with another software the camera works
Please close the other camera software, only one process can use it.
i close all software and i reboot system, how can i check if there is a service that uses camera?
$ lsof /dev/video0 $ systemctl --user status $ systemctl status
Ok, i undestand, i'm a idiot. I made the service of fmp4stream... Now, 2 questions:
Ok, it works, thank you so match!!! How can remove this service from start?
$ systemctl --user disable fmp4streamer
Thanks!!!
You're welcome!
I am so sorry, i have an error running the fmp4streamer.py.
Waiting for the first h264 frame...Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/home/pi/Desktop/touchUI/fmp4streamer/v4l2camera.py", line 274, in run self.start_capturing() File "/home/pi/Desktop/touchUI/fmp4streamer/v4l2camera.py", line 243, in start_capturing ioctl(self.fd, v4l2.VIDIOC_STREAMON, struct.pack('I', v4l2.V4L2_BUF_TYPE_VIDEO_CAPTURE)) OSError: [Errno 22] Invalid argument