Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 4af193e

Browse files
committed
Merge branch 'suppress.vs.error' into hunter-3.0.0
2 parents ce399cb + e8a1bc2 commit 4af193e

File tree

267 files changed

+7126
-20002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+7126
-20002
lines changed

3rdparty/ffmpeg/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
downloads/
2+
*.dll
3+
ffmpeg_version.cmake

3rdparty/ffmpeg/build_win32.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

3rdparty/ffmpeg/ffmpeg.cmake

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Binary branch name: ffmpeg/master_20150703
2+
# Binaries were created for OpenCV: e379ea6ed60b0caad4d4e3eea096e9d850cb8c86
3+
set(FFMPEG_BINARIES_COMMIT "8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb")
4+
set(FFMPEG_FILE_HASH_BIN32 "89c783eee1c47bfc733f08334ec2e31c")
5+
set(FFMPEG_FILE_HASH_BIN64 "35fe6ccdda6d7a04e9056b0d73b98e76")
6+
set(FFMPEG_FILE_HASH_CMAKE "8606f947a780071f8fcce8cbf39ceef5")
7+
8+
set(FFMPEG_DOWNLOAD_URL ${OPENCV_FFMPEG_URL};$ENV{OPENCV_FFMPEG_URL};https://raw.githubusercontent.com/Itseez/opencv_3rdparty/${FFMPEG_BINARIES_COMMIT}/ffmpeg/)
9+
10+
ocv_download(PACKAGE opencv_ffmpeg.dll
11+
HASH ${FFMPEG_FILE_HASH_BIN32}
12+
URL ${FFMPEG_DOWNLOAD_URL}
13+
DESTINATION_DIR ${CMAKE_CURRENT_LIST_DIR})
14+
15+
ocv_download(PACKAGE opencv_ffmpeg_64.dll
16+
HASH ${FFMPEG_FILE_HASH_BIN64}
17+
URL ${FFMPEG_DOWNLOAD_URL}
18+
DESTINATION_DIR ${CMAKE_CURRENT_LIST_DIR})
19+
20+
ocv_download(PACKAGE ffmpeg_version.cmake
21+
HASH ${FFMPEG_FILE_HASH_CMAKE}
22+
URL ${FFMPEG_DOWNLOAD_URL}
23+
DESTINATION_DIR ${CMAKE_CURRENT_LIST_DIR})
24+
25+
include(${CMAKE_CURRENT_LIST_DIR}/ffmpeg_version.cmake)

3rdparty/ffmpeg/ffmpeg_version.cmake

Lines changed: 0 additions & 13 deletions
This file was deleted.

3rdparty/ffmpeg/ffopencv.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

3rdparty/ffmpeg/make.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

3rdparty/ffmpeg/opencv_ffmpeg.dll

-10 MB
Binary file not shown.
-9.27 MB
Binary file not shown.

3rdparty/ffmpeg/readme.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
he/she should use --enabled-shared configure flag and make sure that no GPL components are
44
enabled (some notable examples are x264 (H264 encoder) and libac3 (Dolby AC3 audio codec)).
55
See https://www.ffmpeg.org/legal.html for details.
6-
6+
77
If you want to play very safe and do not want to use FFMPEG at all, regardless of whether it's installed on
88
your system or not, configure and build OpenCV using CMake with WITH_FFMPEG=OFF flag. OpenCV will then use
99
AVFoundation (OSX), GStreamer (Linux) or other available backends supported by opencv_videoio module.
10-
10+
1111
There is also our self-contained motion jpeg codec, which you can use without any worries.
1212
It handles CV_FOURCC('M', 'J', 'P', 'G') streams within an AVI container (".avi").
13-
13+
1414
* On Windows OpenCV uses pre-built ffmpeg binaries, built with proper flags (without GPL components) and
1515
wrapped with simple, stable OpenCV-compatible API.
1616
The binaries are opencv_ffmpeg.dll (version for 32-bit Windows) and
1717
opencv_ffmpeg_64.dll (version for 64-bit Windows).
18-
18+
1919
See build_win32.txt for the build instructions, if you want to rebuild opencv_ffmpeg*.dll from scratch.
2020

2121
The pre-built opencv_ffmpeg*.dll is:
@@ -24,9 +24,15 @@
2424
If it succeeds, ffmpeg can be used to decode/encode videos;
2525
otherwise, other API is used.
2626

27+
FFMPEG build contains H264 encoder based on the OpenH264 library, that should be installed separatelly.
28+
OpenH264 Video Codec provided by Cisco Systems, Inc.
29+
See https://github.com/cisco/openh264/releases for details and OpenH264 license.
30+
Downloaded binary file can be placed into global system path (System32 or SysWOW64) or near application binaries.
31+
You can also specify location of binary file via OPENH264_LIBRARY_PATH environment variable.
32+
2733
If LGPL/GPL software can not be supplied with your OpenCV-based product, simply exclude
2834
opencv_ffmpeg*.dll from your distribution; OpenCV will stay fully functional except for the ability to
2935
decode/encode videos using FFMPEG (though, it may still be able to do that using other API,
3036
such as Video for Windows, Windows Media Foundation or our self-contained motion jpeg codec).
31-
37+
3238
See license.txt for the FFMPEG copyright notice and the licensing terms.

0 commit comments

Comments
 (0)