Giter Club home page Giter Club logo

cyndilib's People

Contributors

guillaumeriousat avatar nocarryr avatar

Stargazers

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

Watchers

 avatar

cyndilib's Issues

Suggest adding to build documentation

Excellent project - thank you!
I use it in https://github.com/occ-ai/scoresight

While python 3.12 isn't supported from PyPi I resort to building, and missing some deps before setup.py
Suggest adding

$ pip install setuptools cython numpy

to the build instructions.
Note: this is without pipenv.
Will be useful for brand new machines or a CI build.

Thanks!

The line stride declared by the NDI video frame is ignored which causes issues for non standard resolutions

For video receivers, cyndilib recomputes the line-stride in the calc_fourcc_pack_info function instead of using the line-stride declared in the NDIlib_video_frame_v2_t struct.

For most resolution this works fine but some non-standard resolution add some line padding.

In practice, this causes cyndilib to consider that the data buffer is actually shorter than it really is. The get_array function of a video frame returns incomplete data and trying to display it results in a jumbled image.

Here is a screenshot of OBS sending three color bands as a 300x700 rgba image through the OBS-NDI plugin and cyndilib receiving it.
image

This also happens with the RecvColorFormat.UYVY_RGBA flag, which can also contain padding which cyndilb ignores.

I have a simple fix for this for which I'll open a PR soon.

Sender Example?

Hi!, very nice library the viewer example works very fast!,

I'm wondering if you have an example on how to send NDI, that would very helpful

Many Thanks
Thomas

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.