[mythtv] Question about new build requirements for NVDEC

Peter Bennett pb.mythtv at gmail.com
Tue Jan 15 16:10:13 UTC 2019


David

I am ready to commit the first stage of NVDEC support (NVidia hardware 
decode). In order to build FFmpeg with NVDEC support it needs something 
unusual.

You need to clone the repo git at github.com:FFmpeg/nv-codec-headers.git 
and run "sudo make install". All this does is install some header files 
into /usr/local/include/ffnvcodec and installs a pkgconfig file in 
/usr/local/lib/pkgconfig. The ffmpeg build looks for the pkginfo 
information to find the header files.

peter at raza:~$ ls -l /usr/local/include/ffnvcodec
-rw-r--r-- 1 root root  14233 Dec  9 18:43 dynlink_cuda.h
-rw-r--r-- 1 root root  49467 Dec  9 18:43 dynlink_cuviddec.h
-rw-r--r-- 1 root root  17015 Dec  9 18:43 dynlink_loader.h
-rw-r--r-- 1 root root  22042 Dec  9 18:43 dynlink_nvcuvid.h
-rw-r--r-- 1 root root 198550 Dec  9 18:43 nvEncodeAPI.h

peter at raza:~$ ls -l /usr/local/lib/pkgconfig
-rw-r--r-- 1 root root 162 Dec  9 18:43 ffnvcodec.pc

peter at raza:~$ cat  /usr/local/lib/pkgconfig/ffnvcodec.pc
prefix=/usr/local
includedir=${prefix}/include

Name: ffnvcodec
Description: FFmpeg version of Nvidia Codec SDK headers
Version: 8.2.15.7
Cflags: -I${includedir}

I could not find any Ubuntu package that contains these files that could 
be added as a dependency.

I think the best action is to add a copy of the ffnvcodec repository to 
the mythtv/external directory. Before ffmpeg is built, build ffnvcodec 
with a prefix that is in some temporary location, and add the temporary 
location for the pkgconfig directory to the PKG_CONFIG_PATH environment 
variable. What do you think?

Peter


More information about the mythtv-dev mailing list