Skip to content

Video playback corruption depending on video dimensions #15942

Description

@gm-bug-reporter

Description

Video playback seems to be broken when a video not fitting "standard" dimensions is played. It results in a diagonally stretched/wrapping picture with misaligned YUV channels.

This might only be an issue on Linux/with YUV videos, as I'm unable to test on another platform at the moment, however, any video that had non-standard dimensions would end up broken the same way.

For instance, a 16:9 video with dimensions 480x270 will get displayed in a corrupted fashion.

As an aside, videos without audio tracks would refuse to start playing. I assume this is the expected behaviour (even if unspecified in the documentation), so I haven't created a ticket for it.

Steps To Reproduce

note regarding command arguments : "-f lavfi -i anullsrc [...] -shortest" inserts an empty audio track in the video file to allow playback in GMS. "-loop 1" is necessary for the image to get displayed.

  • load and draw the video by adding it to the included files folder and building the game

if done correctly, the image will be stretched diagonally and the YUV channels will be misaligned. The 638x378 resolution was chosen as it's very close to a common aspect ratio (4:3 480p), which makes it easier to see the display corruption.

Which version of GameMaker are you reporting this issue for?

IDE v2026.0.0.16 Runtime v2026.0.0.23

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

Linux Debian GNU/Linux 13 (trixie) kernel 6.12.107.13

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

Ubuntu

Attached Files

  • myimage.png
  • video.mp4

34ecc455-1130-4455-8bcf-511440bad935

Activity

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

    gms2-bugIn-game bugs with the "GameMaker Studio 2" runtimesprojectThis issue has a sample project attached

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions