SPOUT/ Texture sharing

Hi all

We find our selfs using CasparCG in combination with Unreal engine a lot.
Where Caspar is a input to unreal engine.
Now i am wondering how hard / easy it would be to implement SPOUT or Texturesharing.
https://docs.unrealengine.com/4.27/en-US/WorkingWithMedia/IntegratingMedia/TextureShare/

Just to remove the NDI/SDI step in the process to win a few frames in the war against latency :wink:
I guess spout is more universal

It’s just a brainfart

1 Like

It would probably not be to difficult for a competent developer.
A shared memory consumer was once developed for CCG (though it was never merged), and that might be another option.

There’s been some interest in this topic lately.

Is there anyone willing to study the possibilities and development cost?

Well, 3 years later here we are.


Disclamer:

I did not code this, AI did. I just made sure it didn’t touch things I know it should not. Other than that, the code is most likely suboptimal, so I’m not going to do a PR on the main branch until I’ve had someone look at it and tested it more thoroughly. The last thing I want is to bring unnecessary work for the actual developers.


All I can say is that there is a working consumer and producer for SPOUT. I’m using the tools provided on the SDK to test it.

The sdk sender signal is being played on channel 2 PLAY 2-10 SPOUT SENDER (change ā€œSENDERā€ with your signal name)

And the sdk receiver is catching what I’ve created with caspar on channel 1 ADD 1 SPOUT Caspar

I am currently testing its performance and stability. Also it supports alpha channel.

The only ā€˜problem’ I’ve encountered so far is not a realistic workflow: sending a spout on channel 1 and receiving the same one on channel 2. Caspar crashes after a bit, and Windows just says ā€œAppHangTransientā€ on the event viewer.

I don’t have the actions enabled on the fork, so there are no builds available on Github for now, just the code. If you want to give it a try let me know and I can provide a Windows build, it would be good to have more people test this.

3 Likes