{"id":19119717,"url":"https://github.com/enoxsoftware/ffmpegwithopencvforunityexample","last_synced_at":"2025-06-14T02:37:39.442Z","repository":{"id":226244496,"uuid":"607829507","full_name":"EnoxSoftware/FfmpegWithOpenCVForUnityExample","owner":"EnoxSoftware","description":"Example of integrating \"FFmpeg for Unity\" with \"OpenCV for Unity\"","archived":false,"fork":false,"pushed_at":"2024-03-06T15:22:05.000Z","size":1582,"stargazers_count":30,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T15:09:44.289Z","etag":null,"topics":["atomcam","ffmpeg","opencv","rtsp","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EnoxSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-28T19:03:31.000Z","updated_at":"2025-03-10T15:09:44.000Z","dependencies_parsed_at":"2024-03-06T17:17:41.444Z","dependency_job_id":"7ba20079-5ed2-404e-bd0c-aa176197babe","html_url":"https://github.com/EnoxSoftware/FfmpegWithOpenCVForUnityExample","commit_stats":null,"previous_names":["enoxsoftware/ffmpegwithopencvforunityexample"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/EnoxSoftware/FfmpegWithOpenCVForUnityExample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FFfmpegWithOpenCVForUnityExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FFfmpegWithOpenCVForUnityExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FFfmpegWithOpenCVForUnityExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FFfmpegWithOpenCVForUnityExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnoxSoftware","download_url":"https://codeload.github.com/EnoxSoftware/FfmpegWithOpenCVForUnityExample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FFfmpegWithOpenCVForUnityExample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259749922,"owners_count":22905800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atomcam","ffmpeg","opencv","rtsp","unity"],"created_at":"2024-11-09T05:10:49.050Z","updated_at":"2025-06-14T02:37:39.375Z","avatar_url":"https://github.com/EnoxSoftware.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ffmpeg With OpenCVForUnity Example\r\n![FfmpegWithOpenCVForUnityExample](https://user-images.githubusercontent.com/7920392/221954204-416c4240-fb9b-4346-a36a-9f0951666ca4.gif)\r\n\r\n## Overview\r\n- Integrate \"FFmpeg for Unity\" with \"OpenCV for Unity\".\r\n- Replace WebCamTextureToMatHelper with FfmpegToMatHelper.\r\n- Video from a network camera (distributed via RTSP) is received by ffmpeg, converted to OpenCV's Mat class, and image processing is performed.\r\n\r\n\r\n## Environment\r\n- [ATOM Cam Swing](https://www.atomtech.co.jp/products/atomcamswing) + [atomcam_tools](https://github.com/mnakada/atomcam_tools)\r\n- Windows / macOS / Linux / Android / iOS\r\n- Unity \u003e= 2021.3.35f1+\r\n- Scripting backend MONO / IL2CPP\r\n- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.5.9+\r\n- [FFmpeg for Unity](https://github.com/MUMEI-NON906/FfmpegUnityDocs) 2.11.1+\r\n- [Runtime Inspector \u0026 Hierarchy](https://assetstore.unity.com/packages/tools/gui/runtime-inspector-hierarchy-111349) 1.7.0+\r\n- [In-game Debug Console](https://assetstore.unity.com/packages/tools/gui/in-game-debug-console-68068#releases) 1.5.9+\r\n\r\n\r\n## Setup\r\n1. Download the latest release unitypackage. [FfmpegWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/FfmpegWithOpenCVForUnityExample/releases)\r\n1. Create a new project. (FfmpegWithOpenCVForUnityExample)\r\n1. Import and Setup [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR).\r\n    * Download Dnn model files by ExampleAssetsDownloader.\r\n    ![download_dnn_models.png](download_dnn_models.png)\r\n    * Move the files from the \"OpenCVForUnity/StreamingAssets/\" folder to the \"Assets/StreamingAssets\" folder.\r\n    ![move_streamingassetsfolder.png](move_streamingassetsfolder.png)\r\n1. Import and Setup [FFmpeg for Unity](https://github.com/MUMEI-NON906/FfmpegUnityDocs).\r\n1. Import [Runtime Inspector \u0026 Hierarchy](https://assetstore.unity.com/packages/tools/gui/runtime-inspector-hierarchy-111349).\r\n1. Import [In-game Debug Console](https://assetstore.unity.com/packages/tools/gui/in-game-debug-console-68068#releases).\r\n1. Import [FfmpegWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/FfmpegWithOpenCVForUnityExample/releases).\r\n1. Set the URL of RTSPServer you wish to receive.\r\n    ![ffmpeg_rtsp_settings.png](ffmpeg_rtsp_settings.png)\r\n1. Add the \"Assets/FfmpegWithOpenCVForUnityExample/*.unity\" files to the \"Scenes In Build\" list in the \"Build Settings\" window.\r\n1. Build and Deploy.\r\n    ![setup.png](setup.png)\r\n\r\n## ScreenShot\r\n![screenshot01.png](screenshot01.png)\r\n![screenshot02.png](screenshot02.png)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fffmpegwithopencvforunityexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenoxsoftware%2Fffmpegwithopencvforunityexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fffmpegwithopencvforunityexample/lists"}