Bug Report Media Source Audio Crashing/VLC Source RTMP Not Playing

oma

New Member
Hi,

I have several problems with RTMP, i'm trying to capture screen on my Gaming-pc and send it to NGINX server and stream it through Encoding-pc, however the same problems happen with other RTMP links too so it propably ain't a problem with encoding on Gaming-pc.


Media Source Audio Crashing RTMP
I have an weird problem with Media Source Audio using RTMP, after minute or two the sound crashes video will be playing nicely. The volume dancing bar shows signs of "lagging" before crashing and on recorded videos there is breaking of sound before silence, video is still recorder and played nicely. However on VLC mediaplayer sound and video is playing without problems.

I've tried different settings, installed QuickTime (thought it was an AAC problem, but didn't work), ive tried to change encoding settings which didn't solve the problem.

VLC Source RTMP
I only get black screen, it doesn't refresh itself and won't start playing it.
RTMP links work in VLC player without problems.

Any suggestions are welcomed, ill try everything!

https://gist.github.com/anonymous/728c0eccf9fc2a54563ae989e8ceadb6
as pure desperation i tried (.mp4) input which didn't do anything :).
 
I too have been having major issues with play RTMP streams via the Media source.
Not so much crashes, but instability. When it actually works, it's great.

I've got a scene with 4 Media Sources. Those sources are pulling from my remote RTMP nginx server. Users stream to the nginx server.
Sometimes when users start streaming to nginx, OBS doesn't pick up the feed, even though I can fire up VLC media player application and see the feed.

To fix this, I try the following in this order, until one works....

  1. Hide the source that isn't working by clicking the eyeball. When I see the audio channel disappear, I un-hide the source.
  2. Edit the source properties, changing the URL to something incorrect, press OK, edit the source again to the correct url, press OK. This probably achieves the same thing as hiding the source, but I've gotten results.
  3. Restart OBS. This usually always works.
It really seems like the Media Source has a hard time cleanly identifying when a stream has stopped and subsequently waiting for it become live again.

I do have the "Restart playback when source becomes active" selected.
I've also got "Hide source when playback ends" selected. When a user stops streaming, it usually just shows the last frame of that users stream.

I've tried this entire scenario with OBS Studio 1.15.4 on a Windows machine and OBS Studio 0.15.1 on a Mac.
Same behavior on both platforms.
 
Last edited:
Did you work out a fix for this Beefaloaf? I still cannot figure out a way to get the RTMP input stream to restart without going to properties in the media source and clicking OK, to have it 'reinitialise'.
 
I'm encountering serious issues with RTMP audio when managing multiple streams. The audio glitches out or stops completely sometimes when switching to a scene with an RTMP Media Source. I've found that hiding the visibility doesn't fix the issue and I'm usually forced to remove the source completely and add it again but it's not a reliable workaround. Has anyone else determined a way to fix this?


logs: https://obsproject.com/logs/EWHvo_-lzqLsUTNG
 
Back
Top