From 26fe783c8e12615b6c3528cf021be7762e69d3d6 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 28 Dec 2021 16:42:20 +0100 Subject: [PATCH] Enable NVIDIA Performance Primitives --- .drone.yml | 4 ++-- Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index cdbc31b..c508ec5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,8 +25,8 @@ steps: mkdir /usr/local/src/ffmpeg cd /usr/local/src/ffmpeg apt-get source ffmpeg - echo 'CONFIG+= --enable-nvenc --enable-cuda' >> $(ls ffmpeg-*/debian/rules) - cd ffmpeg-* && dpkg-buildpackage -r -b -j12 && cd .. + echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)" + cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc) && cd .. cp *.deb /drone/src - name: release diff --git a/Dockerfile b/Dockerfile index 3c70096..5309dc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ RUN make && make install WORKDIR /usr/local/src/ffmpeg RUN apt-get source ffmpeg RUN ls -lah ffmpeg-*/debian/rules -RUN echo 'CONFIG+= --enable-nvenc --enable-cuda' >> $(ls ffmpeg-*/debian/rules) -RUN cd ffmpeg-* && dpkg-buildpackage -r -b -j12 +RUN echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)" +RUN cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc) RUN ls *.deb RUN dpkg -i \ ffmpeg_4.3.3-0+deb11u1_amd64.deb \