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

Keep the video resolution (dimensions) #42

Closed
jpiabrantes opened this issue Sep 23, 2020 · 4 comments
Closed

Keep the video resolution (dimensions) #42

jpiabrantes opened this issue Sep 23, 2020 · 4 comments

Comments

@jpiabrantes
Copy link

jpiabrantes commented Sep 23, 2020

Is there a way to keep the video dimensions? I want to compress a video not change its dimensions.

@jonataslaw
Copy link
Owner

Compression is literally the reduction of frames per second and frame size.
So this is not possible

@jpiabrantes
Copy link
Author

Compression is literally the reduction of frames per second and frame size.
So this is not possible

It is not. See Wikipedia they talk about lossless, lossy, machine learning, image differencing, inter-frame compression, but not about reduction of fps or frame size. That is not compression, you are not compressing anything, just throwing data out.

@jonataslaw
Copy link
Owner

Apple has pre-defined compression models.

AVAssetExportPresetLowQuality
AVAssetExportPresetMediumQuality
AVAssetExportPresetHighQuality

Perhaps if the concept of native compression is not enough for you, you need to create your own algorithm for this.
We simply use what the native code (and standard recommendations) offers us.

@jpiabrantes
Copy link
Author

jpiabrantes commented Sep 23, 2020 via email

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