Skip to content

OBS 31.1.0 ships with libsrt 1.5.4 which breaks SRT Media Sources #12361

Closed

Description

@rationalsa

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

31.1.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

OBS Studio Crash Log URL

No response

Expected Behavior

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

  1. Create 2 Media Sources using different valid SRT caller URLs and set Close file when inactive to enabled
  2. Hide one of the sources
  3. When the one source is closed because it's no longer active, the second one will also be closed

Alternatively:

  1. 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)
  2. 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.

Activity

  1. pkviet commented on Jul 10, 2025

    @pkviet
    Member

    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.

  2. added
    issue/confirmed
    on Jul 10, 2025
  3. added theissue type on Jul 10, 2025
  4. ogmkp commented on Jul 11, 2025

    @ogmkp

    #12165

    Waiting :)

  5. RytoEX commented on Jul 11, 2025

    @RytoEX
    Member

    #12165

    Waiting :)

    That PR is relatively large (+508/-266) and complex. It will take time for someone to be able to thoroughly review it.

  6. ogmkp commented on Jul 11, 2025

    @ogmkp

    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?

  7. pkviet commented on Jul 11, 2025

    @pkviet
    Member

    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.

  8. RytoEX commented on Jul 11, 2025

    @RytoEX
    Member

    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.

  9. ogmkp commented on Jul 11, 2025

    @ogmkp

    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.

  10. pkviet commented on Jul 11, 2025

    @pkviet
    Member

    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 ...

  11. RytoEX commented on Jul 11, 2025

    @RytoEX
    Member

    I linked the wrong PR.

  12. reopened this on Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmed

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions