Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sender-side metadata capture support (PTZ receiver) #87

Open
TheLLspectre opened this issue Sep 1, 2020 · 10 comments
Open

Sender-side metadata capture support (PTZ receiver) #87

TheLLspectre opened this issue Sep 1, 2020 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheLLspectre
Copy link

Hi !

We tried to use this package and it's awesome and work perfectly with our NDI camera.

But also we have a NDI keyboard to use a PTZ on thoses camera. We want to receive value from inputs on this keyboard to interact with Unity also. (it's a birdDog keyboard if you want to know).

How i can use or search in script to receive values from the keyboard

I'm currently discover klak NDI scripts waiting for the answer.

Thanks ;)

@keijiro keijiro self-assigned this Sep 1, 2020
@keijiro keijiro added the question Further information is requested label Sep 1, 2020
@keijiro
Copy link
Owner

keijiro commented Sep 1, 2020

Sorry but I have never heard about "NDI keyboard".

Let me start with a simple question... What is "NDI keyboard"?

@TheLLspectre
Copy link
Author

That's probably a bad explanation on my part. ^^
It's a PTZ keyboard and it have an NDI/IP communication.
This one : https://www.bird-dog.tv/ptzkeyboard-overview/

@keijiro
Copy link
Owner

keijiro commented Sep 1, 2020

Thanks for the information. That's an interesting device.

I did a little research, and I realized that it requires the sender-side metadata capturing function (NDIlib_send_capture). I have already added basic metadata features in the latest update, but this one is not yet.

I'll add this function in a future update, but please don't expect this to happen timely. The PTZ Keyboard is too expensive for my budget. I have to invent a trick to implement it without a real device.

@keijiro keijiro changed the title Receive a keyboard NDI values Sender-size metadata capture support (PTZ receiver) Sep 1, 2020
@keijiro keijiro added enhancement New feature or request and removed question Further information is requested labels Sep 1, 2020
@keijiro keijiro changed the title Sender-size metadata capture support (PTZ receiver) Sender-side metadata capture support (PTZ receiver) Sep 1, 2020
@TheLLspectre
Copy link
Author

May be I can help you ! I have to work on functionnality with PTZ keyboard and NDI Camera. And i'm a Unity Game Developper. So i have a PTZ keyboard to work on !

@keijiro
Copy link
Owner

keijiro commented Sep 1, 2020

Please let me remind you that this wouldn't happen very soon. I'm busy at other projects at the moment. If you need an instant solution right now, please look for a specialist who can solve the problem.

@TheLLspectre
Copy link
Author

Don't worries. I have to work on this one so I just we can exchange on it with the time.

@benwager
Copy link

benwager commented Sep 3, 2020

You need to implement NDIlib_recv_send_metadata, NDIlib_recv_free_metadata, and NDIlib_send_capture, as per the NDIlib_Send_VirtualPTZ example in the SDK, as well as creating a struct for MetadataFrame.

I actually have a fork I'm working on where I'm about to add this. However, it also contains quite some changes to the current Klak implementation, for instance running _recv.Capture on a separate thread.

I'll let you know when I push and point you in the right direction, maybe you can strip out the bits you need.

@benwager
Copy link

benwager commented Sep 4, 2020

benwager@667a96b

Take a look at this commit. It implements send_send_metadata also, but you are probably more interested in NDIlib_recv_send_metadata and NDIlib_send_capture.

Hope it helps!

@TheLLspectre
Copy link
Author

benwager@667a96b

Take a look at this commit. It implements send_send_metadata also, but you are probably more interested in NDIlib_recv_send_metadata and NDIlib_send_capture.

Hope it helps!

Well nice ! I will check that ! Currently I add some functionnality on camera's PTZ like zoom speed and pan tilt speed, based on what KlakNDI implement. Add affect those on a gamepad. (The keyboard has gone to work today and tomorrow ^^)

@darktable
Copy link

The PTZ Keyboard is too expensive for my budget. I have to invent a trick to implement it without a real device.

The free NDI Studio Monitor app for Windows can control PTZ cameras. I believe there's an onscreen joystick and it will also work with XInput joysticks. The fork where I was experimenting with an audio receiver also implements receiving metadata frames. I think the Unity app would need to send metadata as well to advertise that it support PTZ control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants