Hi,
I am working on a Jetson Orin NX running JetPack 6.2.0.
I am testing a UYVY camera at 3840x2160 @ 30 FPS. When I use v4l2-ctl, I consistently get 30 FPS. I also observe 30 FPS when using a GStreamer pipeline with fakesink. However, when I display the stream using autovideosink, the FPS drops to around 20 FPS.
V4L2 Test
v4l2-ctl --set-fmt-video=width=3840,height=2160,pixelformat=UYVY \
--stream-mmap --stream-count=100000 -d /dev/video0
Output:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
GStreamer Pipeline
gst-launch-1.0 -v \
v4l2src device=/dev/video0 ! \
video/x-raw,format=UYVY,width=3840,height=2160,framerate=30/1 ! \
videoconvert ! \
fpsdisplaysink text-overlay=true video-sink=autovideosink sync=false
The pipeline starts at ~30 FPS but then settles around 20 FPS:
current: 18.28, average: 24.07
current: 19.32, average: 22.53
current: 20.49, average: 22.02
current: 19.92, average: 21.62
current: 19.94, average: 21.00
...
Since the camera and driver appear capable of delivering 30 FPS, I suspect the bottleneck may be related to display rendering.
Could anyone suggest:
- Whether this behavior is expected on Jetson Orin NX for 4K UYVY streams?
- Any optimized GStreamer pipeline that can achieve a full 30 FPS display?
- Whether NVIDIA hardware-accelerated elements should be used instead of
videoconvert and autovideosink?
Any suggestions would be appreciated.
Thanks.
ā š¤ This is an automated AI response. Iām here to help, but please verify important details! ā
Based on the provided context, I could not find clear support for the specific question about the expected behavior of Jetson Orin NX for 4K UYVY streams and optimized GStreamer pipelines to achieve a full 30 FPS display.
However, I can suggest that the bottleneck may be related to display rendering, as you mentioned. The provided context does not provide specific information on optimizing GStreamer pipelines for 4K UYVY streams on Jetson Orin NX.
Regarding the use of NVIDIA hardware-accelerated elements, the provided context does not provide specific information on whether they should be used instead of videoconvert and autovideosink for 4K UYVY streams on Jetson Orin NX.
It is recommended to try using NVIDIA hardware-accelerated elements, such as nvvidconv and nv3dsink, to see if they can improve the performance of the GStreamer pipeline.
Here is an example pipeline that uses NVIDIA hardware-accelerated elements:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=3840,height=2160,framerate=30/1 ! nvvidconv ! nv3dsink
Please note that this is just a suggestion, and you may need to experiment with different pipelines and settings to achieve the desired performance.
Additionally, you may want to check the documentation for JetPack 6.2.0 and the NVIDIA GStreamer plugins for more information on optimizing GStreamer pipelines for Jetson Orin NX.
ā We support team will also look into your issue to have further suggestions soon. please stay tuned. ā
Please verify by nvv4l2camerasrc to clarify if memory copy cause the problem.
Thanks
Hello @cookiecooker249 ,
Since both v4l2-ctl and the GStreamer pipeline using fakesink sustain 3840x2160 @ 30 FPS, the capture path appears to be working correctly. The FPS drop observed when using autovideosink is likely related to the display path, particularly videoconvert and/or the video sink selected automatically by autovideosink.
On Jetson Orin NX, it is generally recommended to use NVIDIA-accelerated elements such as nvvidconv together with nv3dsink or nvdrmvideosink instead of videoconvert and autovideosink.
As a first test, you could try the following pipeline:
gst-launch-1.0 -v \
v4l2src device=/dev/video0 ! \
video/x-raw,format=UYVY,width=3840,height=2160,framerate=30/1 ! \
nvvidconv ! \
'video/x-raw(memory:NVMM),format=NV12' ! \
fpsdisplaysink text-overlay=false video-sink=nv3dsink sync=false
If available on your platform, it may also be useful to test nvv4l2camerasrc, which is the NVIDIA V4L2 camera source intended for accelerated Jetson camera pipelines.
You can review the following documentation for details and usage examples of NVIDIA hardware-accelerated GStreamer plugins:
Best regards,
Julian Camacho
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developer Wiki: https://developer.ridgerun.com/
Website: https://www.ridgerun.com/