AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

The color of video change after compressing #53

Open nguyenxuankiet262 opened 6 months ago

nguyenxuankiet262 commented 6 months ago

I face this issue after compressing video then put it in video player, the color of video changed (Please check image_2) The color of video saved in my album device is still okay (Please check image_1) I don't know this issue belong to light_compressor or video_player library I used to try to use another library video_compress and the color video was correct

This is my code

var response = await _lightCompressor.compressVideo(
    path: path,
    videoQuality: VideoQuality.very_high,
    video: Video(videoName: "${DateTime.now().millisecondsSinceEpoch}"),
    isMinBitrateCheckEnabled: false,
    android: AndroidConfig(isSharedStorage: false),
    ios: IOSConfig(saveInGallery: true),
  );

Btw this is very good library. image_1 image_2