Skip to content

Fix tiny 1080p video output caused by capped media metadata#6012

Open
ErbolTakhirov wants to merge 2 commits into
OpenShot:developfrom
ErbolTakhirov:fix-my-feature
Open

Fix tiny 1080p video output caused by capped media metadata#6012
ErbolTakhirov wants to merge 2 commits into
OpenShot:developfrom
ErbolTakhirov:fix-my-feature

Conversation

@ErbolTakhirov
Copy link
Copy Markdown

What changed:

  • Removed the metadata inspection decode-size cap so imported 1080p videos keep their real dimensions instead of preview-sized values like 128x72.
  • Added a project-load repair step for projects that were already affected by this issue.
  • Updated tests to cover metadata import and repairing linked clip readers.
    Why:

In daily builds, some imported FHD videos could be stored with tiny dimensions.
When exporting as FHD 29.97 fps, those clips could appear very small inside the final 1920x1080 frame.
Keeping real source dimensions prevents incorrect scaling during export.
How to test:

Import a 1920x1080 video.
Confirm the imported file properties show 1920x1080.
Export using YouTube HD / FHD 1080p 29.97 fps.
Open the exported video and confirm it fills the 1080p frame correctly.
Optional: open an older affected project and confirm the same clip is repaired and exports at the correct size.

Checks
Ran Python syntax checks with py_compile.
Full unit tests could not be run in this environment because no Qt binding is installed (PyQt6, PySide6, or PyQt5).

…tiny preview dimensions caused by SetMaxDecodeSize.

Added a project-load repair step for already affected projects: OpenShot re-reads suspiciously small video files and updates the real dimensions on the file and linked clips. Updated tests for both cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant