KlakNDI icon indicating copy to clipboard operation
KlakNDI copied to clipboard

Interlaced Output/Input Option

Open enslaved2die opened this issue 6 years ago • 10 comments

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.

enslaved2die avatar Sep 27 '18 15:09 enslaved2die

Thanks for the feedback. I didn't know that the interlacing feature could have such an importance.

Could you provide information about what software/hardware you are using the feature with? I can implement the feature without much effort, but I wonder how I can test it.

keijiro avatar Sep 28 '18 05:09 keijiro

Our goal is to get interlaced camera data with NDI into unity and do some AR stuff in a studio environment and do the output with NDI in the same way. We for now have the same problem with the testing, the project has not started yet but our research phase will start soon, or when you ask me, it is started. I used an buged version of the OBS NDI Plugin (Version 4.1.1 []https://github.com/Palakis/obs-ndi/releases?after=4.1.3) ) here the output was always interlaced, so Ive noticed that your plugin doesnt like interlaced stuff. To see if the output works with interlaced is as simple as using the NDI Studio Monitor coming with the NewTek NDI Tools, its shows the current Resolution and Framerate in the Window Header. I hope this can help you in some way. :)

I really want to thank you for this plugin aswell as the plugin for ios/mac, I´ve used the ios plugin with arkit so we can better record the casting session of the same project and see how well the presenter can interact with an invisible object. It worked like a charm.

enslaved2die avatar Sep 28 '18 06:09 enslaved2die

I took a look at NDI SDK 3.7 and realized that the newly added frame-sync API could solve this kind of jittering problems. I'll try it when I have time.

keijiro avatar Oct 02 '18 05:10 keijiro

Is this possible to output 1080i50 or 1080p50 stream with this plug-in? I need that for some broadcast integration project. Also If you need I can help about test environments.

vbxcoder avatar Feb 20 '22 15:02 vbxcoder

Or just configure frame rate

vbxcoder avatar Feb 20 '22 17:02 vbxcoder

Try changing the refresh rate of your PC display to 50Hz. Unity will sync to it.

keijiro avatar Feb 21 '22 01:02 keijiro

I would try the output precise frame rate with GenLock like described here https://github.com/Unity-Technologies/GenLockProofOfConcept

enslaved2die avatar Feb 21 '22 10:02 enslaved2die

@keijiro thanks for reply, I tried but it doesn't affect. Still output is 1080/59.94p

vbxcoder avatar Feb 21 '22 14:02 vbxcoder

You might also have to change the frame rate parameters when sending frames.

https://github.com/keijiro/KlakNDI/blob/main/jp.keijiro.klak.ndi/Runtime/Interop/Structs.cs#L61

https://github.com/keijiro/KlakNDI/blob/main/jp.keijiro.klak.ndi/Runtime/Component/NdiSender.cs#L142

keijiro avatar Feb 21 '22 15:02 keijiro

Thanks @keijiro I solved my problem exactly how you said

vbxcoder avatar Mar 13 '22 13:03 vbxcoder