[FFmpeg-user] How to use nvida GPU

msanders marksanders at protonmail.com
Mon Nov 26 16:02:55 EET 2018


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, 26 de November de 2018 14:44, hans gerte <hansoggerte at gmail.com> wrote:

> Hi, need some help. i read a lot of forums and googled it, but i got more
> confused.
> i have a Ubuntu 14.04 running ffmpeg 3.4 (From add-apt-repository
> ppa:mc3man/trusty-media).
> and now i just bought 2 Nvidia Quadro P5000.
> the part that i don't know and need some help on is:
> for it to work is it enough that i install the drivers Linux X64 v. 410.78 (
> https://www.nvidia.com/Download/driverResults.aspx/140135/en-us)
> or do i also need to install the NVENC SDK 8.2
> and do i need to build ffmpeg from scratch. and some guide tells that i
> also need the CUDA Utillty.
>
> so could some please help me out or even write me a step by step?
>

Hi,

1) Yes, you need to install the nVidia Linux driver.
2) Yes, you need too to install the CUDA SDK (I recommend a the recent version).
3) And Yes, you need to compile ffmpeg from scratch.

After you installed all, it's quite simple to compile from scratch:
- "export PATH=$PATH:/usr/local/cuda-8.0/bin" (or your newer version).
- "./configure --enable-cuda --enable-cuda-sdk --enable-nonfree --enable-cuvid --enable-nvenc --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ .." (add here your specific flags).
- "make"

Enjoy!



More information about the ffmpeg-user mailing list