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
1results in the lowest perceptual quality and smallest file size.
100results in the highest perceptual quality and biggest file size.
Choosing 100 quality will not improve an already low-quality video. However, it will increase the size of the video file. It is recommended to not use a 100 quality setting.
Video quality optimization is off by default. You can enable or disable it for your account under video settings in your dashboard.
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.
Video default quality settings
qparameter to override default quality settings.
For example, a video file served in
q-20is 397KB in size and has relatively low perceptual quality compared to a
q-90which is around 7.6MB.