Fade audio for transitions like video?

dr.zapp

New Member
When I use the transition button to switch between scenes, the video crossfades as you would expect. The audio, however, does a hard cut with no fade. This makes for some jarring transitions with scenes that have music. I've looked everywhere and can't find an easy fix for this. I have tried the "move transitions" filter, but can't get it to work with a hotkey. However, it does work, just impractical for me to use the mouse to manually enable/disable during transitions. It seems this is something that should be built it... I mean, who fades video but not audio for transitions?
 

khaver

Member
On the stream or recording, the audio will cross-fade. If you install the audio-monitor plugin, it allows you to hear the actual audio output as it will sound in streams and recordings.
 

Raven_Singularity

New Member
This issue has been present for years now, people complaining about the same thing 3 years ago. It's 2022 and the issue remains.

Audio does not fade for me, it hard cuts after the video transition finishes. Using a "Media Source" with an MP3 file and a 1,000 ms fade transition. No fading of the audio at all. When switching away from the audio it doesn't even cut out the audio at the end of the 1,000 ms transition, it instead cuts the audio out around 500 ms after the video finishes transitioning. When switching to the scene with the MP3 playing it instantly resumes playback at full volume, no fading occurs.

On top of all this, the audio playback system is broken (with or without hardware acceleration). The audio crackles horribly any time it starts playing, stops playing, restarts playing, transitions to another scene, when the OBS window loses or gains focus, or sometimes randomly during playback. Further, I can't seek in the MP3, or it dies and stops playback. Or it continues playing, but can no longer be heard at all. By going to the Media Source and clicking Okay makes it resume being heard. Stopping and starting it may or may not make it be heard.

The audio portion of OBS is completely unusable for me and many others in its current form.

Examples of several of these audio issues:


@Kro:
To monitor the audio you need to find the item in the mixer, then click the cog next to it, then click "Advanced Audio Properties", then select "Monitor and Output" from the drop-down beside the source.
 

Raven_Singularity

New Member
Upon further investigation, I can say that the audio ending too late is because of a buffer:

If I quickly click off then back to the audio scene, there is no significant delay after the video fades. But if I let the audio play for a bit, then switch off, it has the 0.5 seconds or so extra playtime after the video ends. So there's an internal audio buffer that is not being accounted for with the fading. It tested this using the Cut scene transition, which should take 0 ms, but instead the audio keeps playing for a while if it is buffered.

Also, the audio often does not always loop successfully. Instead of starting playback at the start, it goes silent but the meter still shows it is playing. It doesn't die every time it tries to loop, but often.

If I use the "VLC Video Source" to play the MP3 file instead of "Media Source":
  • I am able to seek in the MP3 file correctly
  • The crackling, not fading, and instability issues remain
 
Last edited:

Kro

New Member
Hi, thanks, Ya I have knowledge of the AAP & no issues there...
I also had the exact same issues with mp3 files, it was driving me crazy then I found a fix. I use a lot of my own music & found OBS has no issues with .wav files but suffers with all what you wrote above with the mp3 files .. So, I simply use .wav & my music is all good.
I have a small recording studio & save everything as .wav, then for commercial mp3 music, when I converted the mp3's I had issues with to .wav they worked fine... Now I just need the audio to crossfade with the video ...
 

Raven_Singularity

New Member
It's beyond ridiculous that OBS cannot play the most common music format in the world. Every other open source app can play MP3s just fine, OBS is messing up bad. I tried other formats, including FLAC. Not sure if I tried WAV for the audio tracks, but WAV has stupidly large files (10x the size of the original MP3s).

Does audio crossfading work for you? It 100% does not work for me at all.

Edit:
Just tried with WAV files, but it makes no difference. The audio crackles, crashes randomly, and never crossfades.
 
Last edited:

Raven_Singularity

New Member
For what it's worth, I now use foobar2000 music player to play my songs, which works fine but is annoying needing to manually start/stop them. I have crossfading and stop/pause fading in foobar2000, so it at least sounds smooth. I write the currently playing song to a file, and that text shows up in OBS. Not ideal, but it gets the job done in the absence of OBS functioning properly. I also added a nice oscilloscope from foobar2000 to my OBS waiting screen.
 

Maggers

New Member
Hi all, me too. I've just raised this in a FB group and the sentiments of "how is the quick fade STILL an issue" is echoed in there. The video transitions are great, so why cant the audio follow a slow fade out from one scene to another?
CIP - I'm doing a live stream and when I cut from the "Holding" scene and music to "Showtime" scene its so quick and abrupt. WIsh it were smoother. Esp when you're going into talking and its just vocals. Is there a change request thread on this issue I can vote up?
 
Top