Skip to content

Commit 6d197f8

Browse files
authored
add FFmpeg & gstreamer for OpenCV
1 parent 9f41844 commit 6d197f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ffmpeg/Dockerfile.cv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ RUN set -xe && \
266266
# OpenCV
267267

268268
WORKDIR /tmp
269-
ENV OPENCV_VERSION="4.5.1"
269+
ENV OPENCV_VERSION="4.5.2"
270270
RUN wget https://github.com/opencv/opencv/archive/refs/tags/${OPENCV_VERSION}.zip && \
271271
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
272272
unzip ${OPENCV_VERSION}.zip && \
@@ -289,9 +289,11 @@ RUN wget https://github.com/opencv/opencv/archive/refs/tags/${OPENCV_VERSION}.zi
289289
-D WITH_TBB=ON \
290290
-D WITH_EIGEN=ON \
291291
-D WITH_V4L=ON \
292+
-D WITH_FFMPEG=ON \
293+
-D WITH_GSTREAMER=ON \
292294
-D BUILD_TESTS=OFF \
293295
-D BUILD_PERF_TESTS=OFF \
294-
-D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.1/modules" \
296+
-D OPENCV_EXTRA_MODULES_PATH="../../opencv_contrib-4.5.2/modules" \
295297
-D CMAKE_BUILD_TYPE=RELEASE \
296298
-D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") \
297299
-D PYTHON_EXECUTABLE=$(which python3) \

0 commit comments

Comments
 (0)