• Hardware Platform: Jetson Xavier NX
• DeepStream Version: 6.1.1
• JetPack Version (valid for Jetson only): 5.0.2
• TensorRT Version: 8.4.1.5
Hi,
I use UDP streaming to transfer data from server to client host.
Here are pipelines I use:
- Server:
gst-launch-1.0 v4l2src device=/dev/video2 ! videoconvert ! video/x-raw ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! nvv4l2h265enc insert-sps-pps=1 maxperf-enable=1 idrinterval=15 ! rtph265pay ! udpsink host=192.168.0.10 port=5000
- Client:
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name="H265", payload=96 ! rtph265depay ! avdec_h265 ! xvimagesink sync=false
Client host displays video well like this:
However, if I change the server pipeline to the command below (using nvv4l2camerasrc instead of v4l2src):
gst-launch-1.0 nvv4l2camerasrc device=/dev/video2 ! nvvideoconvert ! 'video/x-raw(memory:NVMM), format=UYVY' ! nvvideoconvert ! "video/x-raw(memory:NVMM), format=NV12" ! nvv4l2h265enc insert-sps-pps=1 idrinterval=15 maxperf-enable=1 ! rtph265pay ! udpsink host=192.168.0.10 port=5000
Client host will display abnormally like this:
My questions are:
-
According to this Jetson Nano FAQ, and this Macrosilicon USB - #5 by DaneLLL, I know I must customize nvv4l2camerasrc’ source to solve the wrong color issue. But I will greatly appreciate it if you could guide me on how to do it, customize and rebuild the source. Of course it will depend on enviroment I use, Deepstream’s version and Camera’s format, the DS’s version is at the opening and the Camera’s format will be at the “For more information” section.
-
Why is the displayed video splitted so abnormally?
For more information:
- Camera format is:
- If I add width=640 and height=512 in the caps like this command:
gst-launch-1.0 nvv4l2camerasrc device=/dev/video2 ! nvvideoconvert ! 'video/x-raw(memory:NVMM), format=UYVY, width=640, height=512' ! nvvideoconvert ! "video/x-raw(memory:NVMM), format=NV12" ! nvv4l2h265enc insert-sps-pps=1 idrinterval=15 maxperf-enable=1 ! rtph265pay ! udpsink host=192.168.0.10 port=5000
Then the displayed video on screen is: