Skip to content

Commit bfc06db

Browse files
committed
libnvcuvid.so
1 parent 7878093 commit bfc06db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ffmpeg/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ RUN ln -s /usr/include/x86_64-linux-gnu/cudnn_v7.h /usr/local/cuda/include/cudnn
402402
# OpenCV
403403
WORKDIR /tmp
404404
ENV OPENCV_VERSION="4.5.2"
405+
COPY libnvcuvid.so.455.45.01 /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1
405406
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
406407
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
407408
unzip ${OPENCV_VERSION}.zip && \
@@ -494,7 +495,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
494495
-D WITH_JASPER=ON \
495496
-D WITH_JPEG=ON \
496497
-D WITH_LAPACK=OFF \
497-
-D WITH_LIBV4L=OFF \
498+
-D WITH_LIBV4L=ON \
498499
-D WITH_NVCUVID=ON \
499500
-D WITH_OPENCL=ON \
500501
-D WITH_OPENCLAMDBLAS=OFF \
@@ -512,7 +513,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
512513
-D WITH_TBB=ON \
513514
-D WITH_TIFF=ON \
514515
-D WITH_UNICAP=OFF \
515-
-D WITH_V4L=OFF \
516+
-D WITH_V4L=ON \
516517
-D WITH_VTK=ON \
517518
-D WITH_WEBP=ON \
518519
-D WITH_XIMEA=OFF \
@@ -523,7 +524,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
523524
.. 2>&1 | tee cmake_messages.txt
524525
RUN cd /tmp/opencv-4.5.2/cmake_binary && ninja
525526
#RUN make -j$(nproc) && make install
526-
527+
RUN rm /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1
527528

528529
RUN set -xe && \
529530
apt update -y && \

0 commit comments

Comments
 (0)