Cant get it to work

Published by Renatofr on

Viewing 17 reply threads
  • Author
    Posts
    • #29567
      Renatofr
      Participant

      I got three B0240 cameras, that I am planning to plug on a raspberry pi zero, and on a Jetson Xavier, and I am having trouble with both platforms.

      On the raspberry pi side, I get the following error:

      $ raspistill -o Test.jpg

      mmal: mmal_vc_component_enable: failed to enable component: ENOSPC

      mmal: camera component couldn’t be enabled

      mmal: main: Failed to create camera component

      mmal: Failed to run camera app. Please check for firmware updates

       

      It isn’t the gpu memory size, I increased it to 150, and apparently the rasp recognizes the camera

      $ vcgencmd get_camera

      supported=1 detected=1

       

      Using the examples on the git, I get the following error

      ./video2stdout | nc -l -p 5000

      Open camera…

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: i2cdetect: not found

      Found sensor imx477 at address 1A

      Setting the resolution…

      mmal: Failed to fix lens shading, use the default mode!

      Current resolution is 4056×3040

      Notice:You can use the list_format sample program to see the resolution and control supported by the camera.

      Start video encoding…

      Failed to start video encoding, probably due to resolution greater than 1920×1080 or video_state setting error.

       

      and when I list the modes:

      $ ./list_format

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: gpio: not found

      sh: 1: i2cdetect: not found

      Hardware platform: 9000c1

      Found sensor imx477 at address 1A

      mode: 0, width: 4056, height: 3040, pixelformat: BA81, desc: (null)

      mode: 1, width: 8112, height: 3040, pixelformat: BA81, desc: Used for Arducam synchronized stereo camera HAT

      Get ctrl V4L2_CID_FOCUS_ABSOLUTE fail.

      index: 0, CID: 0x009A090A, desc: V4L2_CID_FOCUS_ABSOLUTE, min: 0, max: 1023, default: 190, current: 0

      close camera status = 0

      _________________________________________________________________

      On the Xavier, I try to install the driver but I get the following error:

       

      sudo dpkg -i arducam-nvidia-l4t-kernel_4.9.140-32.4.3-20200721164156_arm64_imx477.deb

      Selecting previously unselected package arducam-nvidia-l4t-kernel.

      (Reading database … 160610 files and directories currently installed.)

      Preparing to unpack arducam-nvidia-l4t-kernel_4.9.140-32.4.3-20200721164156_arm64_imx477.deb …

      Unpacking arducam-nvidia-l4t-kernel (4.9.140-32.4.3-20200721164156) …

      dpkg: dependency problems prevent configuration of arducam-nvidia-l4t-kernel:

      arducam-nvidia-l4t-kernel depends on nvidia-l4t-kernel (= 4.9.140-tegra-32.4.3-20200625213407); however:

      Version of nvidia-l4t-kernel on system is 4.9.140-tegra-32.4.4-20201016123640.

      dpkg: error processing package arducam-nvidia-l4t-kernel (–install):

      dependency problems – leaving unconfigured

      Errors were encountered while processing:

      arducam-nvidia-l4t-kernel

      Dows anybody have ever had these problems?

    • #29568
      Renatofr
      Participant

      CORRECTION: B0249

    • #29569
      Renatofr
      Participant

      UPDATE:

      I download the previous version of the image file on the Jetson Xavier page and it worked

      Just the raspberry to go!

    • #29605
      bin
      Keymaster

      Hello,

      On raspberrypi platform, please try to update wiringpi library using the following command

      cd /tmp
      wget https://project-downloads.drogon.net/wiringpi-latest.deb
      sudo dpkg -i wiringpi-latest.deb

    • #29718
      Renatofr
      Participant

      Hi, I updated the library and the errors continue, the only difference is that the gpio message won’t show up

      [email protected]:~/MIPI_Camera/RPI $ ./video2stdout | nc -l -p 5000

      Open camera…

      sh: 1: i2cdetect: not found

      Found sensor imx477 at address 1A

      Setting the resolution…

      mmal: Failed to fix lens shading, use the default mode!

      Current resolution is 4056×3040

      Notice:You can use the list_format sample program to see the resolution and control supported by the camera.

      Start video encoding…

      Failed to start video encoding, probably due to resolution greater than 1920×1080 or video_state setting error.

      ^C

      [email protected]:~/MIPI_Camera/RPI $ ./list_format

      sh: 1: i2cdetect: not found

      Found sensor imx477 at address 1A

      mode: 0, width: 4056, height: 3040, pixelformat: BA81, desc: (null)

      mode: 1, width: 8112, height: 3040, pixelformat: BA81, desc: Used for Arducam synchronized stereo camera HAT

      Get ctrl V4L2_CID_FOCUS_ABSOLUTE fail.

      index: 0, CID: 0x009A090A, desc: V4L2_CID_FOCUS_ABSOLUTE, min: 0, max: 1023, default: 190, current: 0

      close camera status = 0

    • #29733
      bin
      Keymaster

      Hello,

      video2stdout just supports 1080p or below resolution, which is limited by pi hardware encoder.

      You can use our arducamstill -t 0 to test the camera firstly to check if the camera is normal.

       

    • #29764
      Renatofr
      Participant

      It is working with ./arducamstill -t 0

      there is a way to transmit it via ethernet via Gstreamer without the video2stdout?

    • #29791
      bin
      Keymaster

      Hello,

      The image we previewed by arducamstill is YUV420 format, with a large of image data. When using gstreamer to push the stream, we need to use H264 encoding to compress the image data and output it. This is what the video2stdout does. But due to the limitation of the hardware H264 encoder, it just support 1080p or below. Except video2stdout demo, we don’t have other demo for gstreamer

       

       

    • #30995
      oiluig
      Participant

      Hello,

      I have purchased a B0174 (imx298 sensor) 16MP and I have a similar issue with video and I was not able to record video with resolution higher than 1920×1080.

      Still I am using a Pi4! Would you say there is the same limitation in h264 encoder?

      I hope not as specs on arducam webpage says imx298 should work with a Pi4 and video up to 16MP (7fps) should be possible…

      Arducam IMX298 MIPI 16MP Color Camera Module for Raspberry Pi 4/3B+/3

      any suggestions?

    • #31034
      bin
      Keymaster

      Hello,

      Imx298 Raw10 2Lane 4656×3496 configuration preview on raspberry pie can reach 6-7 FPS.However, for the H264 hardware encoding of PI, only 1080p @30fPS or lower can be encoded. This is related to the interface capability of the hardware encoder.

    • #31145
      oiluig
      Participant

      Thanks, for your reply.

      May you provide an example of how to take a video  in the raw mode?

       

       

    • #31201
      bin
      Keymaster

      Hello,

      We can’t record a video using raw format. For RPI. The hardware ISP supports h264 encode.

      Without encode, we can’t save it with a video format. Let me know if you need more help.

       

       

    • #31438
      oiluig
      Participant

      Thanks for your reply.

      If you confirm there is no way to get videos of resolution higher than [email protected] out of this camera module with a Raspi4, I suggest your ad should be updated and this limitation specified.

    • #31439
      oiluig
      Participant

      Actually I would have a question:-),

      is there a way to stream the preview (so high resolution) through ssh or equivalent and encode the stream on another machine?

       

      Many thanks

       

      Giulio

    • #31506
      Renatofr
      Participant

      Oiluig, that is precisely what I was trying to do with the imx477 sensor, transmit the video data uncompressed in my network and compress it on a more powerful computer. I didn’t find any solution for this issue so far, if anybody  have a solution for this it would be highly appreciated.

    • #34054
      bin
      Keymaster

      Hi,

      If so, you can receive raw image and then transfer the image data through internet.

       

    • #35009
      ospnlive
      Participant

      So there is no native support to stream over network from the high res sensors h.265 or h.264 via gstreamer or ffmpeg on Pi 4 setup?

    • #35201
      bin
      Keymaster

      Sorry to reply to you so late, there is a problem with our forum service system, it has been fixed now, has your problem been solved? Please feel free to let me know if you need more help.

       

Viewing 17 reply threads
  • You must be logged in to reply to this topic.