NVIDIA Jetson Orin NX - H265 GStreamer Pipelines

From RidgeRun Developer Wiki





Follow Us On Twitter LinkedIn Email Share this page



Previous: GStreamer Pipelines/H264 Index Next: Contact Us








This section presents GStreamer pipelines to capture from a USB camera and perform encoding/decoding of video using the H.265 (HEVC) hardware codec of the Orin NX. Key performance indicators are measured using three power profiles (operation modes): MaxN, 25W, and 10W. Check our GStreamer Pipelines section to find more information about how we extracted the performance metrics presented in this section.


H265 Encoding

USB PTZ Fomako Camera

The pipelines in this section used a PTZ Fomako USB camera capturing at 1920x1080@30fps.


Encoding 1920x1080@30 and saving to file

The pipeline below can be used to capture, encode using the H.265 hardware codec, and store the video to file as an mp4 in the /tmp/filename.mp4 location. Table 2 shows the performance information for this pipeline.

FILE=/tmp/filename.mp4
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=1920, height=1080, framerate=30/1 ! nvvidconv ! 'video/x-raw(memory:NVMM), format=NV12' ! nvv4l2h265enc bitrate=8000000 ! h265parse ! qtmux ! filesink location=$FILE -e


Table 2: Performance of USB pipeline at 1920x1080@30 with nvv4l2h265enc
Operation Mode CPU (%) GPU (%) FPS Latency (ms)
MaxN 5.53 0 29.180 27.763
25W 6.87 0 29.187 27.760
10W 8.24 0 29.150 28.448


H265 Decoding

The following pipeline can be used to decode the videos recorded with the USB camera. Table 3 shows the performance for decoding 1920x1080@30 videos.

FILE=/tmp/filename.mp4
gst-launch-1.0 filesrc location=$FILE ! qtdemux ! queue ! h265parse ! nvv4l2decoder ! nv3dsink -e


Table 3: Performance of decoding pipeline at 1920x1080@30
Operation Mode CPU (%) GPU (%) FPS Latency (ms)
MaxN 6.85 29.41 28.997 1527.967
25W 10.89 28.14 28.996 1528.026
10W 9.88 36.96 28.994 1527.747



Previous: GStreamer Pipelines/H264 Index Next: Contact Us