Jetson nano cannot open the camera with camorama

hi,
I use jetson nano and webcam c270, when i type
gst-launch-1.0 v4l2src device="/dev/video0" name=e ! ‘video/x-raw, width=640, height=480’ ! videoconvert ! ‘video/x-raw, width=640, height=480, format=(string)YUY2’ ! xvimagesink
it works.
but if i type
‘camorama’,
it replis
‘Opening in BLOCKING MODE
Segmentation fault (core dumped)’.
And i can not open the camera in other APP, so i cannot
do the deep learning with camera.
If someone else have any good idea about this situation , let us know.
Thanks very much, in advance.

Hi @chentaotao666,

I have not used the ‘camorama’ software, but taking a look at the options that you have, maybe it will be good to activate the debug from camorama, using I believe the flag:

camorama -D

This according to here: camorama/main.c at master · alessio/camorama · GitHub

Maybe the app needs you to pass the device explicitly, for example using:
camorama -d /dev/video0 or similar.

Please tell me how it goes.

Best Regards,
Roberto Gutierrez
Embedded Software Engineer,

hi, Roberto. thank you so much for your reply. but it seems did not work.
i tried
eg@eg-desktop:~$ camorama -D
Opening in BLOCKING MODE
Segmentation fault (core dumped)
eg@eg-desktop:~$ camorama -d /dev/video0
Opening in BLOCKING MODE
Segmentation fault (core dumped)
in addition, when i try to open the camera in python, the camera also can not work.

from jetcam.usb_camera import USBCamera
camera = USBCamera(width=224, height=224, capture_width=640, capture_height=480, capture_device=0)
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
thank you again!

Hi @chentaotao666

Could you please provide some logs from dmesg in order to see if there is useful information there? Just type dmesg in the shell after trying to capture.

Best regards,
Roberto

hi, i find that i can open the camera in the docker. And thank you again for your kindness.

1 Like