How to use v4l2 to capture videos in Jetson Orin r35 Jetpack 5.0 and encode them using a hardware encoding chip

Continuing the discussion from tegra multimedia samples not working properly:

My machine is Jetson Orin
Jetpack 5.0.2
L4T: 35.1.0

I referred to the code provided by Nvidia,01_video_encode (video encode) and 12_camera_v4l2_cuda (camera capture CUDA processing)

But it didn’t work out
Do you have R35 video capture encoding example code

Hi,
Please upgrade to Jetpack 5.1.1 and make sure you can successfully run 12_camera_v4l2_cuda sample first.

I am already able to run the 01 and 12 sample code

Or do you have sample code for Jetpack 5.1 using v4l2 to collect and input hardware encoding

Can someone help me solve this problem? It has been bothering me for a long time

Hi,
Please apply the patch and try.
r35_31_add_nvvideoencoder.zip (2.7 KB)

You would need to add *NvVideoEncoder enc; to context_t along with the patch.

1 Like

牛逼,I successfully saved the video. thanks

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