I had everything working well once i set it up. But i checked again sometime later and noticed the videos are brighter/ have their gamma turned up without me changing any settings. The mp4 isn't the issue, because it works in the test room. I tried removing and re-importing the addon but the issue persists. Any chance you know what the issue could be?
Viewing post in GDE GoZen - Video Playback addon for Godot comments
Difficult to tell without looking at the project. Possible issue could be that the modulate value got changed, or project settings changed which affect all things displayed in the project. Most of the time if the test room works and it works slightly different in a project, it’s due to the project settings or scene which it is in. You could ty creating an empty scene to see if the same effect is happening or not.
I found the Issue or Claude did xD.
- In Compatibility mode:
canvas_itemshaderCOLORoutput is treated as sRGB (gamma-encoded). Video YUV→RGB math produces sRGB values → correct. - In Forward+ mode:
canvas_itemshaderCOLORoutput is treated as linear color, then the engine automatically applies sRGB conversion for display. So the already-gamma-encoded video values get gamma-corrected a second time → everything becomes too bright/washed out. Theviewport/hdr_2d=truein your project settings makes this worse.
The fix is: in Forward+ mode, linearize the RGB values before writing to COLOR (undoing the video's built-in gamma), so the engine's automatic conversion brings them back to the correct sRGB result on screen. I'll add a linearize_output uniform controlled by GDScript.
This fixed it for me. Maybe it will lead you to the core fix :)