Vi error when update 36.3.0

Hello DaneLLL,
this is the file.

a.zip (1.8 MB)

Hi,
The color looks correct. Please refer to the guidance:

Jetson AGX Orin FAQ
Q: Is there any example of running RTSP streaming?
Q: Is there an example for running UDP streaming?

To set up UDP or RTSP.

Hi DaneLLL,
yes, i use test-launch.c to verify, i use v4l2src or videotestsrc is ok , but use nvv4l2camerasrc is failed.

./launch “( v4l2src device=/dev/video0 ! video/x-raw,width=3840,height=2160,format=YUY2,framerate=30/1 ! nvvidconv ! nvv4l2h265enc ! rtph265pay name=pay0 pt=127 )”

./launch “( nvv4l2camerasrc device=/dev/video0 ! ‘video/x-raw(memory:NVMM),width=3840,height=2160,format=YUY2,framerate=30/1’ ! nvvidconv ! nvv4l2h265enc ! rtph265pay name=pay0 pt=127 )”

I don’t know what the problem is, could you please give me some advice

Hi,
This is possible that nvv4l2camerasrc does not support the use-case. Are you able to run UDP?

The further alternative is to enable the use-case in nvv4l2camerasrc. The state transition is a bit complicated while running test-launch. And this is supported in nvarguscamerasrc. If you can refer to nvarguscamerasrc and port the related part to nvv4l2camerasrc, it is supposed to work.

Hello DaneLLL,
the udp is ok , but my plan is to use gst-rtsp-server for rtsp subscription, is there an updated plan for this? Is there a reference link to your alternative.

Hi,
We will check and evaluate to enable the use-case in the future. On current 6.0GA, you may try to run like:

[local UDP stream]

gst-launch-1.0 nvv4l2camerasrc ! 'video/x-raw(memory:NVMM),width=1280,height=720,format=UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM),width=1280,height=720' ! nvv4l2h264enc insert-sps-pps=1 idrinterval=15 ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000 async=0 sync=0

[RTSP server]

./test-launch "udpsrc port=5000 buffer-size=524288 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! queue ! rtph264pay name=pay0 pt=96 "

But this will increase the time. How is the nvarguscamerasrc scheme implemented

Hi,
We would need some time to check it further. Since the plugins are open source, it would be great if you can also take a look.

Hi,
We try nvv4l2camerasrc in test-launch command and can run RTSP streaming. We try with AVerMedia PW513 WebCam and the command is:

./test-launch "( nvv4l2camerasrc device=/dev/video1 ! video/x-raw(memory:NVMM),format=UYVY ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h265enc ! h265parse ! rtph265pay name=pay0 pt=96 )"

For your use-case, please try the command and see if it works:

./test-launch "( nvv4l2camerasrc device=/dev/video0 ! video/x-raw(memory:NVMM),format=YUY2 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h265enc ! h265parse ! rtph265pay name=pay0 pt=96 )"

Please ensure you use the customized nvv4l2camerasrc which supports YUY2(YUYV).

Hello DaneLLL,

./launch “( nvv4l2camerasrc device=/dev/video0 ! ‘video/x-raw(memory:NVMM),format=YUY2’ ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvv4l2h265enc ! rtph265pay name=pay0 pt=127 )”

its failed.

Hi,
The error looks specific to launching the camera source. Please set the environment variable and share the prints for reference:

$ export GST_DEBUG=*:4

its ok , daneLLL, thank you, not add ’

./launch “( nvv4l2camerasrc device=/dev/video0 !  video/x-raw(memory:NVMM),format=YUY2 ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvv4l2h265enc ! rtph265pay name=pay0 pt=127 )”

BTW,
we’ve resolve this failure recently.
please refer to Topic 299834 for the fixes to address these line artifacts.
thanks