Bug Report Media source has unpredictable latency

TDobes

New Member
Hello.

I am attempting to bring multiple network streams into OBS using the Media Source (ffmpeg) plugin. Unless the sources are started at exactly the same time, they are out of sync with each other. The sources are often out-of-sync with each other.

To isolate this from any potential network issues, I have tested this by using VLC (running externally) to generate a stream, then connect to the exact same stream in OBS using two (identically configured) media source inputs. I have tested with both RTSP and RTP streams. If I create the sources one-by-one (or switch from a scene with one source present to another with both sources present), the two videos are out of sync. If I start the sources at exactly the same time, they are in sync.

As a side note: The ffmpeg included in OBS seems to struggle a lot with network streams. Things run much more smoothly if I drop in the DLL files from a more recent build of ffmpeg. However, this problem is present even with the provided libraries.

Here's my log file, but unfortunately I don't think it's going to be particularly helpful:
https://gist.github.com/anonymous/8f87650650f82a145761e93d45bc3f36

The VLC command I used to generate the test stream is:
vlc -I dummy "testfile.mp4" --sout "#rtp{dst=239.0.0.1,port=5004,mux=ts}" --sout-keep

I did a quick test in Debian Stretch (Linux) and the problem appears to be present there as well.

Thank you for your help and for the development work you've put into OBS Studio!
 
Top