Stream MJPG pixel format

System version: jetpack 5.1.2
How to stream in MJPEG format in Jetson?I can’t get images properly using the following command, how can I fix it
gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080 ! nvjpegdec ! video/x-raw ! nvvidconv ! video/x-raw,format=I420 ! nv3dsink -e
This command also does not open the image normally,thank you.
➜ ~ gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! 'image/jpeg,width=1920,height=1080,framerate=30/1' ! nvjpegdec ! xvimagesink -e

I get an error with jpeg streaming in my program

stream pipeline: v4l2src device=/dev/video0 ! image/jpeg, width=1920, height=1080, framerate=30/1, format=MJPG ! appsink name=raw_sink max-buffers=1 drop=true
[ERROR] [1692959917.406692023]: v4l2src0 ERROR Internal data stream error.

Please run the command to ensure the source can generate MJPEG frame data:

$ gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080 ! fakesink

If it does not work, please execute $ v4l2-ctl --list-formats-ext to confirm MJPEG is supported.

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