Getting no video output from USB webcam

Hello everyone,
I’m very new to using the jetson nano and i’m just about to start on my first project. But i’m facing a problem with the USB webcam, i’m using a A4tech 910H Fhd camera which supports both YUYV and MJPEG video formats.
When i launch a video stream using:

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=640, height=480, framerate=30/1 ! xvimagesink
The video stream window pops up and everything works normally when it is in YUYV format. But when i try to launch a video stream in MJPEG using:

gst-launch-1.0 -v v4l2src device=/dev/video0 ! jpegdec ! video/x-raw,framerate=30/1,width=1280,height=720 ! videoconvert ! xvimagesink
The camera lights up showing the it is running but no video stream window pops up.

I also followed the USB camera tutorial given by Jetsonhacks here:

But unfortunately faced the same issue yet again when i used the GUI to control the video formats where YUYV format worked perfectly but none of the MJPEG formats showed an video stream it just shows a black window and then the GUI crashes.

I hope i’m able to make sense excuse me. Can anyone point out where the problem could be and how i can solve it , i would really appreciate it

Regards

This i
what i get on the terminal when i run the gst-launch-1.0 command:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)1280, height=(int)720, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)1280, height=(int)720, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive
Caught SIGSEGV
#0 0x0000007f7d263e28 in __GI___poll (fds=0x556d702100, nfds=547561608072, timeout=) at …/sysdeps/unix/sysv/linux/poll.c:41
#1 0x0000007f7d370f58 in () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#2 0x000000556d5cbae0 in ()
Spinning. Please run ‘gdb gst-launch-1.0 17520’ to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Hi,
Please set caps fitting the sensor mode like:

v4l2src ! image/jpeg,width=640,height=480,frame rate=30/1 ! jpegdec ! ...

In the sample it sets width=640,height=480,frame rate=30/1. Please replace with the mode your camera supports. You can get all modes printed by executing v4l2-ctl --list-formats-ext

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