lalongooo / video-compressor

Video compressor based in the Telegram for Android app source code.
GNU General Public License v2.0
262 stars 88 forks source link

some video's width and height are wrong after compressed #23

Closed kingty closed 3 years ago

kingty commented 8 years ago

i don't know why

lalongooo commented 8 years ago

What API version are you testing against?

yanglufei commented 5 years ago

The width and height of the original video is written backwards

yanglufei commented 5 years ago

Write the inverse

SimranChawla1995 commented 5 years ago

Writing inverse in original width & height is also not resulting in correct video resolution after compression. Have you found out its solution ?? Please help.

SimranChawla1995 commented 5 years ago

I've tested its compression using telegram app. It's giving correct result there. Check the screenshots. screenshot_20190117-115522 - via telegram

screenshot_20190117-115534 - via this library code. @lalongooo please show some light on this issue.

SimranChawla1995 commented 5 years ago

I've developed a workaround for this by changing result height and width with respect to original height and width. I'm not sure if telegram doing the same.

DearDhruv commented 4 years ago

I've developed a workaround for this by changing result height and width with respect to original height and width. I'm not sure if telegram doing the same.

Hello @SimranChawla1995, Can you help how did you overcome the rotation issue?