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

merge 15 to 20 images #4

Open
parvendraintigate opened this issue Apr 27, 2018 · 5 comments
Open

merge 15 to 20 images #4

parvendraintigate opened this issue Apr 27, 2018 · 5 comments

Comments

@parvendraintigate
Copy link

i have used MergeVideos library making 15 to 20 images from video but issue come

Domain = AVFoundationErrorDomain Code=-11839 "Cannot Decode" UserInfo={NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x10e16d6c0 {Error Domain=NSOSStatusErrorDomain Code=-12913 "(null)"}, NSLocalizedRecoverySuggestion=Stop any other actions that decode media and try again., NSLocalizedFailureReason=The decoder required for this media is busy.}

@harjeetk
Copy link

Hey @parvendraintigate did you find any solution for this? I also faced the same issue on my side.

@harjeetk
Copy link

I have test it takes maximum 16 images to merge so you can create the different video of different images set and them merge according to them.

@parvendraintigate
Copy link
Author

But have to make final video of more than 16 selected images and video to combine at a time

@swami303
Copy link

swami303 commented Jun 2, 2018

Finally I found out the cause and was my bad! The problem was that I was looping through AVMutableCompositionTrack. So that each video was on a different track and probably that caused a lack of resources. Right now I created only 2 tracks: 1 for video and 1 for audio. All my videos are stitched with time ranges.

Just put this following code top of the loop

let videoCompositionTrack = mixComposition.addMutableTrack(withMediaType: AVMediaType.video,
preferredTrackID: Int32(kCMPersistentTrackID_Invalid))

@qiter
Copy link

qiter commented Nov 14, 2018

thx @swami303 .
I'm very happy find your answer! thx so much!
I megra so many image about 120 ---200.....no probolem!

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

4 participants