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

Send capture to SDI. #21

Open
Jotamaza opened this issue May 12, 2020 · 10 comments
Open

Send capture to SDI. #21

Jotamaza opened this issue May 12, 2020 · 10 comments
Labels
enhancement 🚀 New feature or request

Comments

@Jotamaza
Copy link

Is your feature request related to a problem? Please describe.
I need to do a 180 capture and send it with audio in realtime using SDI or NDI.

Describe the solution you'd like
Be able to set the capture output to an SDI output using AVPro DeckLink would be perfect.

Describe alternatives you've considered
I've successfully sent the capture using NDI (KlakNDI), using the _finalTarget RenderTexture on CaptureFromCamera360.cs, but this plugin don't manage audio through NDI.

@Jotamaza Jotamaza added the enhancement 🚀 New feature or request label May 12, 2020
@AndrewRH
Copy link
Member

I will take a look at this today. I can't see any reason why it shouldn't work. We just just need to open up the API's a bit more.

@AndrewRH
Copy link
Member

Hi @Jotamaza
I have attached here a new DeckLinkOutput.cs
The new version should allow you to specify a texture to output on DeckLink instead of having to use a camera for rendering.

You can call deckLinkOutput.SetSourceTexture(_finalTexture);
and make sure that the camera fields are set to null.

Let me know how this works for you.

Thanks,
DeckLinkOutput.zip

@Jotamaza
Copy link
Author

Thanks Andrew!

We are preparing a environment with DeckLink hardware to start the tests.
I will keep you up to date.

@AndrewRH
Copy link
Member

Okay great! Can I close this issue or are you still testing it?

Thanks,

@Jotamaza
Copy link
Author

Jotamaza commented May 19, 2020

Hi Andrew! Here are my findings:

If I create a DeckLink output with the camera (as in the prefab), and then call the SetSourceTexture method, nothing changes in the output. The camera image is still streamed through the SDI port.

If I delete or deactivate the camera in the Output prefab there is also no change when calling SetSourceTexture.

The only way to get it working is start with the default camera, and then execute
sdiOutput.SetCamera(null);
sdiOutput.SetSourceTexture(captureTex);

Anyway, I got it working. Great!

Now, to complete my workflow, I just need to stop the AVPro Movie Capture output, as I don't need a video file or image sequence. As the stream could last for more than an hour, encoding and saving all that data is a performance consumption we can save.
Any tip about where to stop the process without breaking something?

Thanks for your support, Andrew!

@Jotamaza
Copy link
Author

Also the captured texture shows the post process effects, although the default camera behavior in AVPro DeckLink don't support it.

@AndrewRH
Copy link
Member

Also the captured texture shows the post process effects, although the default camera behavior in AVPro DeckLink don't support it.

Oh? Could you explain more about this? I don't think most post-process effects work for 360 though?

@Jotamaza
Copy link
Author

I have tested color grading and bloom from the Unity Post-processing Stack, and both where applied to the capture render texture.

@AndrewRH
Copy link
Member

I see :) thanks! Yes those two should work okay....Although bloom I would have thought might have edge seam artifacts.... But certainly color grading should work.

I will see if I can add 360/180 support as an example directly into the DeckLink package...

@stale
Copy link

stale bot commented Jul 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 1, 2020
@AndrewRH AndrewRH added stale Stale and removed wontfix This will not be worked on labels Jul 1, 2020
@stale stale bot removed the stale Stale label Jul 1, 2020
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

2 participants