AVAssetExportSession or AVVideoCompositing issue

Hi


I'm running in to a small issue where my custom AVVideoCompositing can't be used on already exported videos from our app. The issue I've found is that when the audio track is the first track in the asset the custom AVVideoCompositing fails to get a frame buffer and sourceTrackIds for the AVAsynchronousVideoCompositionRequest is empty.


When playing the composition direcltly it works but the track reorder seems to happen at export time. The best solution would to make the custom AVVideoCompositing handle any track order but I can't get this to work?


Any one have tips for either fixing the order at export or support better AVVideoCompositing?

Replies

I've just tried the sample project AVCustomEdit and it seems like this also exports movies with the audio track as stream 0 or first track.


Would love to make our custom compositor to work when the audio track is the first track.