Skip to content

Embed game mode can break movie maker mode #107316

Open
@berarma

Description

@berarma

Tested versions

  • Reproducible in: 4.5dev5

System information

Debian GNU/Linux 12.10

Issue description

Running a project in embed mode at a different resolution than defined in the project, produces AVI files with incorrect resolution and aspect ratio. It also breaks #107188.

The problem is that in embed mode, the initialization of MovieWriter sometimes receives the project viewport size, and sometimes the embedded viewport size. But the frames sent have always the embedded viewport size.

Another related issue is that the embedded resolution may have odd dimension values, and #107188 requires even dimension values that are far more common when rendering. I'm not sure about the other video formats.

I think MovieWriter should record in the viewport size from the project settings and those problems would be solved. Or if that's not possible, add some measures to work around the issue or at least warn about it.

There was a similar error, same effect, different cause, that was reported in the forum and #71254.

Steps to reproduce

  • Open any project.
  • Make the viewport size in the Project Settings big enoough so that it has to be scaled down to fit the embedded window.
  • Enable Movie Maker mode.
  • Run the project.
  • Check the resulting video.

This might take several tries because it doesn't always happen. In my case it happens like 4 out of 5 times. It looks like a race condition between the embedded process and the MovieWriter initialization.

Minimal reproduction project (MRP)

Any project. The viewport has to be big enough to not fit the embedded window.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions