Git Product home page Git Product logo

Comments (4)

leadedge avatar leadedge commented on September 4, 2024

What sender and receiver are you referring to?

The NDI frame rate is controlled by timing. The example sender starts with NDI fps at 30 and the receiver shows the NDI received rate (1920x1080/30 fps) as well as the rendering rate which should be the monitor refresh rate of 60fps. If you change the sender NDI fps with the 'F' key you should see the corresponding rate in the receiver.

The sender fps can be changed. The key function is "SetFrameRate(double fps)".

The Windows sender example, includes an example option to set the frame rate to 30 fps.

The Openframeworks example has the same option but it is not activated.

The default is 60fps.

If you still have trouble I would have to see your source code.

from ofxndi.

PeteHaughie avatar PeteHaughie commented on September 4, 2024

Thanks for the response.

I'm talking in particular about the example-sender-receiver in the repository.

My receiver says that it's being sent a 60fps stream and the sender application says the same but I'm also being told that it's only outputting 20fps.

Screenshot 2024-08-28 at 00 14 58 Screenshot 2024-08-28 at 00 15 08

The receiver I've built is the default one with #define BUILDRECEIVER enabled although I have changed it so that It's fullscreen by default.

from ofxndi.

leadedge avatar leadedge commented on September 4, 2024

Try the receiver version of the example with the sender to see if you get the same result. It shows both the NDI and receiving rate.

RGBA/YUV sending makes a significant difference. Set it to YUV.

"Readback" has less effect but should be left enabled. "Async" frees the sender/receiver from locking sync together. It does no affect fps a great deal but try it on or off.

Otherwise it could be a system setting. Nvidia has "Max frame rate".

Edit: I realised that you are already using the example receiver source. Is the "PETES-PRO (Shader output)" sender also built from the example source? If you have both example sender and example receiver working together I have something to compare with.

Somehow the render rate is being slowed, but I can't reproduce it. I can achieve 60pfs at 4K with YUV, Readback and Async all enabled.

from ofxndi.

leadedge avatar leadedge commented on September 4, 2024

I can reproduce the symptom to some degree by setting readback off (the "P" key in the example sender). In the source code of your sender, make sure that you enable it -

ndiSender.SetReadback(true);

The YUV option has the most significant effect. Before creating the sender -

ndiSender.SetFormat(NDIlib_FourCC_video_type_UYVY);

There is also a timing utility function that will reveal the bottleneck. It's in a namespace -

ofxNDIutils::StartTiming();
double elapsed = ofxNDIutils::EndTiming();

I can't suggest any more without further information.

from ofxndi.

Related Issues (20)

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.