I am working on an application where users can upload videos to our server. They can select videos from their gallery, so I would like to reduce them before uploading.
I would like to know if there is any way to reduce the video file size with Flutter/ Dart. Thanks.
Update: since my original answer, there's another package https://pub.dev/packages/flutter_video_compress with friendlier API
https://pub.dartlang.org/packages/flutter_ffmpeg is pretty good, and has well-documented instruction
Check the
rccode, and if it's successful, openfile2.mp4, which is the compressed/processed file.