jonataslaw / jonataslaw/VideoCompress
VideoCompress cannot properly handle vertical (portrait) videos — results in half black screen or wrong aspect ratio
- 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.