[FFmpeg-user] issues in ffmpeg installation

Vemula, Saibharath Saibharath.Vemula at netapp.com
Fri Apr 22 16:48:32 EEST 2022


Hi ,



I have installed the nvidia-cuda-toolkit and nv-codec-headers. Attached latest configuration file for reference  please find below screenshot for reference.



[cid:image001.png at 01D8567D.830C1EE0]
Below are the steps which I had followed during  ffmpeg on the the vm by following steps present in the link
https://developer.nvidia.com/blog/nvidia-ffmpeg-transcoding-guide/
1.Downloaded repository "https://git.ffmpeg.org/ffmpeg.git and cloned with

  *   git clone https://git.ffmpeg.org/ffmpeg.git"
2.Downaloded the nvidia driver for tesla T4 product and linux 64-bit RHEL 8
   file name is "nvidia-driver-local-repo-rhel8-510.47.03-1.0-1.x86_64.rpm"
3.Downloaded the cuda tool kit for centos 8 system by running following commands

(I)wget https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda-repo-rhel8-11-6-local-11.6.2_510.47.03-1.x86_64.rpm
(II)sudo rpm -i cuda-repo-rhel8-11-6-local-11.6.2_510.47.03-1.x86_64.rpm
(III)sudo dnf clean all
(IV)sudo dnf -y module install nvidia-driver:latest-dkms
(V)sudo yum install cuda

4.cloned the rep FFmpeg/nv-codec-headers

  *   git clone https://github.com/FFmpeg/nv-codec-headers.git

5.After completion of ffmpeg/nv-codec-headers,i have entered to the nv-codec-headers

  *   cd nv-codec-headers
  *   yum install nv-codec-headers
6.Ran the "make install" command and I have got below messages.

[root at localhost nv-codec-headers]# make install
sed 's#@@PREFIX@@#/usr/local#' ffnvcodec.pc.in > ffnvcodec.pc
install -m 0755 -d '/usr/local/include/ffnvcodec'
install -m 0644 include/ffnvcodec/*.h '/usr/local/include/ffnvcodec'
install -m 0755 -d '/usr/local/lib/pkgconfig'
install -m 0644 ffnvcodec.pc '/usr/local/lib/pkgconfig'

7. I ran the the following lines in the terminal one by one


  *   sed 's#@@PREFIX@@#/usr/local#' ffnvcodec.pc.in > ffnvcodec.pc
  *   install -m 0755 -d '/usr/local/include/ffnvcodec'
  *   install -m 0644 include/ffnvcodec/*.h '/usr/local/include/ffnvcodec'
  *   install -m 0755 -d '/usr/local/lib/pkgconfig'
  *   install -m 0644 ffnvcodec.pc '/usr/local/lib/pkgconfig'
8.

Changed the configure file as by refereeing below link and stil the issue persist. Attached the config.log file for reference
Reference link :- https://github.com/NVIDIA/cuda-samples/issues/46







-----Original Message-----
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> On Behalf Of Moritz Barsnick
Sent: Friday, April 22, 2022 6:56 PM
To: FFmpeg user discussions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] issues in ffmpeg installation



NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.









On Fri, Apr 22, 2022 at 05:37:46 +0000, FFmpeg user discussions wrote:

> ./configure --enable-cuda --enable-cuvid --enable-nvdec --enable-nvenc

> --enable-nonfree --enable-libnpp

> --extra-cflags=-I/usr/local/cuda/include

> --extra-ldflags=-L/usr/local/cuda/lib64 --disable-x86asm

>

> below is the error i have got ,can u please help us in fixing the

> issue.i have attached the config file log for reference as well

> [root at localhost FFmpeg]# ./configure --enable-nonfree

> --enable-cuda-nvcc --enable-libnpp

> --extra-cflags=-I/usr/local/cuda/include

> --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static

> --enable-shared --disable-x86asm

> ERROR: failed checking for nvcc.



Your log file says:

> nvcc -gencode arch=compute_35,code=sm_35 -O2 -std=c++11 -m64 -ptx -c

> -o /tmp/ffconf.jxP0ew2J/test.o /tmp/ffconf.jxP0ew2J/test.cu

> ./configure: line 991: nvcc: command not found

> ERROR: failed checking for nvcc.



Did you install the nvidia-cuda-toolkit and nv-codec-headers?



Moritz

_______________________________________________

ffmpeg-user mailing list

ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>

https://ffmpeg.org/mailman/listinfo/ffmpeg-user



To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org<mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 101667 bytes
Desc: image001.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20220422/c2742983/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 404312 bytes
Desc: config.log
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20220422/c2742983/attachment.obj>


More information about the ffmpeg-user mailing list