ffmpeg-cuda-docker
ffmpeg-cuda-docker copied to clipboard
CUDA SDK requires compilation of ffmpeg
Hi, just tried your Dockerfile - it seems that the precompiled ffmpeg which comes with apt does not have the latest Nvidia Codec SDK built in. I followed Nvidia's installation instruction and here's my Dockerfile which actually enables CUDA
hardware acceleration. The acceleration comes with prebuilt ffmpeg is cuvid, which is deprecated and replaced by CUDA
.
FROM nvidia/cuda:10.0-devel-ubuntu18.04
RUN apt update && apt install -y git build-essential yasm cmake libtool libc6 libc6-dev unzip wget libnuma1 libnuma-dev pkg-config
RUN git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && \
cd nv-codec-headers && \
make install && \
cd ..
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg/ && cd ffmpeg && \
./configure --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 && \
make -j 8 && make install ```