Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Video Compression failed when "keepOriginalResolution = true" #170

Open
AbdullahJaved-dev opened this issue Aug 31, 2023 · 2 comments
Open
Labels
Fixed Will be in the next release

Comments

@AbdullahJaved-dev
Copy link

I am trying to compress a high-resolution video of size 602 MB. Still, onSuccess callback is invoked without invoking onProgress, and a video file with a 24kb size is created at the destination location. On debugging it came to know that there's an issue at prepareEncoder(outputFormat: MediaFormat, hasQTI: Boolean). Below is the configuration I'm using for compressing.

Configuration(
    videoNames = listOf("Video_${System.currentTimeMillis()}"),
    quality = VideoQuality.MEDIUM,
    isMinBitrateCheckEnabled = true,
    videoBitrateInMbps = 3,
    disableAudio = false,
    keepOriginalResolution = true
)

Video Info:
Size = 602 MB
Resolution = 3840 x 2160
Length = 02 minutes 14 seconds

Device: Pixel 5a

@AbedElazizShe
Copy link
Owner

Thank you @AbdullahJaved-dev , I believe I found the issue and fixed it. Will release a new version soon.
The library was build for short videos use cases a few years ago, never imagined it will be used for high quality video :D I need to work on improving the speed of compression especially for long videos. It is quite slow now

@AbedElazizShe AbedElazizShe added the Fixed Will be in the next release label Sep 27, 2023
@albyrock87
Copy link

@AbedElazizShe I'm still facing this issue with LightComrpessor 1.3.2, when is this fix going to be released?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fixed Will be in the next release
Projects
None yet
Development

No branches or pull requests

3 participants