media-playlist-source icon indicating copy to clipboard operation
media-playlist-source copied to clipboard

Source Audio is ALWAYS hearable on stream on all tracks since OBS 32!

Open Raigeee opened this issue 2 months ago • 5 comments

Hello,

I just wanted to inform you that I've been using your plugin in OBS 31.0.4 and everything went fine as far as I'm aware of.

But since the update to OBS 32.0.1, my Stream (I'm using Twitch Enhanced Broadcasting by the way, but I doubt that this will have something to do with it) can hear the source, regardless of it's state. Maybe it's happening because of new audio logics from OBS 32 which they brought in to prevent doubling sound sources, but I cannot say for sure.

I can turn down the volume or mute the source in the OBS volume mixer, the stream (and VOD Track) will hear. I can unassign all audio tracks from the source. same behavior. It doesn't matter if I set monitor off, monitor only or both - the stream will hear.

So in fact, I have no clue to prevent the stream from hearing the source as long as it is running. This is very annoying as I'm just using this particular source to display muted highlight clips from older times while letting music play. This is not possible anymore like this.

Raigeee avatar Oct 16 '25 23:10 Raigeee

@Raigeee

If you really need to, you can use ffmpeg to strip the audio from a video, while leaving the video untouched (i.e. there's no decoding/re-encoding). Something like this:

ffmpeg.exe" -i "file-with-video-audio.mp4" -an -vcodec copy "file-with-video.mp4"

"-i" is the input file, "-an" strips the audio, "-vcodec copy" means it uses the original video, then the output filename on the end.

I try to do this with all my video I'm using for background in OBS just to take that audio out of the equation.

rdlnz avatar Oct 17 '25 21:10 rdlnz

can confirm, having the same issue. Was fine until I updated to v. 32. My issue also involved aitum vertical scenes, which I believe is also having problems with the new update.

If I had two scenes, one horizontal and one vertical, with the same video on each scene, the vertical would not adhere to volume limits and would play at full volume. I have since had to purge those videos from the vertical scenes.

The only issue I can't resolve is the scene transition between two scenes with the same playlist. During the transition, it won't adhere to volume limits and plays full volume until the transition is finished

sconebonevideo avatar Nov 13 '25 20:11 sconebonevideo

@sconebonevideo I'm sorry to hear that this does seem to be a widerspread issue with the plugin than just me, despite that it seems to be dead development wise.

Because I thought that this one is dead earlier, I tried to search for alternatives without any success. Ofc I could go back using VLC Media Sources, but the switches using playlists weren't as smooth and GPU hardware acceleration (NVDEC) doesn't work on that it seems (at least for me).

So I came up building my own solution to this, which I'd like to share to help you guys out. Since I know nothing about programming and building OBS plugins, I made a LUA-script using the OBS scripts function (Tools -> Scripts) which just controls a OBS original Media Source, without providing an own plugin source to maintain.

It has the following functions:

  • Activating a full canvas sized color source which is set invisible, used as a stinger transition source close to the end ( Script Setting: "Lead time before end" in miliseconds, e.g. 2000 equals starting transitioning 2 seconds before current media ends), layered above your Media Source
  • Switching the Media Source from a given folder or txt file some time after the stinger started ("CUT delay after SHOW" in miliseconds, should be ideally set around half the duration of your stinger transition)
  • Deactivate the color source used as stinger transition after it ran through (Script Setting: "SHOW duration" in miliseconds, this should be as long as your stinger transition is, can be set a little higher for safety margins so it doesn't cut off though)
  • As a bonus, it fades down audio from the Media Source and after switching, it fades up again, so it feels smoother while your stinger transitioning. Of course, this doesn't do anything as long as you've muted your Media Source in the OBS Audio Mixer (it still does it, but it won't unmute the source, so nothing happens practically)

How to:

  • Create a regular Media Source for your Video and set it the way you want (sizes, scaling, filters, whatever). I recommend the following settings: [X] Local File, [ ] Loop, [X] Restart playback when source becomes active,. [X] use hardware decoding when available, [X] Show nothing when playback ends, [X] Close file when inactive
  • Layered ABOVE that source, create a color source with any color, but set Alpha Channel to 0 under "Select Color" to have it not visible. Remember that this source MUST have the size of your video to cover. You could place it first over your Media Source by leaving the color visible and after that, making it invisible using Alpha Channel 0 like mentioned
  • Now, set the Stinger Transition by right clicking the color source -> Show Transition and set up your Stinger (Important: OBS doesn't let you control audio of this type of stinger configuration, so if you want it to be silent, the stinger video file, most likely .webm or whatever has to be rendered without audio! You cannot mute it!)
  • Go to Tools -> Scripts, add my LUA-Script and configure it with the Media Scene name (the Scene in your OBS where the script finds the Media Source it should control) + Media Source name (your Media Source), Stinger Scene name + Stinger Source name (Your Color Source used for Stinger on Show) and a Folder where your video files are stored in for switching. I would also recommend checking Avoid immediate repeat as this prevents the script from randomly choosing the same video twice in a row.

I know that this is not the most comfortable way to set things up, but with my little knowledge in terms of messing with OBS sources, I'm glad that it works out this way and that I now have a solution. I hope, it'll help some of you guys, too.

playlist.zip

Cheers, Raigee

Raigeee avatar Nov 14 '25 18:11 Raigeee

Can I ask all of you guys to send a log file where you tried to stream or record with the issue you mention? I can not replicate this issue at the moment, I'm using OBS 32.0.2.

Please also take a screenshot of your plugin manager, as there might be problematic plugins

CodeYan01 avatar Nov 20 '25 05:11 CodeYan01

Also please try to disable vertical scenes plugin or se live or sl-browser

CodeYan01 avatar Nov 20 '25 05:11 CodeYan01