News:

--

Main Menu

nv-codec-headers (ubuntu)

Started by Jan Gruuthuse, April 16, 2025, 08:23:39 AM

Previous topic - Next topic

Jan Gruuthuse

nv-codec-headers:
-----------------
If you're building avidemux. You would need to clone nv-codec-headers for that:

If you used https://git.videolan.org/git/ffmpeg/nv-codec-headers.git

and now have this message pop-up
Quotefatal: unable to access 'https://git.videolan.org/git/ffmpeg/nv-codec-headers.git/';: The requested URL returned error: 504

switch to the following git: https://github.com/FFmpeg/nv-codec-headers.git
Download Git:
git clone https://github.com/FFmpeg/nv-codec-headers.git
then Update Git
cd ~/nvidia/nv-codec-headers && git pull
buid nv-codec-headers and copy nvEncodeAPI.h
cd ~/nvidia/nv-codec-headers
make
sudo make install
echo ''
echo "Copy nvEncodeAPI"
sudo cp -a ~/nvidia/nv-codec-headers/include/ffnvcodec/nvEncodeAPI.h /usr/include/x86_64-linux-gnu/nvEncodeAPI.h
cd ~

Jan Gruuthuse

small ffmpeg test, if cudo / nvenc is enabled|build:
echo '## ffmpeg Nvdia check cuda ##' && ffmpeg -hide_banner -hwaccels | grep cuda
Quotecuda
echo '## ffmpeg Nvdia check nvenc ##' && ffmpeg -hide_banner -encoders | grep nvenc
QuoteV....D av1_nvenc            NVIDIA NVENC av1 encoder (codec av1)
 V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V....D hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)

eumagga0x2a

I am sorry, but we need all the headers. Additionally, depending on desired compatibility with older NVIDIA graphics driver versions, staying away from the bleeding edge (from git master) of nv-codec-headers may make sense. Please have a look at the Debian Bookworm appImage build environment setup script regarding nv-codec-headers.