i want to "compress" videos (for upload) in Xamarin (iOS). I found out about the AVAssetWriter Class and i red that you could set the resolution, bitrate etc. How would you use it? Which other classes? As you may already noticed, im very new to app development.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- How to create a MediaClip from RenderTargetBitmap
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- Safari blocks play() on video despite being called
- How do you detect key up / key down events from a
Here is a sample using AVAssetReader to feed AVAssetWriter to re-sample and/or transcode a video.
In this example, I am taking a video named "Pool.mp4" that was included in app bundle (BundleResource) and saving into the "tmp" directory as "NewVideo.mp4" at a size of 300x300 at 1Mbps (reducing the original file size by ~50%...)
Note: No return values or error codes are being checked, that is left up to the implementor.