Does jetson tx2 can not use ffmpeg h264_nvenc encoder to encode video?

Hi,

when i use h264_nvenc in ffmpeg to encode video, there is an error said

can not load libnvidia-encode.so

I looked for the solution but it seems I have to install NVIDAI GPU driver, but the tx2 seems can not install the driver.

so, Does jetson tx2 can not use ffmpeg h264_nvenc encoder to encode video? and, is there any way to encode video by hardware on the jetson tx2?

Thank you.

Hi, I have encountered the same problem, may I ask if your problem has been solved, and how to solve it?

Hi there @Shilling_H and welcome to the NVIDIA developer forums!

Mz guess would be that the issue back in 2021 was about trying to install the wrong version of ffmpeg. Since Jetson is an ARM platform, using x68 libraries will not work.

In any case I would suggest you check out our developer resources for our all in one Jetson image and follow the installation instructions closely. If I am not mistaken, then the encoder should work out of the box.

If that still does not help, please check out our Jetson specific forums.

Thanks!

ok, can I compile ffmpeg from source?
I compiled ffmpeg with this link(Jetson TX2 and FFmpeg - Can't initialize nvrm channel - #5 by DaneLLL), but when I coded h264 with ffmpeg -c:v h264_v4l2m2m I got this error:

[h264_v4l2m2m @ 0x5586dd2fd0] Could not find a valid device
[h264_v4l2m2m @ 0x5586dd2fd0] can't configure encoder

I’ll move this topic over to the Jetson forums. Maybe @DaneLLL can help you here.

Hi,
We have package enabling hardware decoding. For hardware encoding, you may try community contribution. Please refer to Jetson Nano FAQ

Q: Is hardware acceleration enabled in ffmpeg?

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