jonataslaw / VideoCompress

Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.
MIT License
229 stars 276 forks source link

when i use `VideoQuality.MediumQuality` always get relative low quality, but file size is not changed much, the video' with and height is decrease absolutely; when use `VideoQuality`, although i got the more hight quality, file size is more large than source video's size i want to get the close same quality, but have more little size #166

Open libaoxu opened 2 years ago

libaoxu commented 2 years ago

when i use VideoQuality.MediumQuality always get relative low quality, but file size is not changed much, the video' with and height is decrease absolutely; when use VideoQuality, although i got the more hight quality, file size is more large than source video's size i want to get the close same quality, but have more little size

final MediaInfo? info = await VideoCompress.compressVideo(
      file.path,
      quality: VideoQuality.MediumQuality,
      deleteOrigin: false,
      includeAudio: true,
    );
jpetro416 commented 2 years ago

I noticed 480p quality is fine and the file size is lower, although still not as low as I'd like... I wish they had bitrate options...


   MediaInfo? info = await VideoCompress.compressVideo(file.path,
                quality: VideoQuality.Res640x480Quality,
                deleteOrigin: false,
                includeAudio: true,
                frameRate: 24
          );