I building an app that requires the following functionality:
What would be the most efficient way to split an AVMutableComposition and export it as multiple smaller compositions?
I've come up with the below solutions however none of them seem to be particularly efficient:
Before going ahead and implementing one of the above solutions, I want to confirm that there's no straightforward method of splitting AVMutableCompositions that I'm missing.
The most efficient way is to not split the composition at all. Instead use
the timeRange
property of AVAssetExportSession
, or
startSessionAtSourceTime
and endSessionAtSourceTime
when writing with AVAssetWriter