Question / Help Media source - mp4 playback has audio stutters

ValsNoisyToys

New Member
(edited to reflect what is actually going on, and with additional logs)

I've had an issue using the media source playback. Under OBS Studio (64bit) it exhibits frequent stutters in the audio of my mp4 intros and outros - particularly if I've been running OBS Studio for a few hours. I've had popping noises, stutters, and in one case the audio failed completely while the video kept playing fine. I haven't been able to find any common denominators.

An example of a pop and a stutter is audible in one of my streams : https://www.youtube.com/watch?v=SvvW5zXYxxo during my mp4 played at the 1:54:05 mark.
Link to log file: https://gist.github.com/69c654ea46c91c1da35271b8b48fb1fd

An example of a total failure of the mp4 sound playback at the 3:32:22 mark: https://www.youtube.com/watch?v=1tDgWaqhTTo
Log file for this last one: https://gist.github.com/42702bf698c825fed59258b5a09a77d0

Thank ya!
-- Val
 
Last edited:

ValsNoisyToys

New Member
Some additional information:
  • I have separate scenes set up that I use a key combination to switch to when I play my local intro / outro mp4 clips (intro scene, game play scene, outro scene). Therefore those clips stay loaded the whole stream as there is no way to tell them to load only at the time they are switched to. If I manually turn them off and on, then I have to ruin the seamless transition to the clip by pausing the game which brings up a save screen etc. After the clip plays, I use another key combo to switch back the game (after the intro), or I end the stream (outro).
  • If I have a stream longer than an hour (not sure how much longer, but by two hours for certain) I start having the audio issues with the mp4 playbacks. The longer the stream before I play the clip, the worse the issues. Again, only audio issues, the footage plays without any visible hitch. Streams an hour or less in length don't seem to have the playback issue.
Based on this additional information I've collected, I believe it has something to with the clip being kept loaded for too long in memory, and possibly with an associated memory leak or memory corruption issue, but only for the audio portion of the mp4.

For now I'm going to leave my restream service (Joicaster) going while I stop and restart OBS Studio and resume streaming before I do my end of the day tours. Not ideal, but better than having my intro/outro's borked up. :P

Perhaps adding an 'unload clip when not showing' would help things?

Hope this helps!
Val
 

ValsNoisyToys

New Member
I recently tried version 0.16.6 and the media source playback issue is still present, and at first blush, actually seems worse, since its occurring even if I have the media source unloaded until I need to play it in stream.

Eg: it happened today, after just an hour of streaming and then ending the stream with the outro.

Note: The "keep it unloaded until needed" method was my stopgap way for 0.15.2 to usually work even if it does put a distressingly long black screen between scene transition from end of stream until the outro playback starts since I have to move to the 'black' scene and manually make visible (and load) the media source.
 

ValsNoisyToys

New Member
Have some more information on this - I've now updated to 0.17.0.2, and the latest Windows 10. The stuttering is gone when I leave the mp4 loaded.

I did discover something new, that may have been my original problem, but I didn't realize because I was streaming so much Minecraft. The stuttering does not happen when I run OBS Studio in normal mode, however when I run it as an Administrator, the stuttering comes back on preloaded mp4's. I have go into Admin mode to stream Minecraft for some reason - OBS Studio doesn't see Minecraft until I run OBS in Admin mode (I believe I'm running Minecraft in Admin mode as well).

So this may have been the problem all along, but I just didn't notice until I had updated and was streaming mostly non-Minecraft games so I was in regular (non-Admin) mode and saw it working fine.

I really hope someone at OBS team is reading this thread - because surely I'm not the only person having this issue.
 
Top