# Cmera cannot open

**URL:** <https://forums.developer.nvidia.com/t/cmera-cannot-open/215309>\
**Category:** Jetson Nano\
**Tags:** camera\
**Created:** [May 23, 2022, 9:57am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309 "2022-05-23T09:57:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![3058563015](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@3058563015](https://forums.developer.nvidia.com/u/3058563015)\
**Post date:** [May 23, 2022, 9:57am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/1 "2022-05-23T09:57:41Z")

</div>

I can’t use any method to open the CSI camera, but it can get some parameters. What should I do

yinjun@yinjun-desktop:~$ nvgstcapture-1.0  
Encoder null, cannot set bitrate!  
Encoder Profile = High  
Supported resolutions in case of ARGUS Camera  
(2) : 640x480  
(3) : 1280x720  
(4) : 1920x1080  
(5) : 2104x1560  
(6) : 2592x1944  
(7) : 2616x1472  
(8) : 3840x2160  
(9) : 3896x2192  
(10): 4208x3120  
(11): 5632x3168  
(12): 5632x4224

Runtime ARGUS Camera Commands:

Help : ‘h’  
Quit : ‘q’  
Set Capture Mode:  
mo:  
(1): image  
(2): video  
Get Capture Mode:  
gmo  
Set sensor orientation:  
so:  
(0): none  
(1): Rotate counter-clockwise 90 degrees  
(2): Rotate 180 degrees  
(3): Rotate clockwise 90 degrees  
Get sensor orientation:  
gso  
Set sensor mode:  
smo: e.g., smo:1  
Get sensor mode:  
gsmo  
Set Whitebalance Mode:  
wb:  
(0): off  
(1): auto  
(2): incandescent  
(3): fluorescent  
(4): warm-fluorescent  
(5): daylight  
(6): cloudy-daylight  
(7): twilight  
(8): shade  
(9): manual  
Get Whitebalance Mode:  
gwb  
Set Saturation (0 to 2):  
st: e.g., st:1.25  
Get Saturation:  
gst  
Set Exposure Compensation (-2 to 2):  
ec: e.g., ec:-2  
Get Exposure Compensation:  
gec  
Set Auto Whitebalance Lock:  
awbl: e.g., awbl:0  
Get Auto Whitebalance Lock:  
awbl  
Set Auto Exposure Lock:  
ael: e.g., ael:0  
Get Auto Exposure Lock:  
gael  
Set TNR Mode:  
tnrm: e.g., tnrm:1  
(0): OFF  
(1): FAST  
(2): HIGH QUALITY  
Get TNR Mode:  
gtnrm  
Set TNR Strength (-1 to 1):  
tnrs: e.g., tnrs:0.5  
Get TNR Strength:  
gtnrs  
Set EE Mode:  
eem: e.g., eem:1  
(0): OFF  
(1): FAST  
(2): HIGH QUALITY  
Get EE Mode:  
geem  
Set EE Strength (-1 to 1):  
ees: e.g., ees:0.5  
Get EE Strength:  
gees  
Set Auto Exposure Anti-Banding (0 to 3):  
aeab: e.g., aeab:2  
(0): OFF  
(1): MODE AUTO  
(2): MODE 50HZ  
(3): MODE 60HZ  
Get Auto Exposure Anti-Banding:  
gaeab  
Set Gain Range:  
gr: e.g., gr:1 16  
Get Gain Range:  
ggr  
Set Exposure Time Range:  
etr: e.g., etr:34000 35000  
Get Exposure Time Range:  
getr  
Set ISP Digital Gain Range:  
dgr: e.g., dgr:2 152  
Get ISP Digital Gain Range:  
gdgr  
Capture: enter ‘j’ OR  
followed by a timer (e.g., jx5000, capture after 5 seconds) OR  
followed by multishot count (e.g., j:6, capture 6 images)  
timer/multihot values are optional, capture defaults to single shot with timer=0s  
Start Recording : enter ‘1’  
Stop Recording : enter ‘0’  
Video snapshot : enter ‘2’ (While recording video)  
Get Preview Resolution:  
gpcr  
Get Image Capture Resolution:  
gicr  
Get Video Capture Resolution:  
gvcr

Runtime encoder configuration options:

Set Encoding Bit-rate(in bytes):  
br: e.g., br:4000000  
Get Encoding Bit-rate(in bytes):  
gbr  
Set Encoding Profile(only for H.264):  
ep: e.g., ep:1  
(0): Baseline  
(1): Main  
(2): High  
Get Encoding Profile(only for H.264):  
gep  
Force IDR Frame on video Encoder(only for H.264):  
Enter ‘f’

bitrate = 4000000  
Encoder Profile = High  
Encoder control-rate = 1  
Encoder EnableTwopassCBR = 0  
Opening in BLOCKING MODE  
Opening in BLOCKING MODE  
\*\* Message: 17:52:14.919: main:4670 iterating capture loop …  
NvMMLiteOpen : Block : BlockType = 4  
===== NVMEDIA: NVENC =====  
NvMMLiteBlockCreate : Block : BlockType = 4  
GST\_ARGUS: Creating output stream  
CONSUMER: Waiting until producer is connected…  
GST\_ARGUS: Available Sensor modes :  
GST\_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: Running with following settings:  
Camera index = 0  
Camera mode = 5  
Output Stream W = 1280 H = 720  
seconds to Run = 0  
Frame Rate = 120.000005  
GST\_ARGUS: Setup Complete, Starting captures for 0 seconds  
GST\_ARGUS: Starting repeat capture requests.  
CONSUMER: Producer has connected; continuing.  
nvbuf\_utils: dmabuf\_fd -1 mapped entry NOT found  
nvbuf\_utils: Can not get HW buffer from FD… Exiting…  
ERROR on bus: by /GstPipeline:capture\_native\_pipeline/GstBin:cap\_bin/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED  
debug info:  
Argus Error Status

(nvgstcapture-1.0:9109): GStreamer-CRITICAL \*\*: 17:52:17.925: gst\_mini\_object\_set\_qdata: assertion ‘object != NULL’ failed  
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)  
(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 340)  
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)  
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368)  
(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)  
(Argus) Error EndOfFile: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)  
(Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)  
(Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)  
GST\_ARGUS: Cleaning up  
(Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)  
(Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)  
段错误 (核心已转储)

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 24, 2022, 5:04am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/3 "2022-05-24T05:04:58Z")

</div>

That could be your sensor have problem to streaming.  
Did you verify by v4l2-ctl to confirm the sensor driver?

---

<div class="post-metadata">

**Author:** ![3058563015](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@3058563015](https://forums.developer.nvidia.com/u/3058563015)\
**Post date:** [May 24, 2022, 5:10am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/4 "2022-05-24T05:10:28Z")

</div>

yinjun@yinjun-desktop:~/Downloads/DeepSpeech$ v4l2-ctl -d /dev/video0 --all  
Driver Info (not using libv4l2):  
Driver name : tegra-video  
Card type : vi-output, imx219 6-0010  
Bus info : platform:54080000.vi:0  
Driver version: 4.9.201  
Capabilities : 0x84200001  
Video Capture  
Streaming  
Extended Pix Format  
Device Capabilities  
Device Caps : 0x04200001  
Video Capture  
Streaming  
Extended Pix Format  
Priority: 2  
Video input : 0 (Camera 0: no power)  
Format Video Capture:  
Width/Height : 3264/2464  
Pixel Format : ‘RG10’  
Field : None  
Bytes per Line : 6528  
Size Image : 16084992  
Colorspace : sRGB  
Transfer Function : Default (maps to sRGB)  
YCbCr/HSV Encoding: Default (maps to ITU-R 601)  
Quantization : Default (maps to Full Range)  
Flags :

Camera Controls

```
                 group_hold 0x009a2003 (bool) : default=0 value=0 flags=execute-on-write
                sensor_mode 0x009a2008 (int64) : min=0 max=0 step=0 default=0 value=0 flags=slider
                       gain 0x009a2009 (int64) : min=0 max=0 step=0 default=0 value=16 flags=slider
                   exposure 0x009a200a (int64) : min=0 max=0 step=0 default=0 value=13 flags=slider
                 frame_rate 0x009a200b (int64) : min=0 max=0 step=0 default=0 value=2000000 flags=slider
                bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
            override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
               height_align 0x009a2066 (int) : min=1 max=16 step=1 default=1 value=1
                 size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
           write_isp_format 0x009a2068 (bool) : default=0 value=0
   sensor_signal_properties 0x009a2069 (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
    sensor_image_properties 0x009a206a (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
  sensor_control_properties 0x009a206b (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
          sensor_dv_timings 0x009a206c (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
           low_latency_mode 0x009a206d (bool) : default=0 value=0
           preferred_stride 0x009a206e (int) : min=0 max=65535 step=1 default=0 value=0
               sensor_modes 0x009a2082 (int) : min=0 max=30 step=1 default=30 value=6 flags=read-only

```

---

<div class="post-metadata">

**Author:** ![3058563015](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@3058563015](https://forums.developer.nvidia.com/u/3058563015)\
**Post date:** [May 24, 2022, 5:11am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/5 "2022-05-24T05:11:03Z")

</div>

this is I get message for v4l2-ctl -d /dev/video0 --all

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 24, 2022, 5:20am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/6 "2022-05-24T05:20:41Z")

</div>

Need to streaming to confirm it.

```auto
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap

```

---

<div class="post-metadata">

**Author:** ![3058563015](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@3058563015](https://forums.developer.nvidia.com/u/3058563015)\
**Post date:** [May 24, 2022, 5:33am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/7 "2022-05-24T05:33:31Z")

</div>

After execution, it is suspended directly. It seems that I should check the CSI interface? But it used to work normally

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 24, 2022, 5:42am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/8 "2022-05-24T05:42:59Z")

</div>

Try reflash the system if still try replace the cable or any other module to try.

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [June 1, 2022, 1:24am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/9 "2022-06-01T01:24:26Z")

</div>

Have you tried with our suggestion?

---

<div class="post-metadata">

**Author:** ![3058563015](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@3058563015](https://forums.developer.nvidia.com/u/3058563015)\
**Post date:** [June 7, 2022, 2:04am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/10 "2022-06-07T02:04:02Z")

</div>

My camera seems special. It can be turned on normally after using the example in the CSI camera project, but the previous CSI camera can be used normally without using this example

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [June 7, 2022, 3:24am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/11 "2022-06-07T03:24:21Z")

</div>

Then it seems you need to contact with camera vendor to know if any further driver change required.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [June 29, 2022, 6:01am UTC](https://forums.developer.nvidia.com/t/cmera-cannot-open/215309/13 "2022-06-29T06:01:50Z")

</div>

Closed on June 29, 2022, 6:01am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
