obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.69k stars 7.81k forks source link

Digital audio artifacts from SRT input in Media Source #6064

Open swiftgaruda opened 2 years ago

swiftgaruda commented 2 years ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.2.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/WQlii72cDUIWYzlr

OBS Studio Crash Log URL

No response

Expected Behavior

Expecting audio from Media Source (via SRT) to be clean of digital artifacts.

Current Behavior

Expecting audio from Media Source (via SRT) to be clean of digital artifacts. Sounds almost like a sampling conflict issue — constant audio digital bleeps throughout.

We didn't experience this in OBS 27.0.1, but every subsequent version of OBS has this issue (we keep testing everytime there's a new stable minor or major release.

Steps to Reproduce

  1. Use a Media Source that uses an SRT input
  2. ...

Anything else we should know?

The SRT stream is being generated by Haivision's SRT Gateway, which has its source from another OBS instance contributing an SRT stream.

Using the VLC Source with the input SRT stream, there are no digital audio artifacts.

tt2468 commented 2 years ago

Could you provide a sample recording of the artifacts? Knowing what audio codec you are using and what your encoder is would also be helpful.

swiftgaruda commented 2 years ago

Thanks for the quick response. Definitely, here's the samples:

Media Source (SRT input) with garbled audio:

https://user-images.githubusercontent.com/16741392/156360403-ed055044-9a51-4377-ad9a-3400b9335461.mp4

VLC Source (SRT input) without audio artifacts:

https://user-images.githubusercontent.com/16741392/156360441-45a5b99a-7cb7-4675-9f35-fe44caaa4e4d.mp4

Encoder settings

We're using an OBS instance streaming H.264 video with AAC @ 48Khz as a source. That's being piped through Haivision's SRT Gateway to multiplex (no transcoding) the signal to be used as the input for multiple OBS instances. The sample recordings are from one of the downstream OBS instances. As I mentioned, we've never experienced the issue on 27.0.1, but any major/minor versio above that, we get this issue.

Thanks in advance!

4rne commented 2 years ago

Not quite sure if this is related, but I noticed the same behavior if the network is not fast enough on IRL streams. Like the combination via phone -> SRT-relay -> OBS. If the bitrate of the phone's connection drops for a few seconds, then this audio issue occured on the stream output inside OBS. And it will not recover on its own, even if the bitrate is high enough again. I had to restart the source inside OBS for the stuttering sound to go away.

Sorqan commented 1 year ago

I had this same issue on any version higher that 27.0.1 on Windows 7 and I still have this issue on OBS version 29.0.0 on Windows 10. My setup is SRT streaming from ffmpeg to OBS as a Media Source with normal 48k stereo AAC audio. I have the audio issue on Decklink output and multicast streaming output usually, sometimes I get lucky after restarting OBS and the stream several times and audio is fine but this issue is usually present. This happens on any version after 27.0.1

This is the last issue preventing me from upgrading from v27.0.1 currently.