Hi DaneLLL,
I think I see the issue.
The Aukey camera still hangs while following those steps, so I imagine it’s an issue with the camera. However, the IMX322 I have doesn’t support YUY2 at 1080p.
video/x-raw,format=YUY2,width=640,height=480,framerate=30/1
What is the equivalent of that command for MJPG? I tried MJPG and got this error:
WARNING: erroneous pipeline: could not link v4l2src0 to nvvconv0, neither element can handle caps video/x-raw, format=(string)MJPG, width=(int)1280, height=(int)720, framerate=(fraction)30/1
I imagine the pipeline will be a bit different, but I can’t seem to find good result for a similar effect but with MJPEG.
I tried your solution here: USB Camera MJPEG to h265 - #2 by DaneLLL
but this gave me one static image instead of a stream of MJPEGs. I tried another solution on that thread, and I got it to work!
Solution:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! ‘image/jpeg, width=640, height=480, framerate=5/1, format=MJPG’ ! jpegdec ! nvoverlaysink
(for posterity, run “v4l2-ctl -d /dev/video0 --list-formats-ext” and make sure you pick a resolution and framerate your camera has too of course!) If you using the command with opencv, add ! videoconvert after jpegdec