Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS NDI plugin causes growing latency #667

Open
streamfuchs opened this issue Jun 29, 2021 · 7 comments
Open

OBS NDI plugin causes growing latency #667

streamfuchs opened this issue Jun 29, 2021 · 7 comments

Comments

@streamfuchs
Copy link

Hi everyone,

I have got a problem with the intergration oft the obs-ndi plugin which might have been discussed already, I am not shure:

I did a streaming event 3 months ago with an USB-Camera I extendend with an UTN (USB to Network) –Server and a dedicated audio mixer connected to my computer via USB (operated with the ASIO-pluginfor OBS)

I adjusted the audiolatency in my audiomixer to match the latency of the camera, everything worked fine.
I added a second camera to my setup for a streaming event I had to do 3 days ago.
This camera is a PTZ-camera operated via NDI.

I used the OBS-NDI plugin (Windows 4.9.0) and added 80ms delay within OBS for that source to match my timing.
During my transmission I got aware of the fact that the NDI-camera run out of audio/video synchronisation.
After the transmission I did some tests with the following result:

When starting OBS everthing is in sync.
During operation the NDI-Source (camera) has a shift of about 40ms every 10min. of operation.
So after 3 hours of operation my NDI-camera is about 720ms late which of course is not usable.

Evertime I change the sync for the NDI-camera from source timing to network or from network to source timing the camera is back in sync again.
Obviously that shifting latency is an issue of the OBS-NDI plugin.
Does anyone out there made the same experiences as I did and is there a solution/workaround?
Of course it is not a solution to resync the camera every 5 minutes, especially when the camera is on air.
The best solution of course wouldbe a solution within the plugin.
Any ideas or advices?

@weitheiml
Copy link

weitheiml commented Jul 18, 2021

Same problem here on OBS Mac 26 and 27 (OSX10.16, NDI Plugin 4.90) with the NDI Plugin and two different PTZ Cams. Syncing and applying different render-delays to lock pictures reliably is impossible. Switching scenes/cams seems to reset the delay, but a split-screen with both cameras reveals, that the delay is kind of random and not reproduceable.

@dingus9
Copy link

dingus9 commented Sep 25, 2021

We run 3 NDI PTZ cameras, 1 hdmi in from bmd capture card and audio in from a dac. We delay the audio/hdmi video by 500ms to help account for the ndi delay. Delay seems to come and go at random. We arent able to replicate well 1 camera (ptzoptics) rarely drufts more then 10ms but the datavideo cameras are all over the place sometimes. also changing timing modes seems to help... Its better in the final product with the arbitrary 500ms delay though... Probably indicating that the ndi sources never exceed that much delay allowing obs to sync streams during encoding? Live view looks horribly out of sync but final product on destination seems synced for the most part... Until its not then idk how to fix! Thoughts?

@Avidjeff
Copy link

(Sorry in advance that this post is not very technical). I have been having the same issue with growing latency with NDI video output using OBS.

To clarify, the issue is not audio / video syncing but a growing latency issue with OBS program output to local TV monitors via HDMI within a house of worship venue.

When starting up OBS, the output lag is acceptable but it slowly becomes more apparent the longer OBS is open. I have tried two computers, both running on Windows 10. The first is a Lenovo i5 laptop, 8GB RAM and the second (new PC) is a micro desktop HP model using an i7 processor with an Invidia T1000 GPU and 16GB RAM. Both PC's exhibit the same issue.

I use three PTZ NDI cameras (AlfaTron ALF-20NDIC). For testing purposes, I added a LC922x Logitech USB camera which never seems to display any appreciable video lag.

All three Alfatron NDI PTZ cameras display slightly longer lag than the USB camera (which is acceptable) UNTIL about 30 minutes into using OBS. (The video lag seems to slowly increase over time). Trying to rule out any PC processor issues, I opened task manager and shut down all other background apps. Later, I upgraded the computer and still no success. I would greatly appreciate any help with finding a solution!

@normen
Copy link

normen commented Oct 2, 2022

I am getting the same issue with the gstreamer plugin and RTSP streams, so maybe this issue is in OBS or in how (some) plugins deliver the frames?

@kinofuentes
Copy link

Any fixes found ? i got the same issue when i start obs on my gaming pc tha audio is fine on the stream pc but then overtime it starts desync and i need to restart obs on the gaming pc if you have any fix ill love to know it

@ogmkp
Copy link

ogmkp commented Jan 19, 2024

Same problem here on Linux. there is no image or sound latency in the OBS internal output (encoder), just the monitoring from NDI to pipewire-pulse which shifts as it goes along (the problem doesn't exist for other sources such as mic In or media source).

@ogmkp
Copy link

ogmkp commented Jan 22, 2024

Found on my side, enabling framesync causes constant sound delay on monitoring, so it's not related to this ticket which was opened before this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants