You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OBS 31.1.0 ships with libsrt 1.5.4 which breaks SRT Media Sources #12361
Separate SRT Media Sources should have no effect on each other
Current Behavior
One SRT connection closing resets all other SRT connections. An SRT connection that fails to connect prevents all other SRT connections from staying connected.
Steps to Reproduce
Create 2 Media Sources using different valid SRT caller URLs and set Close file when inactive to enabled
Hide one of the sources
When the one source is closed because it's no longer active, the second one will also be closed
Alternatively:
set up a Media Source with a valid SRT caller URL and a second one with invalid URL (e.g. srt://127.0.0.1:42)
the failing SRT connection from the Media Source with an invalid URL will make the valid one fail and reconnect every few seconds
Anything else we should know?
This is caused by the libsrt vesion in the build having been updated from 1.5.3 to 1.5.4. There is a known regression in 1.5.4 causing this issue: Haivision/srt#3098
It was introduced in srt commit bc2f48e and fixed in srt commit dca5399b. I've confirmed that this is causing the OBS issues I've observed by git bisecting libsrt.
You could either revert back to 1.5.3 or cherry-pick the fix.
The bug was initially reported to me by Windows users, and I've confirmed them on a Linux system. I believe all operating systems are affected.
We were already aware of both the offending commit and its fix. And are discussing the best course of action, because of the impact on other workflows.
Thanks for your report nevertheless which confirms our analysis.
I'm not qualified but these problems have been affecting us on linux for over a year with libsrt 1.5.4.
Thanks to this issue, we understand the problem better.
The rollback is welcome, but they corrected the problem at Haivision for next version 1.5.5, will the OBS-studio project have to continue improving when srt 1.5.5 will be released or will we be able to use like with 1.5.3 features?
I'm not qualified but these problems have been affecting us on linux for over a year with libsrt 1.5.4.
Thanks to this issue, we understand the problem better.
The rollback is welcome, but they corrected the problem at Haivision for next version 1.5.5, will the OBS-studio project have to continue improving when srt 1.5.5 will be released or will we be able to use like with 1.5.3 features?
We will definitely upgrade to 1.5.5 but our contacts at Haivision told us the release was not scheduled before the end of August at earliest ... so we had to resort to the current solution of patching 1.5.2 since 1.5.3 has its own issues.
I'm not qualified but these problems have been affecting us on linux for over a year with libsrt 1.5.4. Thanks to this issue, we understand the problem better.
Unfortunately, libsrt's release cadence is not something we control.
The rollback is welcome, but they corrected the problem at Haivision for version 1.5.5 and we would have the same behavior in OBS as in 1.5.3.
Will the OBS-studio project have to continue improving when srt 1.5.5 will be released or will we be able to use like with 1.5.3 features?
Whenever libsrt 1.5.5 is released, then Linux users/distros/packagers are free to use that. We only control what version is used in our:
Windows releases
macOS releases
PPA releases
Flatpak releases
The PR that you mentioned was opened while we preparing for the 31.1 beta release, and it did not make sense to introduce such a big change. We are now trying to fix issues that were not caught during beta, and we do not introduce large changes as hotfixes (patch releases). It's on our radar, but please understand that we only have limited time and resources.
In any case, this Issue is about the Media Source having an issue ingesting SRT in a specific scenario, and I have explained at obsproject/obs-deps#295 why we are electing to revert to libsrt v1.5.2. That PR is about OBS outputting SRT.
Thanks for explanations.
For those who build themselves, should we use libsrt 1.5.2 or can we use libsrt 1.5.3 if we don't use encrypted streams?
I may be talking nonsense 🤔 , but on debian, it compiles using gnutls.
Thanks for explanations. For those who build themselves, should we use libsrt 1.5.2 or can we use libsrt 1.5.3 if we don't use encrypted streams? I may be talking nonsense 🤔 , but on debian, it compiles using gnutls.
we don't provide support apart from those using our flatpak or ppa or through flathub, sorry about that but linux fragmentation is hard to deal with. For instance our builds are tested only with mbedtls, so with gnutls you're really on your own ...
Activity
pkviet commentedon Jul 10, 2025
We were already aware of both the offending commit and its fix. And are discussing the best course of action, because of the impact on other workflows.
Thanks for your report nevertheless which confirms our analysis.
ogmkp commentedon Jul 11, 2025
#12165
Waiting :)
RytoEX commentedon Jul 11, 2025
That PR is relatively large (+508/-266) and complex. It will take time for someone to be able to thoroughly review it.
ogmkp commentedon Jul 11, 2025
I'm not qualified but these problems have been affecting us on linux for over a year with libsrt 1.5.4.
Thanks to this issue, we understand the problem better.
The rollback is welcome, but they corrected the problem at Haivision for next version 1.5.5, will the OBS-studio project have to continue improving when srt 1.5.5 will be released or will we be able to use like with 1.5.3 features?
pkviet commentedon Jul 11, 2025
We will definitely upgrade to 1.5.5 but our contacts at Haivision told us the release was not scheduled before the end of August at earliest ... so we had to resort to the current solution of patching 1.5.2 since 1.5.3 has its own issues.
RytoEX commentedon Jul 11, 2025
Unfortunately, libsrt's release cadence is not something we control.
Whenever libsrt 1.5.5 is released, then Linux users/distros/packagers are free to use that. We only control what version is used in our:
The PR that you mentioned was opened while we preparing for the 31.1 beta release, and it did not make sense to introduce such a big change. We are now trying to fix issues that were not caught during beta, and we do not introduce large changes as hotfixes (patch releases). It's on our radar, but please understand that we only have limited time and resources.
In any case, this Issue is about the Media Source having an issue ingesting SRT in a specific scenario, and I have explained at obsproject/obs-deps#295 why we are electing to revert to libsrt v1.5.2. That PR is about OBS outputting SRT.
ogmkp commentedon Jul 11, 2025
Thanks for explanations.
For those who build themselves, should we use libsrt 1.5.2 or can we use libsrt 1.5.3 if we don't use encrypted streams?
I may be talking nonsense 🤔 , but on debian, it compiles using gnutls.
pkviet commentedon Jul 11, 2025
we don't provide support apart from those using our flatpak or ppa or through flathub, sorry about that but linux fragmentation is hard to deal with. For instance our builds are tested only with mbedtls, so with gnutls you're really on your own ...
RytoEX commentedon Jul 11, 2025
I linked the wrong PR.