Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CIOPinal opened this issue Aug 28, 2018 · 9 comments

Comments

@CIOPinal
Copy link

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

@tomisacat
Copy link
Owner

You mean select from photo library and compress?

@CIOPinal
Copy link
Author

yes

@tomisacat
Copy link
Owner

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

@CIOPinal
Copy link
Author

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

@CIOPinal
Copy link
Author

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

@tomisacat
Copy link
Owner

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

@CIOPinal
Copy link
Author

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
Copy link
Author

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

@CIOPinal
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants