Skip to content

bug: libobs: an audio filter below HDR Tone Mapping makes an HDR source look SDR (upstream PR #13761) #1492

Closed

Description

@rdoupe

No upstream issue. Upstream PR obsproject/obs-studio#13761, "libobs: Fix color space query through non-video filters", by saitatter (SaiTatter): open, approved by derrod, not merged yet. Reporter: none (no upstream issue; the PR author found it while streaming). Still present in this fork and in the current release.

Location

libobs/obs-source.c.h, obs_source_get_color_space(): an enabled filter with no video output (Gain, Noise Suppression, Compressor and the other audio filters) is answered like a video source. It has no video_get_color_space callback, so the query ends there with GS_CS_SRGB instead of going on to the filter or source below it. A disabled filter already passes the query on.

Class

Wrong behaviour. HDR Tone Mapping asks its target for the colour space. With an audio filter between it and an HDR source, it sees sRGB and does nothing, so whether it works depends on the order the filters were added in.

How it is reached

Any source with video and audio (Media Source, a capture card, Video Capture Device) playing HDR, with an audio filter added first and HDR Tone Mapping (or another filter that reads its input's colour space) added after it.

Reproduced in the current release

Headless (private Xvfb, private D-Bus, fresh HOME). test_filter_color_space (an HDR source with audio, an audio filter, a tone-mapping filter that asks its target like hdr-tonemap-filter, and two controls), run against each build's libobs:

Build Case Result
v0.1.0-beta.20261018 AppImage libobs audio filter answers for the HDR source sRGB (fail)
v0.1.0-beta.20261018 AppImage libobs tone mapping above the audio filter sees sRGB (fail)
v0.1.0-beta.20261018 AppImage libobs disabled audio filter; video filter without a callback (controls) pass
master a3ecd08 same 5 cases 3 of 5 fail, as above

Fix

Port upstream PR obsproject/obs-studio#13761: in obs_source_get_color_space(), a filter with no video output passes the query on to its target, as a disabled filter already does. Six lines, no API change. PR follows.

Activity

  1. rdoupe commented on Oct 20, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: port ready (RED and GREEN done locally), PR follows today.

  2. added
    claimed
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions