SiliCompressor
SiliCompressor copied to clipboard
How to control compression level to keep quality?
The compression affects quality too much, is there any way to select compression level to preserve video quality?
I am also looking forward to be able to select the compression level to improve the quality. They talked about an update where this parameter could be modified :)
you can get the width and height of video using
val retriever = MediaMetadataRetriever() retriever.setDataSource("path of your video file")
val width = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH))
val height = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT))
and you can give it the bit rate as 2160000
filePath = SiliCompressor.with(mContext).compressVideo("source", "destination",width,height,2160000)
you can change in quality using bit rate
这个比特率项目中默认是450000,那它是按照什么规律来计算呢?
@MahmoudAbdelaalMahmoud Can give me the bitrate chart by quality level
@MahmoudAbdelaalMahmoud Can give me the bitrate chart by quality level
There is no such chart which will define a quality of the video. Its all just trial and error