Skip to content

VideoCompress cannot properly handle vertical (portrait) videos — results in half black screen or wrong aspect ratio #315

@isonz

Description

@isonz

Describe the bug
When compressing a portrait (vertical) video — for example, a video extracted from an iPhone Live Photo — the output is incorrectly rendered.
The right half of the video shows the actual content, while the left half is black.
This happens even though the original video plays fine in native iOS or macOS viewers.

To Reproduce
Steps to reproduce the behavior:

  1. Take a Live Photo or a vertical video on iPhone.
  2. Extract the .mov or .mp4 file.
  3. Compress it with:
    MediaInfo? info = await VideoCompress.compressVideo(
      file.path,
      quality: VideoQuality.DefaultQuality,
      deleteOrigin: false,
    );
    
202510102132HAx8BR.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions