Video compression is pretty expensive and is always lossy. I doubt this will be feasible at scale for video, and might not have desirable outcomes for users when they see obvious degradation in the quality.
Might be possible for static images, but the benefits are fairly limited at that point.
RexSystem2 votesoriginally by @Palloxin on GitHub OP1 reply
That's why it should be a user preference. The expensive part is just users using their hardware to compress it. Although it is lossy, in very very few occasions I needed the video precision to show text inside videos. The length of the compression process cannot be that much since max file size is 25mb.
If the user has plutonium, I dont think they need compression at all
Client side compression means having to account for GPU accelerated encoder availability
If the goal is to perform CPU encoding to avoid that problem, there is still an issue of deciding which codec to use that can balance processing cost and quality
The simple answer for quality output at a lower bitrate is AV1, but pretending SVT-AV1 is the encoder of choice, a short 4K video with a lower bitrate could still be a very slow process, especially depending on the CPU and available RAM (as it multithreads by default)
That said, I do think a feature that automatically prompts to offer client side compression if a video file is too large to fit within the user's quota would be nice.
Thread
Comment by Fullest
Comment by @Palloxin
Comment by _
- Client side compression means having to account for GPU accelerated encoder availability
- If the goal is to perform CPU encoding to avoid that problem, there is still an issue of deciding which codec to use that can balance processing cost and quality
- The simple answer for quality output at a lower bitrate is AV1, but pretending SVT-AV1 is the encoder of choice, a short 4K video with a lower bitrate could still be a very slow process, especially depending on the CPU and available RAM (as it multithreads by default)
That said, I do think a feature that automatically prompts to offer client side compression if a video file is too large to fit within the user's quota would be nice.