keijiro / klakndi Goto Github PK
View Code? Open in Web Editor NEWNewTek NDI™ plugin for Unity
Home Page: http://ndi.newtek.com
License: Other
NewTek NDI™ plugin for Unity
Home Page: http://ndi.newtek.com
License: Other
Any chance you could make it work with DX12?
The stream is not found via Wlan, is there a way to change the network settings? (Firewall and so on are deactivated)
I would like to use this plugin in my project.
However I can not receive the frame texture from win10 to macOS.
Two os version in my project:
win10
macOS High Sierra (10.13.6)
*** I use Mac Pro (Late 2013)
Hi, very good job.
I wanted to know how I can send content from this project to Android devices, is it compatible?
Thank you
Hello, we read the commet but we still don't understand why this warnings appear in the console
when we launch our scene.
GPU readback error was detected.
UnityEngine.Debug:LogWarning(Object)
Klak.Ndi.NdiSender:ProcessQueue() (at Assets/Klak/NDI/Runtime/NdiSender.cs:117)
Klak.Ndi.NdiSender:Update() (at Assets/Klak/NDI/Runtime/NdiSender.cs:250)
Too many GPU readback requests.
UnityEngine.Debug:LogWarning(Object)
Klak.Ndi.NdiSender:QueueFrame(RenderTexture) (at Assets/Klak/NDI/Runtime/NdiSender.cs:69)
Klak.Ndi.NdiSender:Update() (at Assets/Klak/NDI/Runtime/NdiSender.cs:253)
Linux support is hard due to the following issues:
OpenGL Core support would be dropped -- it's better to add Vulkan support using LoadRawTextureData
.
It's unknown why NDI Linux seems to be slower than Windows. We should inspect it using a standalone test program that is implemented without Unity.
I am working on something, very much like a video chat app where I need both clients to send and receive a live video stream. I can't seem to get both clients sending and receiving at the same time, however. My first question is, have you seen this before? If you know why this is, how would I go about making this bi-directional? Do I need to open another connection? Or separate channels for each direction?
This configuration is using two separate machines on the same LAN.
I'm getting the following error message in XCode when building NDI Sender for iOS with Bitcode enabled:
ld: bitcode bundle could not be generated because '/Library/NDI SDK for Apple/lib/iOS/libndi_ios.a(Processing.NDI.Send.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64
Works when disabling Bitcode on Build Settings.
Partially curious how difficult it would be to add the ability route audio into and out of Unity via NDI.
For case scenario, I am attempting to use unity as a scene composer. The goal is to have Multiple NDI video channels come in and be 'mixed' together in Unity in a scene composition, then output a couple NDI outputs to the network. The problem, is that on the video output at the moment, their is no way to send a combined Audio along with the video.
The hope, is to help people who are on a budget achieve something close to or surpassing that of a TriCaster system without having to change their setup too elaborately. Using Unity as a scene composer seems rather viable.
Is it possible to receive NDI on UWP devices such as the Microsoft HoloLens using your project?
I could not get it to work.
I set NDI_ENABLED for UNITY_WSA in PluginEntry.cs. I also tried adding the Processing.NDI.Lib.UWP.x64.dll from NewTek.
When I append HEADER_SERCH_PATHS and LIBRARY_SEARCH_PATHS to PbxModifier.cs
, it worked.
proj.AddBuildProperty(target, "HEADER_SEARCH_PATHS", "/Library/NDI\\ SDK\\ for\\ Apple/include");
proj.AddBuildProperty(target, "LIBRARY_SEARCH_PATHS", "/Library/NDI\\ SDK\\ for\\ Apple/lib/iOS");
Will you be updating this with the newest SDK?
Thanks.
Just implemented it and it works well well sending, though the hues appear to be offset by .5, I'm sure you know but just in case you haven't seen it.
Going to have a look at fixing it on my end.
Thanks heaps btw :)
With only having read the marketing team's estimation of performance gains, I was curious what all would be needed for KlakNDI to update to v3.7?
https://www.newtek.com/blog/newtek-ndi-v3-7-what-you-want-to-know/
I'm currently trying to send video from IPAD and it works well via WiFi, but by no chance with wired ethernet connection. I tried NDI streaming with some apps lying around AppStore and they do their job via ethernet without troubles. What can be the reason for that?
Project:
Unity 2020.1b
Entities 0.8.0
HDRP
Loading the scene the ram usage increases rapidly with an NDI Sender in the scene. This is the system resources prior to hitting play and then 15 seconds after. This only occurs when the NDI Sender object is active.
Prior to loading:
Objects in scene:
Hi,
Thanks for this amazing tool.
Is there anyway to keep the original resolution? I saw a "source.Width / 2" in the NdiSender.cs but I can't just delete it.
Hello, I'm having some trouble with Klak NDI. I've successfully testing receiving a stream from a Windows Desktop using VLC SyncPlay, but now I'm failing to receive a ndi signal using vMix Desktop Capture. The studio monitor software sees the image correctly, and I've been trying to diagnose using the NDIAnalysis tool; it receives a signal.
The name of my source is "MICHAELS-MACBOOK-PRO-2.LOCAL (vMix Desktop Capture for NDI)"
I've also noticed that when there's a hashtag in the source name, it will not show up in the list in Klak NDI. Perhaps the period or dashes cause the stream not to show up in the list of sources?
In my current use cases I am in both Unity 2019.3f and 2020.1b and in both, when attempting to use the NDI Sender component on an object in the scene, the message below displays.
MissingReferenceException: The object of type 'NdiSender' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. Klak.Ndi.NdiSender.ProcessQueue () (at Assets/Klak/NDI/Runtime/NdiSender.cs:128) Klak.Ndi.NdiSender.DelayedUpdate () (at Assets/Klak/NDI/Runtime/NdiSender.cs:170) UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <b12b1135410b470d90ca262c9fe40af0>:0)
New scene with an NDI sender in the scene. This however, seems to only happen when using the new fast play mode option with Scene Reload.
Project Settings > Editor > Enter Play Mode Experimental
Got an email from newtek today that the SDK 3.8 is available
KlakNDI/Assets/Klak/NDI/NdiReceiver.cs
Line 133 in 19cd734
Shoud a call to IncrementUpdateCount be placed here?
Using 2018.2.8, Windows 10 64 , DirectX 12, NDI scanconverter on a Mac.
Sees the Mac in the input window. Screen shows for a second before crashing.
Any fix? Tips?
Hi there,
I am trying to get this thing to run on android.
How would I go about that?
Will the NDI output broadcast on multiple NICs?
Hi,
I'm trying to share Unity output to Touchdesigner but for some reason I can only receive a very low quality image in Touch. Is this something related with the NDI compiled version here and in TD? From Unity to Resolume looks great, also from Resolume to Touchdesigner.
Hello my friend, I'm testing your NDI sender in Unity Editor, and I'm seeing distorted frames on the receiving side:
I think it might be something related to the resolution of the Editor Window, as the behavior changes when scaling it manually. Is it required to send images on specific resolutions or aspect ratios?
When running in fullscreen 1920x1080 as stand-alone exe looks fine.
I MAY be failing somewhere in the work flow; however, it would seem that with the newest HDRP, the NDI sender Alpha support seems to not function as intended.
Will the NDI output broadcast on multiple NICs?
Seems to only get pink signal when using the NDI receiver i see all the channels in the channel list window but even if but not Name filter to get the first channel i only get a pink color, also is the receiver going to resize the render texture to the NDI channel resolution.
Thanks Alot for the plugin BTW ur killing it !!!
Can you provide an example on how to stream a Unity WebcamTexture?
Hi,
Thanks a lot fot the work on the plugin. One issue I'm facing is that the colors are not corresponding to the camera view, as you can see here:
I've tested implementing other sender in openFrameworks and it didn't happen like this, so I don't believe it to be system related. Also enabling or disabling alpha makes no difference. Any ideas on what may be the cause?
Thanks a lot
Hi,
I've been trying to get the names of NDI sources and then change them at run time.
I've managed to get the NDI names however only when I view the NDIReciever component at runtime in the editor. When I don't view this component in the inspector I can't generative source names.
Whats the best way to get the names and alter the sources at run time without changing stuff in the inspector?
Thanks
Hi,
Good job for this plugin. One good thing will be to be able to change the framerate of the stream send, is that possible in any ways ? Like 50/60hz will be great.
Thanks !
How or is it possible to enable a interlaced input/output option with the addition of deinterlacing for the input source?
This feauture would be really helpful for broadcasting purposes.
Hi keijiro. Thanks for sharing this plugin. Are you planning to upgrade it for Unity 2019 ?
Hi Keijiro,
Thanks for the great work you have done!
But can the NDI plugin support Unity 5.x version?
Thanks!
i am using your plugins and work nice in unity but we have problem with audio we need to send audio and video together
Would be great to be able to find a way to add the receiver functionality on iOS. What is the SDK limitation ?
Was double checking the licensing of the components used in an asset I am building and noticed the MIT License listed in your README resolves to a 404. 😄
Can this be included in a commercial based asset?
I see from the documentation that alpha can be output to the NDI sender. Will it be possible to read in alpha from an NDI Receiver so it can be used by transparency shader in Unity?
Hi Keijiro, thanks for this package!
When building the app I get, instead of the correct feed a static red frame (R:0.82, G:0.20, B:0.14)(not the typically pink shader error), in all feeds. The strange thing is that they work inside unity editor...
I attach screenshots for the same scene, inside the editor and with the build executable.
#More info:
Thanks for your time!
Eduard.
Hi Keijiro, thanks for doing this. Im having an issue trying to run the demo scene. Im getting this error on the console.
'The type or name space 'Unity' could not be found. Error code CS0246.
Im on unity 2017.3
Hello Kejiro,
First, thanks for this plugin, which is really great.
However I have a small issue with it : When I just launch my build all is working fine, no latency, however after approximately 10 seconds, I start to have some latency, I would say like 100/150 ms, it's really not that much, but for my use it's still too much...
The problem is for receiver, when NDI come from VJing software.
I also input some DMX ( through Artnet ) from this same software, and there is no latency, so I guess the problem is coming from your NDI package, not from my scene.
I'm really new into Unity and code, sorry if I forget something.
Thank you !
Thomas.
I've tried use in projects LWP ou HDR but both don't work.
NDI allows embedding of metadata into each frame; would be great if you can expose that! Would make things such as frame-synced transforms + image data a lot easier to develop (send an NDI image which contains information about syncing + transform states, for example).
Hi,
I send from Premiere on MacOS and I'm able to see the content on the other side (a Windows 10 computer with Direct 11 GPU) through NDI Studio monitor.
But on the same Windows computer using your test scene (Assets/Test/Quad), as we select the same NDI source before or during play mode , render texture "receiver" is staying black.
Have you please any idea of what's preventing having the output ?
Hi!
I tested your application, but unfortunately the stream stops after 1 second.
I ran the application from the Unity Editor (2018.1.4f1 (64-bit)) and as a Standalone Windows build (x86_64),
but the stream is always just shown for a second and then freezes, when i display it in the NDI Studio Monitor.
I downloaded the source code for the release 0.0.4 and I use NID Tools 3.5 Studio Monitor.
Do you have any idea what may cause this problem? I could not find any logs or other hints what might go wrong, so im currently stuck. Also I tried receiving the stream over my local network, but then I do not even see the first second (as I do locally).
Best Regards
I'm wondering if caching the pointer to callback returned from NDI_GetTextureUpdateCallback
at the Start
method would make a difference (I know reducing PInvoke calls is good for performance, but I don't have exact numbers to tell if this optimization is worth it or not)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.