Having problems while using ffmpeg

Hi, I’m having trouble while using ffmpeg.
When I type
“ffmpeg -i x.avi -vcodec h264_nvenc -crf 20 output2.mp4”
It returns “Cannot load libnvidia-encode.so.1. The minimum required Nvidia driver for nvenc is (unknown) or newer.”
I tried to install libnvidia-encode1by
“sudo apt update
sudo apt install libnvidia-encode1”,but it returns “Unable to locate package libnvidia-encode1”
What should I do without upgrading my drive version?
My device is jetson Xavier NX rtso-6002-emmc and my Nvidia driver version is 32.4.3
Thanks!

Hi, Looks like this post was misplaced in the wrong category. I moved it to the Jetson Xavier NX forum so the Jetson support staff can help.

With Jetson, there is no nvenc on GPU with libnviadia-encode, AFAIK.
Jetsons have a HW encoder and a HW decoder engines (or several depending on Jetson model).

The standard apt ffmpeg package for aarch64 doesn’t enable HW encoding nor decoding on Jetson.

For HW decoding, you may try NVIDIA ffmpeg package.
For HW encoding, you may get some HW acceleration with jocover’s patch.
Refer to :

Using gstreamer may be easier. You may try something like:

gst-launch-1.0 -ev filesrc location=x.avi ! avidemux ! decodebin ! nvvidconv ! nvv4l2h264enc ! qtmux ! filesink location=output2.mp4

# Or:
gst-launch-1.0 -ev filesrc location=x.avi ! avidemux name=demux    demux.video_0 ! decodebin ! nvvidconv ! nvv4l2h264enc ! qtmux ! filesink location=output2.mp4