I want to export a movie with AVAssetWriter
and can\'t figure out how to include video and audio tracks in sync. Exporting only video works fine, but when I add aud
It seams that assetWriterAudioInput ignores sample buffer time for audio writing. Do this way.
1) Write video track.
2) When done, mark it finished i.e. [videoWriterInput markAsFinished];
3) do [assetWriter startSessionAtSourceTime:timeRangeStart];
3) instantiate audio reader and start writing audio.