Git Product home page Git Product logo

Comments (3)

WojciechBarczynski avatar WojciechBarczynski commented on June 1, 2024

Yep, It was initially done this way since VC didn't have the option to specify port range. It should be fixed.

This works fine as long as the port isn't taken in the meantime (between checking in the plugin and registering on the VC side), but should be done on VC side

from membrane_video_compositor_plugin.

wkozyra95 avatar wkozyra95 commented on June 1, 2024

Yep, It was initially done this way since VC didn't have the option to specify port range. It should be fixed.

I'm talking about output stream not inputs. There is no (and it can't ever be) option to specifiy that range in compositor

This works fine as long as the port isn't taken in the meantime (between checking in the plugin and registering on the VC side), but should be done on VC side

I don't think this is true. Unless I missed sth there is no checking at all whether port is free. Request to register output will always succeed regardless whether port if free or not

from membrane_video_compositor_plugin.

WojciechBarczynski avatar WojciechBarczynski commented on June 1, 2024

Oh, sorry, I got it wrong.

To handle it correctly, we should:

  • Try to spawn the UPD source for output and recover by trying the other port in the case of an error (port taken / not available). This could be "optimized" by firstly checking if the port is free (but it can be taken after check - TOCTOU problem).
  • After successful spawn of UDP source register output with the request.

Also, for inputs:

  • Instead of trying to use individual ports specify a range in the register input request.

from membrane_video_compositor_plugin.

Related Issues (18)

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.