メタ: - id: en/ue5-camera-app-ndi - slug: en/ue5-camera-app-ndi - url: /blog/en/ue5-camera-app-ndi/ - title: Building a simple UE5 viewer that switches between three NDI camera feeds - date: 2024-02-25T01:43:00+09:00 - tags: UE5, NDI, Video Streaming, Projects > **Note:** This article is more than one year old. > - Compatibility between UE's NDI receiver and mobile sender apps depends on their versions. Check the release notes for both the plugin and the app. > - Camera permissions, background behavior, and resolution presets on iOS and Android can change with OS updates. > - Check NDI's terms of use and bandwidth requirements for your environment. In the previous article, I sent three USB camera feeds over the network using NDI. This time, I will build a UE5 viewer that receives those feeds and switches cameras with the number keys.

Related USB camera listings: Search Amazon for USB cameras (Ad)

Previously: sending three USB camera feeds over the network with NDI Receiving and displaying NDI video in UE5 (Unreal Engine 5) I opened UE5.2 and made the following project, with four CameraActors and three NDI screens. ![](/blog-assets/media/0df166e8c4fbcfc4275f1461231fd7f4a254ab38776c80e02d077407e8c88929/0887.webp) I had already enabled the NDI plugin. ![](/blog-assets/media/1c622d85ca8ce13144268102288b56ba0b818ae0138c7b5b44a8f36cc1b25b3f/0888.webp) I also created three NDI receiver configurations. ![](/blog-assets/media/a239113d3fcd4dd31e07bfb59b48621b7c88c95a8cd75616b02f5789a4450943/0889.webp) I made a Blueprint that switches cameras when a number key is pressed. ![](/blog-assets/media/497ea72d4d5723f2f26ea8042e327cefcefa9558234b3aec345c205e2c1a85be/0890.webp) 0 shows the overview, 1 the left camera, 2 the center camera, and 3 the right camera. The overview is shown initially. ![](/blog-assets/media/2a36a4cdbc8655ea33666670bd69cba4eaf79e31d4f352ab77b2cb3f12398b20/0891.webp) The video showed ghosting, so I set the following option to None. ![](/blog-assets/media/502f1b37475272960c16b09667779b7f23389b8f3c4006eee0a83eea1c37ff6f/0892.webp) I could now switch between the NDI camera feeds like this. It may not be a particularly practical use of UE5. ![](/blog-assets/media/cf23f8593c5c7096645d87a68af0e8ac2f119596929fedf94937d31212ce7bd9/Honeycam-2024-02-25-01-24-25.webm) However, an NDIIO error prevented me from exporting the app, and I initially gave up. After about 30 hours of trial and error, I solved it. The following NDIIO error caused BUILD FAILED. ``` Expecting to find a type to be declared in a module rules named 'NDIIO'... This type must derive from the 'ModuleRules' type defined by Unreal Build Tool UATHelper: パッケージ化 (Windows): BUILD FAILED ``` The NDIIO plugin did not seem to be packaging correctly. I moved NDIIO from the UE\_5.2 folder into the project. This was a move, not a copy: I did not leave the original folder in place. `C:\Program Files\Epic Games\UE_5.2\Engine\Plugins\NDIIO\` For example, if the UE5.2 project folder is named ndiplayer05: `C:\Users\----\Documents\Unreal Projects\ndiplayer05\` I created a Plugins folder there and moved the entire NDIIO folder into it. The build then succeeded. Moving the plugin allowed it to be recognized. ![](/blog-assets/media/1ed60dd0f1a20827200bc33cae142418ddba703639e048538277ddae5027dbae/0898.webp) ![](/blog-assets/media/ace7440c83fecb0c54461339d7606ffb8113bae0f7d38ead6a8ba456cd29084a/0900.webp) ![](/blog-assets/media/b0a4ff234b1f39e62461d55c22a7ddec942e4ba08dcf3e5e984ab3e6aab962c6/0901.webp) ![](/blog-assets/media/8fac5094a3dc7233c7f318165e53700d745bf061e588a9d89abcc2a0a7885493/0902.webp)