I've seen everywhere how to achieve the goal of the title but for images. I was just wondering how I'd do the same with videos? I'm making an app that only involves uploading videos of maximum 30 seconds, not images (apart from the users profile picture) and I need some way of:
- Resizing the video so all videos have the same resolution and size on all iPhones
- Compressing the video so if someone uploads a full 30 second clip in 4K then it won't take my whole storage bucket.
- Limit each video to 50MB in size but always prefer to keep HD quality.
How would I do this?
Thanks, Nathan