Skip to content

File saved from replay-source is green in color #75

@OPP123456

Description

@OPP123456

Using a CamLink4K or KanexPro capture card with 60fps 1080p video the replays shows correctly in OBS on replay. However, Replay Source was producing green-tinted video files when saving replays, especially while streaming with NV12/YUV420 color formats enabled.

Root cause:
The replay save path was reusing the active OBS output video format
(NV12/YUV420) without correctly providing or converting the U/V chroma planes
for the encoder/muxer. This resulted in invalid YUV frames where only the Y
(luma) plane was populated, causing green output in the saved file.

Solution:
Force the replay save output to VIDEO_FORMAT_BGRA with explicit SRGB/FULL
colorspace and range, and use video scaling to convert from the source format.
This guarantees fully populated pixel data regardless of the active streaming
color format and avoids YUV plane mismatches.

This change affects only the replay recording path and does not alter live
streaming or normal OBS recording behavior.

I have a branch I would like to push into a PR for master but don't have the permission to do such.

This is the issue first presented in the OBS forum most recently commented upon here:
https://obsproject.com/forum/threads/replay-source.86116/post-698648

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions