Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a file height and width before copressing #5

Open
ramkurup opened this issue Jun 5, 2022 · 1 comment
Open

How to get a file height and width before copressing #5

ramkurup opened this issue Jun 5, 2022 · 1 comment

Comments

@ramkurup
Copy link

ramkurup commented Jun 5, 2022

I was extremely happy to use IVCompressor for compressing images. However, I've had some trouble with the video compressing. The video height and width based on the resolutions are changing drastically. Is there a way I can read the current video height and width and use the same to calculate a custom resolution?

@govind2517
Copy link

Using IVCompressor we can't get original video width and height, so to make things work I have used video metadata.
Before processing video take its metadata and extract width and height.
Or if we can get video first frame somehow, then we can use that frame (image) to get width and height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants