I) Before merging, we take the videos URLs(static videos or camera captured videos) from array, and store them into assets.
II) In the processing of storing the URLs into assets,
1) First, we take the first URL into 'firstVideoAsset', after that we take second URL into 'secondVideoAsset'. Then merge the two videos and store the merged URL into again 'firstVideoAsset'.
2) After that, take the take third URL into 'secondVideoAsset'. Them merge the two videos. Same process will go on until the loop ends.
3) Send the final merged URL into MPMoviePlayerController to play the 'preview' of the merged video.
Orientation issue:-
1) While in the merging process, if we capture the video in 'landscape' orientation(i.e. LandscapeLeft), the captured video after merging, is coming in 'Upside-down' mode(i.e. reverse of captured video).
2) The sizes of all the videos(static or camera captured) are not coming in same size after merging.
3) If we capture the video using front camera, after merging all, the captured videos are coming in upside down.
Need help from your side:-
1) Before merging, if we capture the videos in any orientation mode, they have to come in only one orientation(i.e. LandscapeLeft or LandscapeRight) mode after merging.
2) After merging all the videos, the sizes(height and width) of all the videos(static or camera captured) in any orientation mode, should come in same sizes.
3) While using front camera, if we capture the video in Landscape left mode, after merging all the videos, the captured videos will come correct mode. But, when capture the video in Landscape right mode, the captured videos after merging all the videos will come in Upside down.(i.e. Reverse of original captured video).
4) While using back camera, if we capture the video in Landscape left mode, after merging all the videos, the captured videos will come in Upside down.(i.e. Reverse of original captured video) . But, when capture the video in Landscape right mode, the captured videos after merging all the videos will come in correct mode.