obsproject / obsproject/obs-studio

Cross-fading audio breaks if "Rescale Output" is used

Open
#12,912 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

32.0.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/2nKe95IOX4BZwMPa

OBS Studio Crash Log URL

No response

Expected Behavior

The audio to cross-fade correctly.

Current Behavior

The audio abruptly cuts when the transition is finished.

Steps to Reproduce

Done with a clean install of OBS (running in portable mode for ease of use).

  1. Open OBS, don't go through the wizard.
  2. Add additional scene.
  3. Add audio source to that scene (I used "Audio Output Capture" and set it to my desktop, but tested it on other machines with other things, including a Blackmagic input).
  4. Mute other audio sources so they don't interfere (not part of the bug I hope, just makes it easier to hear, I also tested removing them outright with the same results).
  5. Settings > Output > change "Output Mode" to Advanced and click OK.
  6. Set transition to "Fade" (may want to increase the duration to make it easier to tell when checking).
  7. Start a recording and transition between the scenes, then stop the recording (same thing happens on streams, but recording is easier for testing).
  8. Settings > Output > change "Rescale Output" to any setting that isn't Disabled and set the resolution to something that isn't the "Output (Scaled) Resolution" already and press OK (I used 960x540).
  9. Start a recording and transition between the scenes, then stop the recording.
  10. Compare the recordings, the first will have cross-fading work, the second will have it hard cut.
Anything else we should know?

I tested this on 32.0.2 a lot as that's the current "stable" version, but gave it a go on 32.0.3 and the same issue occurs.

EDIT: Also just tested it with a "Stinger" transition and the same issue happens, with both the "crossfade" and the "fade out to transition point then fade in" Audio Fade Style settings.

EDIT 2: I thought it would be relevant to note that even if you toggle the "Rescale Output" on but use a resolution that means it won't take effect (you get the log line encoder 'advanced_video_stream': Scaled resolution matches output resolution, scaling disabled) then the bug doesn't happen, so it's not just the setting itself that causes the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the issue in OBS 32.0.2 or 32.0.3 using the listed portable-install steps, compare recordings with and without Rescale Output, and inspect the linked OBS log. Done means Fade and Stinger transitions retain their configured audio cross-fade when output rescaling is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.