jonataslaw / jonataslaw/VideoCompress

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

Open
#315 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
262
Forks
344
PR merge metrics
No merged PRs in 30d

Description

**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:
```dart
MediaInfo? info = await VideoCompress.compressVideo(
file.path,
quality: VideoQuality.DefaultQuality,
deleteOrigin: false,
);

https://github.com/user-attachments/assets/206bec6a-7794-44ad-8621-640d08f38469

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.