VideoToolboxCompression icon indicating copy to clipboard operation
VideoToolboxCompression copied to clipboard

can you help me with this issue app crash while compressing picked video from imagepicker and app goes to background.

Open CIOPinal opened this issue 7 years ago • 9 comments

can you share demo app of it in which we would be able to select video instead of capturing it from camera.

CIOPinal avatar Aug 28 '18 09:08 CIOPinal

You mean select from photo library and compress?

tomisacat avatar Aug 29 '18 06:08 tomisacat

yes

CIOPinal avatar Aug 29 '18 08:08 CIOPinal

You don't have to do that, the video from library has already been compressed

tomisacat avatar Aug 30 '18 07:08 tomisacat

i need to resize video width and height and don't want to use default compression. want to compress video using VideoToolbox .

CIOPinal avatar Aug 30 '18 07:08 CIOPinal

also need to change AVVideoAverageBitRateKey aka bitrate to further reduce size of video.

CIOPinal avatar Aug 30 '18 07:08 CIOPinal

Use AVAssetExportSession is a more simple way, you just have to adjust videoComposition settings

tomisacat avatar Aug 31 '18 09:08 tomisacat

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.

CIOPinal avatar Aug 31 '18 09:08 CIOPinal

so i am looking for alternative. so i thought i should try VideoToolBox.

CIOPinal avatar Aug 31 '18 10:08 CIOPinal

if you have demo app that allow me to change AVVideoAverageBitRateKey and height and width of video it would be really helpful..

CIOPinal avatar Aug 31 '18 10:08 CIOPinal