YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

[Video playback] Video player's colors are off from file version #6573

Open gm-bug-reporter[bot] opened 3 months ago

gm-bug-reporter[bot] commented 3 months ago

Description

When trying to play videos through the video player, everything seems to be fine but the colors are different from what I expected, oranges were really yellow while blues were darker. Images provided shows the expected version in image2 and the gamemaker version in image.

Here's other dev reporting the same issue: https://forum.gamemaker.io/index.php?threads/video-playback-colour-issue.105379/

Steps To Reproduce

Play the video (Included Files) inside GameMaker and in an external video player. Compare the colors differences. I've reproduced this on Windows 11, Android and macOS.

Which version of GameMaker are you reporting this issue for?

IDE v2024.6.0.157 Runtime v2024.6.0.205

Which operating system(s) are you seeing the problem on?

Windows 10.0.22621.0

Which platform(s) are you seeing the problem on?

Android, macOS, Windows

f0d3bc10-f835-4863-83ab-53c5ce53b626

4321louis commented 2 months ago

gamemaker colour distortion in mp4 An example may be helpful, here's the same png as an asset/sprite vs played as a video after conversion to mp4

nicholaskraak commented 1 month ago

Yep, this is a serious problem. Here's a colour bars comparison. The first file is the original and the second is how GameMaker is rendering.

This is made with the most vanilla export humanly possible: 1080p h264 mp4 from Premiere with all standard settings.

BarsOriginal BarsGameMaker

chubigans commented 1 month ago

Can confirm this issue, I'm hoping it's a simple enough fix to get this out of the backlog- I can also confirm the video works great in YUV formats on console, it's just the RGB playback that's bugged.

4321louis commented 1 month ago

As a temporary fix for my stuff, I figured out the colour change that is being done and we have exported our video with another filter that reverses it. Ive put the equations for the rgb values here . They aren't exactly correct but generally they are close enough, this wont work for values that go out of the 0-255 range as well.

Hopefully it is useful for others