Dear all,
I am having a very strange problem, where I’m getting the following errors:
-
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
-
[ WARN:0] global /tmp/pip-req-build-rd4x2fty/opencv/modules/videoio/src/cap_v4l.cpp (890)
open VIDEOIO(V4L2:/dev/video3): can’t open camera by index
Environment
- Ricoh Theta V
- Jetson Xavier
- LXDE 0.99.2
v4l2-ctl --list-devices
The thing is that I am able to run gst_loopback
without a problem. When I run v4l2-ctl --list-devices
, the Ricoh Theta V appears as a dummy video in /dev/video3
which is the index that when I run in my program and cannot open the camera.
$ v4l2-ctl --list-devices
Dummy video device (0x0000) (platform:v4l2loopback-000):
/dev/video3
Allow reading, writing and execution on the camera by all users
I thought that maybe it was a problem with the camera not allowing the user to execute it. I gave it all the reading, writing, and executing permissions to all users, but still no luck.
ls -l /dev/video3
crwxrwxrwx+ 1 root video 81, 3 oct. 19 14:55 /dev/video3
Canny.py
Finally, I also tried running the Canny.py program, and although you can see that the video index selection is the right one, I am still getting the same Error. Does anyone know how to solve this?
$ python3 canny.py --video_device 3
Called with args:
Namespace(video_device='3')
OpenCV version: 4.5.3
Device Number: 3
[ WARN:0] global /tmp/pip-req-build-rd4x2fty/opencv/modules/videoio/src/cap_v4l.cpp (890)
open VIDEOIO(V4L2:/dev/video3): can't open camera by index
camera open failed