server icon indicating copy to clipboard operation
server copied to clipboard

Bug: NDI Playback distorted

Open jpc0 opened this issue 8 months ago • 3 comments

Observed Behavior

It seems like the resolution being fed from NDI into the backend is incorrect. Could also the the pixel format but unlikely. I have attached pictures of the expected output vs what is actually being output. I see the same behaviour on both the decklink consumer output and output from screen consumer so it seems like the issues is before the consumer at the very least. The FFMPEG, IMAGE and COLOUR producers seem to work fine, this does seem restricted to the NDI producer.

I have made some code changes to try faultfinding: I threw an exception at https://github.com/CasparCG/server/blob/e4e9ed299e1a0f9c87c8709d19b0585a5703102a/src/modules/newtek/producer/newtek_ndi_producer.cpp#L199 and it did not trigger so that confirms that it is in fact not taking that branch.

I also logged the width and height here: https://github.com/CasparCG/server/blob/e4e9ed299e1a0f9c87c8709d19b0585a5703102a/src/modules/newtek/producer/newtek_ndi_producer.cpp#L204 and I can confirm the with and height is 1920x1080 which is the same width and height as the consumers & channel is running at. There are no errors reported from casparcg. A behaviour I did notice was that it takes quite a while (close to a minute) for the image to display and for the logging I placed for width and height to start printing. On windows there is never a delay.

I may try bumping to NDI V6 but that needs some code changes in casparcg, and seeing if that solves the problem.

expected

actual

Expected behaviour

NDI Playback works as expected, and is it does on windows.

Steps to reproduce

Playback NDI on linux

Environment

  • Commit: HEAD
  • Server version: v2.4.0
  • Operating system: Ubuntu 22.04

jpc0 avatar Jun 12 '24 09:06 jpc0