View Full Version : NDI Send pause video on no connections

07-30-2019, 02:07 PM

I have application that send video via NDI. To preserve resources it pause sending video frames to NDI when no client connections. Once any is client connecting to NDI stream, application resume sending video frames and everything works fine except one small issue. NDI library store last video frame before pause and on connect it send this old frame to client and then new frames...but old and new frames can differ significant and on client side it looks not good.
Is there any possibility to tell NDI library to remove old frame from internal buffer and on new connection just wait new frames without sending old frame from buffer?

08-01-2019, 11:49 AM
You could try sending one black frame to NDI when you detect there's no active clients. The black frame will still get sent when a new client connects, but it's probably less intrusive than showing a random frame.

08-01-2019, 12:40 PM
I thought about it too but hoped that may be another way. Thanks