ArduCAM / MIPI_Camera

235 stars 109 forks source link

jetson nano IMX477 gstreamer no output from camera #87

Closed ghavart closed 3 years ago

ghavart commented 3 years ago

No output from Gstreamer pipeline

In all cases: no visible output while the pipeline seems to be playing:

Setting pipeline to PAUSED ...

Using winsys: x11 
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Can you please help?

P.S. IMX219 camera is working OK on the same pipeline.

glddiv commented 3 years ago

Hi @ghavart It looks like you are using ssh to execute commands, please execute this command before running the camera: export DISPLAY=:0

ghavart commented 3 years ago

No. I was running it with a monitor attached on HDMI. Here is another output:

art@nano:~$ dmesg | grep imx477 [ 1.230265] imx477 6-001a: tegracam sensor driver:imx477_v2.0.6 [ 1.676021] vi 54080000.vi: subdev imx477 6-001a bound art@nano:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1" ! nvvidconv ! nvoverlaysink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock GST_ARGUS: Creating output stream CONSUMER: Waiting until producer is connected... GST_ARGUS: Available Sensor modes : GST_ARGUS: 4032 x 3040 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings: Camera index = 0 Camera mode = 1 Output Stream W = 1920 H = 1080 seconds to Run = 0 Frame Rate = 59.999999 GST_ARGUS: Setup Complete, Starting captures for 0 seconds GST_ARGUS: Starting repeat capture requests. CONSUMER: Producer has connected; continuing. ^Chandling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:01:10.021821572 Setting pipeline to PAUSED ... Setting pipeline to READY ... ^C art@nano:~$ dmesg | grep imx477 [ 1.230265] imx477 6-001a: tegracam sensor driver:imx477_v2.0.6 [ 1.676021] vi 54080000.vi: subdev imx477 6-001a bound [ 279.387645] imx477 6-001a: Error updating control ranges -22 [ 279.398663] imx477 6-001a: Error updating control ranges -22 [ 290.145881] imx477 6-001a: Error updating control ranges

glddiv commented 3 years ago

It seems normal from this log, can you provide a complete dmesg log?

By the way, can you tell me your Jetson Nano hardware version?

ghavart commented 3 years ago

I believe my hardware version is A02. Here is the journalctl output on a similar experiment (very long file) dmesg.txt

ghavart commented 3 years ago

Sorry. Disregard the kernel log. Here is the full dmesg output: dmesg.txt

glddiv commented 3 years ago

Hi @ghavart Can you provide a picture of the hardware connection? There is also L4T version, you can use the command: cat /etc/nv_tegra_release to get

ghavart commented 3 years ago

PXL_20210116_073655882 PXL_20210116_073728091

ghavart commented 3 years ago

R32 (release), REVISION: 4.4, GCID: 23942405, BOARD: t210ref, EABI: aarch64, DATE: Fri Oct 16 19:44:43 UTC 2020

glddiv commented 3 years ago

Hi @ghavart

Thank you very much for your information, I am undergoing a diagnosis.

ghavart commented 3 years ago

Thanks @glddiv I'll check on it tomorrow.

glddiv commented 3 years ago

Hi @ghavart I reproduced the problem. The problem is at 1920x1080 resolution, and 4032x3040 is no problem. You can try a large resolution. Next, I will try to repair the driver.

glddiv commented 3 years ago

Hi @ghavart The driver has been updated, please use install_imx477.sh to install the driver again.

ghavart commented 3 years ago

Hi @glddiv Thank you very much! It works now. After the driver re-installation both 1920x1080 and 4032x3040 work. Do you mind sharing what was the problem? The only issue I saw is the solution works for HDMI only. On a DVI-connected monitor still has the same problem. But it certainly not a blocker for me. Thanks again!

glddiv commented 3 years ago

Hi @ghavart

Finally, it was found that the problem came out on the device tree. We developed it on B01. When testing on A02, only 4032x3040 was tested, and the device tree was not corrected.

The only issue I saw is the solution works for HDMI only. On a DVI-connected monitor still has the same problem. But it certainly not a blocker for me. Thanks again!

Jetson Nano does not seem to have a DVI interface? And the video output interface theoretically does not affect the MIPI interface.

ghavart commented 3 years ago

Sorry. I meant Display Port on Nano. Thanks again!