element-hq / element-hq/element-android
Uploading video of non-standard aspect ratio cause compression algorithm to fallback to 16:9 aspect ratio
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
### Steps to reproduce
1. Upload a video file with aspect ratio other to 16:9 or 9:16 (tested with 1:1) to non-e2e-encrypted channel with "Send video with the original size" not ticked.

2. Play the video on any other client or directly on the server.

[Original video](https://ddl.fatildaiv.cyou/lpsoldiers_-14-11-2023-0001.mp4)
[Uploaded video](https://github.com/vector-im/element-android/assets/30930670/3552b9c3-4b39-4ae5-ad70-15b42066ac74)
### Outcome
#### What did you expect?
Video not to be cropped after compression.
#### What happened instead?
Video has been cropped after compression, losing information.
Log report filed with same name as this issue.
### Your phone model
Samsung SM-S908B/DS
### Operating system version
Android 13
### Application version and app store
Element 1.6.6 [40106062] (G-4fa634a2) from Google Play Store
### Homeserver
Synapse 1.95.1 (2023-10-31)
### Will you send logs?
Yes
### Are you willing to provide a PR?
No
Contributor guide
Assessment
This issue has not been assessed yet.