Similar to images, there is a tradeoff between visual quality and file sizes. However, it is possible to compress a video file without any loss in perceptual visual quality.
ImageKit.io allows you to choose a quality level between
1 results in the lowest perceptual quality and smallest file size.
100 results in the highest perceptual quality and biggest file size.
Video quality optimization is turned on by default. You can disable it for the whole account. Select settings from the left main menu. Inside Videos, under optimization, toggle "optimize video quality" control.
By default, ImageKit sets the video quality to 50. You can change this.
Select settings from the left main menu. Inside Videos, under optimization, select the default quality level.
q parameter to override default quality settings.
For example, a video file served in
q-20 is 397KB in size and has relatively low perceptual quality compared to a
q-90 which is around 7.6MB.