Stream frames from Python OpenCV to Resolume?

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
8bitoak
Met Resolume in a bar the other day
Posts: 3
Joined: Fri Aug 03, 2018 09:19

Stream frames from Python OpenCV to Resolume?

Post by 8bitoak » Fri Aug 03, 2018 09:28

Dear experts,

I will be happy to get your help,
I want to stream a video from Python code that is doing some OpenCV stuff (Tracking object movement) but I need the video to get into the Resolume as a source.
Is there anyone tried this before?
Maybe there's an other way such some video router to install on my Windows 10 so it, somehow, patch the video coming from my software to the resolume inputs?

Thanks in advance!
cheers

User avatar
drazkers
Wants to marry Resolume, and Resolume said "yes!"
Posts: 920
Joined: Wed May 18, 2011 10:54
Location: Brady V up in Canada

Re: Stream frames from Python OpenCV to Resolume?

Post by drazkers » Fri Aug 03, 2018 09:33

There is a spout library for python. Would that fit the bill?

8bitoak
Met Resolume in a bar the other day
Posts: 3
Joined: Fri Aug 03, 2018 09:19

Re: Stream frames from Python OpenCV to Resolume?

Post by 8bitoak » Sat Aug 04, 2018 00:31

Really??? Thats awesome!
Does this spout requires the 'NDI newTek' module?
Because my processor does not work with the NDI...(old instruction set..no ssse3)

Do you know some example of using the spout lib for python?

Thanks a lot

User avatar
drazkers
Wants to marry Resolume, and Resolume said "yes!"
Posts: 920
Joined: Wed May 18, 2011 10:54
Location: Brady V up in Canada

Re: Stream frames from Python OpenCV to Resolume?

Post by drazkers » Sat Aug 04, 2018 07:22

8bitoak wrote:
Sat Aug 04, 2018 00:31
Really??? Thats awesome!
Does this spout requires the 'NDI newTek' module?
Because my processor does not work with the NDI...(old instruction set..no ssse3)

Do you know some example of using the spout lib for python?

Thanks a lot
Spout is based on your GPU, there is no compression its just a framework to share textures between programs that have been rendered on the GPU. It significantly more efficient because you're taking a rendered texture and sharing it, not compressing it after rendering. Which ndi does because its created for network transmission.

You'll have to check to see if your gpu supports the DirectX/Opengl interop, but it was supported back in 2010 for nvidia.

There are examples on the github page.

8bitoak
Met Resolume in a bar the other day
Posts: 3
Joined: Fri Aug 03, 2018 09:19

Re: Stream frames from Python OpenCV to Resolume?

Post by 8bitoak » Sun Aug 05, 2018 12:02

drazkers wrote:
Sat Aug 04, 2018 07:22
Spout is based on your GPU, there is no compression its just a framework to share textures between programs that have been rendered on the GPU. It significantly more efficient because you're taking a rendered texture and sharing it, not compressing it after rendering. Which ndi does because its created for network transmission.

You'll have to check to see if your gpu supports the DirectX/Opengl interop, but it was supported back in 2010 for nvidia.

There are examples on the github page.
Thank you! Finally I managed to stream the video to Resolume.
Great solution.

Post Reply