can you help me with this issue app crash while compressing picked video from imagepicker and app goes to background.
can you share demo app of it in which we would be able to select video instead of capturing it from camera.
You mean select from photo library and compress?
yes
You don't have to do that, the video from library has already been compressed
i need to resize video width and height and don't want to use default compression. want to compress video using VideoToolbox .
also need to change AVVideoAverageBitRateKey aka bitrate to further reduce size of video.
Use AVAssetExportSession is a more simple way, you just have to adjust videoComposition settings
i have tried https://github.com/NextLevel/NextLevelSessionExporter. but my problem is when i minimize app when compression is going on and open app again after 8 to 12 seconds it crashes in ipad.
so i am looking for alternative. so i thought i should try VideoToolBox.
if you have demo app that allow me to change AVVideoAverageBitRateKey and height and width of video it would be really helpful..