I try to run guvview, and it print error as follows:
nvidia@nvidia-desktop:~$ guvcview -d /dev/video0
nvbuf_utils: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection
Opening in O_NONBLOCKING MODE
GUVCVIEW: version 2.0.5
nvbuf_utils: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection
Opening in O_NONBLOCKING MODE
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (VIDIOC_G_EXT_CTRLS) failed
V4L2_CORE: using VIDIOC_G_EXT_CTRLS on single controls for class: 0x009a0000
V4L2_CORE: control id: 0x009a0903 failed to get (error -1)
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.tegra-hda-galen.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
GUVCVIEW: (status) saving video to /home/nvidia/my_video-1.mkv
ENCODER: add stream 0 to stream list
ENCODER: add stream 1 to stream list
ENCODER: (matroska) add seekhead entry 0 (max 10)
ENCODER: (matroska) add seekhead entry 1 (max 10)
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1771846
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1755621
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1755303
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1758142
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1756776
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1759644
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1330708
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1161788
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1161223
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1152723
ENCODER: Error encoding video frame: -1
[mpeg4 @ 0x7f5c000e50] Provided packet is too small, needs to be 1153572
ENCODER: Error encoding video frame: -1
AUDIO: (portaudio) Aborting audio stream
AUDIO: Closing audio stream...
ENCODER: (matroska) closing context
ENCODER: (matroska) closing cluster
ENCODER: (matroska)write seekhead
ENCODER: (matroska) end duration = 22647 (22647.000000)
While i can see the green screen which caps by camera, However, I play the record in VLC, it shows black always.
The dmesg show as follows:
[59037.522750] usb 2-4: new SuperSpeed USB device number 5 using tegra-xusb
[59037.542881] usb 2-4: LPM exit latency is zeroed, disabling LPM.
[59037.543294] usb 2-4: Int endpoint with wBytesPerInterval of 1024 in config 1 interface 0 altsetting 0 ep 130: setting to 64
[59037.544338] usb 2-4: New USB device found, idVendor=2a0b, idProduct=00c7
[59037.544393] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[59037.544400] usb 2-4: Product: LI-IMX390
[59037.544403] usb 2-4: Manufacturer: Leopard Imaging
[59037.544406] usb 2-4: SerialNumber: 0000000001
[59037.547073] uvcvideo: Found UVC 1.10 device LI-IMX390 (2a0b:00c7)
[59037.549736] uvcvideo 2-4:1.0: Entity type for entity Extension 3 was not initialized!
[59037.549931] uvcvideo 2-4:1.0: Entity type for entity Processing 2 was not initialized!
[59037.550063] uvcvideo 2-4:1.0: Entity type for entity Camera 1 was not initialized!
[59037.550406] input: LI-IMX390 as /devices/3610000.xhci/usb2/2-4/2-4:1.0/input/input11
[59040.421797] usb 2-4: usb_suspend_both: status 0
[59040.422244] usb usb2: usb_suspend_both: status 0
[59040.422279] tegra-xusb 3610000.xhci: entering ELPG
[59040.442302] tegra-xusb 3610000.xhci: entering ELPG done