PiCapture › Not finding the Camera
- This topic has 8 replies, 2 voices, and was last updated 3 years, 9 months ago by
m.flags.
-
AuthorPosts
-
July 6, 2017 at 2:24 pm #1277
m.flags
ParticipantHello,
I have connected Wonwoo MB-B108 2 megapixel camera with HDMI output and connected it to PICAPTURE HD1
I followed the instructions here: https://lintestsystems.com/downloads
sudo pip install pivideo
Then when I write in the terminal:
raspivid -md 6 -p 50,50,320,240
I get:
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)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctlyWhat I am doing wrong please
Thank you in advance
July 6, 2017 at 2:41 pm #1278m.flags
ParticipantI forgot to mention:
“Menu” > “Preferences” > “Raspberry Pi Configuration” – “Camera” is enabled
“Menu” > “Preferences” > “Raspberry Pi Configuration” – “I2C” is enabledPins, did’t change.
Thank you
July 6, 2017 at 3:33 pm #1279mwlinder
KeymasterThere are several possibilities.
– Please make sure that the ribbon cable is connected properly
– Please use pivideo to check the status of the PiCapture card with “pivideo -q all -v”
– Make sure that the PiCapture blue LED is on indicating good video before attempting to start raspivid
– You can use a very simple raspivid command to make sure things are working: “raspivid -md 6 -o”
– If you have a regular Raspberry Pi camera you can use it to make sure your system is set up proplerly
– After you get one MMAL error, it is best to power-cycle the system to make sure that everything is reset before trying again. After you get one MMAL error you may continue to get them even if the issue that caused the first one is resolved.July 6, 2017 at 3:35 pm #1280mwlinder
KeymasterI forgot to mention: you are using Mode 6 in your raspivid command – please make sure that you are sending 480p video for this mode. The pivideo software will tell you what format video has been detected, and the Mode needs to match.
July 6, 2017 at 4:10 pm #1281m.flags
ParticipantThank you for your help, I really appreciate it
1. I made sure the ribbon cable is connected the right way, and blue LED is on
2. When I copied ‘pivideo -q all -v’ in the terminal, I got:
Traceback (most recent call last):
File “/usr/local/bin/pivideo”, line 9, in <module>
load_entry_point(‘pivideo==0.1.11’, ‘console_scripts’, ‘pivideo’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2476, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2190, in load
[‘__name__’])
File “/usr/local/lib/python2.7/dist-packages/pivideo.py”, line 24, in <module>
from builtins import chr
ImportError: No module named builtins3. When I copied ‘raspivid -md 6 -o’ in the terminal, a RED LED turned on then after a while off
Its an improvement I guess, because I am not getting the error in my first post.
How I can solve please the problem when I wrote: “pivideo -q all -v”
Thank you
July 6, 2017 at 5:02 pm #1282mwlinder
KeymasterIf the Red LED was not turning on with your earlier attempt, then the ribbon cable was the most likely problem.
The pivideo software requires the “future” package installed if you are using Python 2, as described in the documentation. You can install it with pip:
sudo pip install future
This should resolve the error you are getting.
July 6, 2017 at 5:21 pm #1283m.flags
ParticipantThank you, yes it did, I found it here:
Why do I get the error "ImportError: No module named builtins" when trying to use PiVideo?
I also want to share what I did so that maybe someone faces the same problems:
For Raspbian Jessie Lite – Minimal image based on Debian Jessie
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo pip install future
sudo pip install pyserial
sudo pip install serial
sudo apt-get install python-smbusThen Reboot
Then:
sudo pivideo -q source
I got
Active video source is: hdmi
But still when I write: sudo raspivid -md 6 -o
I get the RED LED on for a while and then off
When I write in the terminal: sudo pivideo -q all
I get:
PiCapture HD1 is ready
Active video: Mode 5
Selected video source is: hdmi
Raspberry pi camera port is not activeWhat is the camera port means? and why its not active?
Thank you
July 6, 2017 at 5:33 pm #1284mwlinder
KeymasterThe red LED indicates that the RPi is actively using the camera. It lights when you are using raspivid, raspistill, etc., and is otherwise off. When pivideo reports “Raspberry Pi Camera port is not active” it just means that no program is using the camera. In your case, it means that raspivid has exited.
Mode 5 video is either 720p or the special case of lowered resolution 1080i video. You can also tell the detected resolution by looking at the four green LEDs on PiCapture. Please be sure that the mode you are specifying with raspivid matches the detected mode.
July 7, 2017 at 7:04 am #1285m.flags
ParticipantYES, It worked perfectly with so much flexibility
I really appreciate your patience and your support
-
AuthorPosts
- You must be logged in to reply to this topic.