I've built an app that uploads videos from the iPhone (uses the ALAsset libs, not the built in photo/video pickers, for selection) to my web server which then compresses/encodes them. This works great, but files get big very quickly with longer videos. Is there a standardized way to compress/downsize these videos right on the device before I handle the uploading? Is it worth the CPU hit? Does the AV Framework support this? Or do I have to use something along the lines of ffmpeg? I'm looking to go from 1280 x 720 to about 516 x 290. I could save a lot of bandwidth by handling this on the device first, just not sure of my options despite a lot of searching.
Compressing/Resizing ALAsset video on the iPhone before uploading
1.7k views Asked by m1neral At
1
There are 1 answers
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IOS4
- both flutter build ios fails and xcode build fails with weird error
- How to change elements positioning in landscape mode?
- TableView ReparatorInset Width - Swift 4 Without Storyboard
- Receiving error when trying to dismiss picker
- in switch case i want to print nslog as per my requirement?
- how to send the dictionary data from one view controller to another view controller using segues?
- MFMailComposeViewController not working for me in old iOS code since iOS 9 runtime
- How to fix missing required architecture i386 in file?
- The main thread locked when fetching images from parse with semaphore
- Parse for iOS - Undefined symbols for architecture i386 - iPhone 4s, iPhone 5
- Xcode 6 duplicate symbols for architecture armv7
- Any issues in updating iOS 4 app to iOS 8?
- Integration of vine in iphone apps?
- ffmpeg is failing to convert mov files from iPhone 4
- Cannot View contents in ios 7 pickerview
Related Questions in ALASSET
- How to access smart folder from gallery using ALAsset
- Understanding Old ALAsset Code
- How to save a video to the camera roll and get the asset URL?
- use CLLocation to get an address book contact Xcode
- getting ALAssets from photos library iOS
- PHIMageManager requestImageDataForAsset:options:resultHandler: does not take into account orientation
- How to save images inside app
- iOS:After I taken photo use my iphone camera,how to get the picture counter-ALAsset?
- xamarin iOS alasset fullresolution image with filter
- ALAsset library in iOS
- How to access original image after applying filter on image using ALAsset library ?
- How to convert a video NSURL to an ALAsset?
- What is the difference between ALAsset and PHAsset?
- How to convert ALAsset to NSData in Swift?
- Whatsapp not picking the video from the assetURL in UIActivityViewController
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Take a look at AVAssetExportSession and it's methods. Then use the preset AVAssetExportPreset640x480 or one of the other presets to resize from 1280x720 to something smaller. A custom size (like 516x290) is at the moment not possible with AVAssetExportSession.
Cheers,
Hendrik