Sir,
I connected web camera with Jetson nano through USB. To capture images I wrote the code in terminal but it shown the following error .
manpreet@manpreet-desktop:~/jetson-inference$ docker/run.sh
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R32.6.1
[sudo] password for manpreet:
size of data/networks: 3273844711 bytes
CONTAINER: dustynv/jetson-inference:r32.6.1
DATA_VOLUME: --volume /home/manpreet/jetson-inference/data:/jetson-inference/data --volume /home/manpreet/jetson-inference/python/training/classification/data:/jetson-inference/python/training/classification/data --volume /home/manpreet/jetson-inference/python/training/classification/models:/jetson-inference/python/training/classification/models --volume /home/manpreet/jetson-inference/python/training/detection/ssd/data:/jetson-inference/python/training/detection/ssd/data --volume /home/manpreet/jetson-inference/python/training/detection/ssd/models:/jetson-inference/python/training/detection/ssd/models
USER_VOLUME:
USER_COMMAND:
V4L2_DEVICES: --device /dev/video0
localuser:root being added to access control list
root@manpreet-desktop:/jetson-inference# camera-capture --camera=/dev/video0
[gstreamer] initialized gstreamer, version 1.14.5.0
[gstreamer] gstCamera – attempting to create device v4l2:///dev/video0
[gstreamer] gstCamera – found v4l2 device: Integrated Camera
[gstreamer] v4l2-proplist, device.path=(string)/dev/video0, udev-probed=(boolean)false, device.api=(string)v4l2, v4l2.device.driver=(string)uvcvideo, v4l2.device.card=(string)“Integrated\ Camera”, v4l2.device.bus_info=(string)usb-70090000.xusb-2.4, v4l2.device.version=(uint)264701, v4l2.device.capabilities=(uint)2216689665, v4l2.device.device_caps=(uint)69206017;
[gstreamer] gstCamera – found 1 caps for v4l2 device /dev/video0
[gstreamer] [0] image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)25/1;
[gstreamer] gstCamera – selected device profile: codec=mjpeg format=unknown width=640 height=480
[gstreamer] gstCamera pipeline string:
[gstreamer] v4l2src device=/dev/video0 ! image/jpeg, width=(int)640, height=(int)480 ! jpegdec ! video/x-raw ! appsink name=mysink
[gstreamer] gstCamera successfully created device v4l2:///dev/video0
[video] created gstCamera from v4l2:///dev/video0
gstCamera video options:
– URI: v4l2:///dev/video0
- protocol: v4l2
- location: /dev/video0
– deviceType: v4l2
– ioType: input
– codec: mjpeg
– width: 640
– height: 480
– frameRate: 25.000000
– bitRate: 0
– numBuffers: 4
– zeroCopy: true
– flipMethod: none
– loop: 0
– rtspLatency 2000
camera-capture: successfully initialized video device (640x480)
[OpenGL] glDisplay – X screen 0 resolution: 1600x900
[OpenGL] glDisplay – X window resolution: 650x490
[OpenGL] glDisplay – display device initialized (650x490)
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
[gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1
[gstreamer] gstreamer changed state from NULL to READY ==> jpegdec0
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[gstreamer] gstreamer changed state from NULL to READY ==> v4l2src0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1
[gstreamer] gstreamer changed state from READY to PAUSED ==> jpegdec0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> v4l2src0
[gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer message new-clock ==> pipeline0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter1
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> jpegdec0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> v4l2src0
[gstreamer] gstreamer message stream-start ==> pipeline0
[gstreamer] gstCamera – end of stream (EOS)
[gstreamer] gstreamer v4l2src0 ERROR Failed to allocate required memory.
[gstreamer] gstreamer Debugging info: gstv4l2src.c(658): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
[gstreamer] gstreamer v4l2src0 ERROR Internal data stream error.
[gstreamer] gstreamer Debugging info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
[gstreamer] gstreamer changed state from READY to PAUSED ==> mysink
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: failed to capture RGBA image from camera
camera-capture: shutting down…
[gstreamer] gstCamera – stopping pipeline, transitioning to GST_STATE_NULL
[gstreamer] gstCamera – pipeline stopped
camera-capture: shutdown complete.
Sir Can you please find any solution for these. Kindly reply as soon as possible.