Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 2.83 KB

File metadata and controls

44 lines (35 loc) · 2.83 KB

Ffmpeg With OpenCVForUnity Example

FfmpegWithOpenCVForUnityExample

Overview

  • Integrate FFmpeg for Unity with OpenCV for Unity.
  • FFmpeg receives video from various supported input sources (such as RTSP, HTTP, HLS, or local files), converts it to OpenCV's Mat class, and performs image processing.

Environment

Setup

  1. Download the latest release unitypackage from FfmpegWithOpenCVForUnityExample.unitypackage.
  2. Create a new project. (ex. FfmpegWithOpenCVForUnityExample)
  3. Import and Setup OpenCV for Unity.
    • Download Dnn model files by Example Assets Downloader window.
      download_dnn_models.png
    • Move the files from the Assets/OpenCVForUnity/StreamingAssets folder to the Assets/StreamingAssets folder.
      move_streamingassetsfolder.png
  4. Import and Setup FFmpeg for Unity.
  5. Import Runtime Inspector & Hierarchy.
  6. Import In-game Debug Console.
  7. Import FfmpegWithOpenCVForUnityExample.unitypackage.
  8. Set the URL of RTSPServer you wish to receive.
    ffmpeg_rtsp_settings.png
  9. Add all of the ***.unity files in the FfmpegWithOpenCVForUnityExample folder to Build SettingsScenes In Build.
  10. Build and Deploy.
    setup.png

ScreenShot

screenshot01.png screenshot02.png