Comments (4)
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.
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](https://private-user-images.githubusercontent.com/1645931/361996880-6b84cdcf-6e08-4f8e-a536-1dc1722b31b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0Mjc1ODUsIm5iZiI6MTcyNTQyNzI4NSwicGF0aCI6Ii8xNjQ1OTMxLzM2MTk5Njg4MC02Yjg0Y2RjZi02ZTA4LTRmOGUtYTUzNi0xZGMxNzIyYjMxYjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDRUMDUyMTI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmEzNjY1OTZmYjQ5Y2UzN2I4NmIwZjc0OTc2NGI2MWZkYzQ0OTNlZjI0NTI1MTdhMDA5NTNiYThkNDdjNjhmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MWZkXKq7avJ_B1dck64gD2gSUlSbEbjXD5bujhAyfww)
![Screenshot 2024-08-28 at 00 15 08](https://private-user-images.githubusercontent.com/1645931/361996889-aee835ef-a096-4030-a0f7-a2152916bccf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0Mjc1ODUsIm5iZiI6MTcyNTQyNzI4NSwicGF0aCI6Ii8xNjQ1OTMxLzM2MTk5Njg4OS1hZWU4MzVlZi1hMDk2LTQwMzAtYTBmNy1hMjE1MjkxNmJjY2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDRUMDUyMTI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODAzOTVjOTY2NWJkMDk3YmNkNGVlOGZiYmQwMzQ1NDM1MTZjOTFmYjlhZjlhNjE4MWZjZDhkMmIxMTFjMTM2YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dJVjX7VFbcjCAnNyBCgaCUyeEiJQLM52fxlQjggToVk)
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.
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.
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)
- EXC_BAD_ACCESS when building for macOS (Release only, Debug works) HOT 19
- Proper way to handle multiple receivers HOT 3
- Issues with CopyMemory and unsigned __int32 on macOs HOT 10
- Memory leak on mac osx HOT 12
- macOs - freezing for about 10 seconds when NDI sender is disconnected HOT 5
- RPI 4 support (OpenGL ES 2.0) HOT 2
- ofxNDIutils, rgba_bgra and rgba_bgra_sse2 don't compile in macOS HOT 6
- README could be commented... HOT 11
- macOS errors HOT 10
- ndiSender.GetNDIversion() crashes in macOS HOT 5
- ofmain.h HOT 4
- timecode HOT 7
- should it be possible to send two NDI streams from the same openframeworks app ? HOT 2
- reference to 'byte' is ambiguous when compiling example using msys2 HOT 10
- Failing to compile latest commit on macOS HOT 9
- not working in macOS HOT 14
- error when compiling example on raspberry pi 4: undefined reference to ofxNDIutils::CopyImage HOT 8
- not working in macOS 2 HOT 2
- Trouble building example sender with MSYS2 MINGW64 on Windows 11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxndi.