element-hq / element-hq/element-android
video compression crops the videos to 16:9 aspect ratio
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- Avg merge
- 8d 20h
- Merged PRs (30d)
- 1
Description
### Steps to reproduce
1. take any video that is.. 1:1 aspect ratio? Not sure what triggers it exactly, I have supplied a video.
2. it'll crop it to 16:9 aspect ratio when uploading, which loses all of the content above and below
If the video is more vertical, it doesn't happen.. but it seems it doesn't like 1:1
not compressed raw video:

video that ran through element's compression:

this is also unrelated to H.264 or mp4, as it does it with vp8 and webm as well
### Outcome
#### What did you expect?
not to lose the data of the video
#### What happened instead?
lost data
https://user-images.githubusercontent.com/50514477/151889653-a610aef8-1b81-4064-acf0-77766555c1bb.mp4
### Your phone model
_No response_
### Operating system version
_No response_
### Application version and app store
_No response_
### Homeserver
_No response_
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.