obsproject / obsproject/obs-studio

Anything with Subtract blending mode appears black in rescaled output

Open
#10,746 1 comment 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

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/h2Ilp5Wf1bzNCqlK

OBS Studio Crash Log URL

No response

Expected Behavior

The video output should match the visuals in the program view.

Current Behavior

When rescaling output to stream or recording, any area of the output where the layer with Subtract blending is unobstructed appears solid black.

Demonstration

Steps to Reproduce
  1. Create a background image layer.
  2. Create a foreground image layer and set its blending to Subtract.
  3. Place a third semitransparent layer on top.
  4. Go to recording output settings and enable rescale output.
  5. Record the scene and look at the output file.
Anything else we should know?

The issue can be fixed by placing a solid black image over the entire screen and setting it to Additive blending.
This is a half educated guess, but I think this may involve the rescaler taking alpha values into account? This issue only occurs with Subtract blending specifically and outputs correctly to the Program view, any unscaled outputs, and behind any semitransparent layers.

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

Start with the provided OBS log and reproduce the issue using the listed scene setup and recording rescale steps on Windows 11. Compare the Program view with the recorded output, focusing on areas using Subtract blending. Done means rescaled recordings match the Program view without those areas becoming solid black.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.