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

Latency High when OBS is started, Latency Low when GStreamer Effect is updated / edited #85

Closed
ReComplexed opened this issue Sep 10, 2022 · 7 comments

Comments

@ReComplexed
Copy link

Hi,
When I start obs the latency is high, but when I update / edit the pipes like in this example (Clicked Apply at the 11.8 Second Mark) the Latency is low! Is this a GStreamer or Plugin issue?

I changed
tee name=t ! queue ! pulsesink sync=false async=false t. ! queue
to
tee name=t ! queue ! pulsesink sync=false async=true t. ! queue

Thanks for your feedback

@fzwoch
Copy link
Owner

fzwoch commented Sep 10, 2022

No idea really. It may be due to how OBS sends the first sample on startup. There may be a gap in between and the audio sink tries to compensate it somehow. Audio is difficult with latency and under-flowing buffers..

@normen
Copy link

normen commented Oct 3, 2022

I found a possible reason: When OBS is under load it seems to add buffers to the source plugin output. Disabling these with obs_source_set_async_unbuffered fixes any "buildup" of latency for me I had with RTSP cameras.

My PR #66 includes an added option to disable buffers in OBS.

Edit: Oops, this is about effects, the PR is only about sources, sorry.

@ReComplexed
Copy link
Author

I found a possible reason: When OBS is under load it seems to add buffers to the source plugin output. Disabling these with obs_source_set_async_unbuffered fixes any "buildup" of latency for me I had with RTSP cameras.

My PR #66 includes an added option to disable buffers in OBS.

Edit: Oops, this is about effects, the PR is only about sources, sorry.

Well, again... This is like the 100th time where the OBS latency is bugging me. @normen Please add a Fix to your merge request where you add many of the latency options into the effects too, it's SO annoying!

@normen
Copy link

normen commented Nov 7, 2022

wat?

@ReComplexed
Copy link
Author

wat?

I am using your Pull Request to disable the OBS buffering in the GStreamer plugin Sources. Would it be possible to implement that into the effects too?

@normen
Copy link

normen commented Nov 7, 2022

I don't know, I didn't look into the effects stuff yet, no idea if it works the same there.

@fzwoch
Copy link
Owner

fzwoch commented Jan 3, 2023

Closing as whatever the effect is, I doubt it is solvable in GStreamer or this plugin.

@fzwoch fzwoch closed this as completed Jan 3, 2023
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

3 participants