mmal problems and supported=2 detected=0, libcamera interfaces=2
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
mmal problems and supported=2 detected=0, libcamera interfaces=2
hello everyone !
i am using the stereoPi v2 with CM4 when i ran the 1_test.py i get the following error
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera
self._camera = mo.MMALCamera()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __init__
super(MMALCamera, self).__init__()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __init__
prefix="Failed to create MMAL component %s" % self.component_type)
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "1_test.py", line 62, in <module>
camera = PiCamera(stereo_mode='side-by-side',stereo_decimate=False)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __init__
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _init_camera
and thank you in advance for your time and help
i am using the stereoPi v2 with CM4 when i ran the 1_test.py i get the following error
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera
self._camera = mo.MMALCamera()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __init__
super(MMALCamera, self).__init__()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __init__
prefix="Failed to create MMAL component %s" % self.component_type)
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "1_test.py", line 62, in <module>
camera = PiCamera(stereo_mode='side-by-side',stereo_decimate=False)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __init__
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _init_camera
and thank you in advance for your time and help
- Realizator
- Site Admin
- Posts: 938
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
It's either the camera ribbon cable connection issue, or GPU memory settings. If you're using our OpenCV image, memory settings should be fine.
Could you please run these commands in the terminal one by one and share the results:
raspivid -cs 0
raspivid -cs 1
upd> If you altered test.py with your own resolution (like 12Mpix for HQ camera), adjust the gpu_mem setting in config.txt to 384 or 512 Mb.
Could you please run these commands in the terminal one by one and share the results:
raspivid -cs 0
raspivid -cs 1
upd> If you altered test.py with your own resolution (like 12Mpix for HQ camera), adjust the gpu_mem setting in config.txt to 384 or 512 Mb.
Eugene a.k.a. Realizator
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
i didn't altered the test.py but i changed gpu_mem to 512Mb but the same error .i attached the results for the 2 commands you asked me to do and after that i tried to change the mode to legacy but i didn't find the option in the raspi-config as you can see.do i need to disconnect the ribbon and reconnect it.
- Attachments
-
- WhatsApp Image 2025-02-20 at 21.30.07_6f0831b9.jpg (86.67 KiB) Viewed 379541 times
-
- WhatsApp Image 2025-02-20 at 21.27.18_8c7b6d94.jpg (22.98 KiB) Viewed 379541 times
- Realizator
- Site Admin
- Posts: 938
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
It looks like you're using the fresh RaspiOS, which does not have the MMAL/raspivid/raspistill video stack.
The easiest way is to get the ready-to-use OpenCV image here: https://www.mediafire.com/folder/nzr90vj8wp1l3/SLP
The easiest way is to get the ready-to-use OpenCV image here: https://www.mediafire.com/folder/nzr90vj8wp1l3/SLP
Eugene a.k.a. Realizator
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
i am sorry i am kinda new to this can give me further instructions ,is there any way to get the legacy camera stack on .
i am sorry in advance for the trouble ,thank you for your guidance.
i am sorry in advance for the trouble ,thank you for your guidance.
- Realizator
- Site Admin
- Posts: 938
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
Okay, here are a few simple steps:
1. Using the link I've provided, please download the file "OpenCV_Buster..."
2. Insert SD card to your pc, and, using Balena Etcher software, write this image to the SD card
3. Insert this card to your StereoPi. Enjoy!
1. Using the link I've provided, please download the file "OpenCV_Buster..."
2. Insert SD card to your pc, and, using Balena Etcher software, write this image to the SD card
3. Insert this card to your StereoPi. Enjoy!
Eugene a.k.a. Realizator
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
thank you for your help,i am gonna test these steps tomorrow, i hope this works.
update:
it finally worked thank you so much.
update:
it finally worked thank you so much.
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
i need to use yolov8 in my project and when i try to install ultralytics it depends on pytorch>=1.8 but it's impossible to install pytorch for the 32bits raspi os that you provided .is there any busterOS images for 64bits or if there is any solution to this problem.
- Realizator
- Site Admin
- Posts: 938
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
Sorry, we don't have a ready-to-use 64bit image.
Eugene a.k.a. Realizator
-
help!!plz!!
- Posts: 6
- Joined: Wed Feb 19, 2025 3:56 pm
Re: mmal problems and supported=2 detected=0, libcamera interfaces=2
will the parametres that are in calib_data folder work (i have IMX219-160 camera) ?
another question why there are two folders 240 and 480?what are they used for ?
%Run 5_dm_tune.py
Read and split image...
Read calibration data and rectifying stereo pair...
(5_dm_tune.py:3852): Gtk-ERROR **: 05:11:02.981: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Backend terminated or disconnected. Use 'Stop/Restart' to restart.
another question why there are two folders 240 and 480?what are they used for ?
%Run 5_dm_tune.py
Read and split image...
Read calibration data and rectifying stereo pair...
(5_dm_tune.py:3852): Gtk-ERROR **: 05:11:02.981: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Backend terminated or disconnected. Use 'Stop/Restart' to restart.