See Nvidia FFMPEG install docs here. I had to modify their instructions slightly to avoid issues with A100 cards.
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers && sudo make install && cd –
git clone --branch release/7.1 https://git.ffmpeg.org/ffmpeg.git ffmpeg/