element-hq / element-hq/element-android

video compression crops the videos to 16:9 aspect ratio

Open
#5,113 8 comments 1 reaction 0 assignees View on GitHub
A-VideoCompression T-Defect X-Needs-Investigation X-Needs-Product Z-WTF
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:
![1](https://user-images.githubusercontent.com/50514477/151889819-03ca6f4c-b966-4ccd-86a8-b84880f51fa7.jpg)
video that ran through element's compression:
![1](https://user-images.githubusercontent.com/50514477/151889842-2c831098-9420-453c-a499-0dff5326b165.jpg)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.