最終更新:2019-06-10 (月) 18:48:56 (1781d)  

OpenCV/FFmpeg
Top / OpenCV / FFmpeg

FFmpeg/バージョン

メモ

opencv_ffmpeg.dllの作り方

メモ

  • If you enable FFmpeg while configuring OpenCV than CMake will download and install the binaries in OPENCV_SOURCE_CODE/3rdparty/ffmpeg/. To use FFMpeg at runtime, you must deploy the FFMepg binaries with your application.
  • FFmpeg is licensed under the GNU Lesser General Public License (LGPL) version 2.1 or later. See OPENCV_SOURCE_CODE/3rdparty/ffmpeg/readme.txt

OpenCV/modules/videoio/src/cap_ffmpeg.cpp

Windows

  •   On Windows OpenCV uses pre-built ffmpeg binaries, built with proper flags (without GPL components) and
      wrapped with simple, stable OpenCV-compatible API.
      The binaries are opencv_ffmpeg.dll (version for 32-bit Windows) and
      opencv_ffmpeg_64.dll (version for 64-bit Windows).
    
      The pre-built opencv_ffmpeg*.dll is:
      * LGPL library, not BSD libraries.
      * Loaded at runtime by opencv_videoio module.
        If it succeeds, ffmpeg can be used to decode/encode videos;
        otherwise, other API is used.
    
      FFMPEG build includes support for H264 encoder based on the OpenH264 library.
      OpenH264 Video Codec provided by Cisco Systems, Inc.
      See https://github.com/cisco/openh264/releases for details and OpenH264 license.
      OpenH264 library should be installed separatelly. Downloaded binary file can be placed into global system path
      (System32 or SysWOW64) or near application binaries (check documentation of "LoadLibrary" Win32 function from MSDN).
      Or you can specify location of binary file via OPENH264_LIBRARY environment variable.
    
      If LGPL/GPL software can not be supplied with your OpenCV-based product, simply exclude
      opencv_ffmpeg*.dll from your distribution; OpenCV will stay fully functional except for the ability to
      decode/encode videos using FFMPEG (though, it may still be able to do that using other API,
      such as Video for Windows, Windows Media Foundation or our self-contained motion jpeg codec).
    
      See license.txt for the FFMPEG copyright notice and the licensing terms.
  • OpenH264