Coder Social home page Coder Social logo

spout-for-python's People

Contributors

aurialloop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spout-for-python's Issues

No Signal in the Spout Sender Window if I use the webcam

Hey, I managed to run everything except if I try to capture the signal from my webcam with opencv and then send it. Then I just get a black screen. I tried to change the resolution and also use the right webcam ID. With cv.imshow(x, frame) I can see the livestream, but in the Spout Sender Window it is just black. Maybe someone can help me.

Thanks a lot!

Argument Error

what is my problem?

File "D:\Spout\Examples\spout_sender_example.py", line 121, in main
spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
SpoutSender.SendTexture(SpoutSender, numpy.uint32, IntConstant, int, int, bool, int)
did not match C++ signature:
SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)

Problem using example FBO

Hello, thanks for this code.

I am having trouble using Spout in my Windows 10 machine running an RTX3070 and trying to run the FBO example. I also tried to go simple and instantiate the spoutSender.CreateSender('Spout Python Sender', spoutSenderWidth, spoutSenderHeight, 0) but it gives me the error:

λ python35 ok.py
    loadFBOextensions fail
Spout::CreateSender - OpenSpout failed
<SpoutSDK.SpoutSender object at 0x000001CA772D6148>

So the OpenSpout thingy failed and when trying to run the FBO example I get:

λ python35 spout_FBO_sender_example.py
pygame 2.0.3 (SDL 2.0.16, Python 3.5.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "spout_FBO_sender_example.py", line 144, in <module>
    main()
  File "spout_FBO_sender_example.py", line 137, in main
    spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
    SpoutSender.SendTexture(SpoutSender, numpy.uintc, IntConstant, int, int, bool, int)
did not match C++ signature:
    SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)

I didn't compile this project and to be honest I don't even use Visual Studio or Windows but I really need this to work. Any help?

Thanks!

multiple videocards? upd: with tests

hi, i've seen some activity over here recent months (glad to face it after ~3 yrs of silence).
does anybody have an idea how to use this lib with multi-card setup?
there's SetAdapter feature in SpoutSDK, would be ultracool to have it operating in python lib too (or to know how to call it, if it's there already)

Black screen when enabling the SPOUT receiver

I am running the repo on python3.7. When running the repo with the receiver I get an intergelop error (directX/openGL), but it is not needed for my implementation.

When running the receiver part of the code, the window opens but it stays black. When checking with Arena and the SpoutReceiver demo it does receive an image. There is also no image when using the SpoutSender demo. I am sure to run arena and python37 on the high-performance nvidea card of my laptop. I also tried to to enable CPU sharing to see if that fixes the problem, which it does not.

Any ideas on what could cause this? Any help is greatly appreciated!

Spout Receiver Issue

I am trying

image=spoutReceiver.receive()

and I am getting

File "C:\Users\me\project\Library\Spout.py", line 140, in receive
if self.receiverWidth[id] != self.spoutReceiver[id].GetWidth(self.receiverName[id]) or self.receiverHeight[id] != self.spoutReceiver[id].GetHeight(self.receiverName[id]):
TypeError: 'int' object is not subscriptable

Receive nothing

With Spout Receiver.
Code does not return any error but shows me a black screen. Also 'data' array full of '0'
Is there a way to check if it connected to the sender or not?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.