Search code examples
compressionimage-compression

Is there a way to split an image/video file into parts and compress certain parts?


I am working on an app and we are uploading a small file to figure out the users connection and based off that we are compressing the video/image files so they upload quickly. Is there a way to upload part of a video or image file and compress the other parts of it more than the first part of the file?


Solution

  • Bitrate (translates directly to file size) is a very flexible parameter that you can use when compressing video.

    By flexible, I mean that this can be changed continuously or at any time when compressing video, which means, different parts of the video can be compressed to require higher or lower bandwidth - this also has a proportional consequence on the quality of video.

    So whatever tool you are currently using for compressing video, please explore the bitrate setting options it provides and try to play with it depending on your available bandwidth. Hope this helps.