I am trying to compress video taken with the users camera from UIImagePickerController (Not an existing video but one on the fly) to upload to my server and take a small amo
Here is the code with compatible with Swift 4.0 Compress video size before attach to an email in swift You can also track the progress of video compression