I found that you can replace AVAssetExportSession
with SDAVAssetExportSession
. You can then specify audio settings as you would for the AVAssetWriter
while leveraging the benefits of the AVAssetExportSession
.
I had to change __weak typeof(self) wself = self;
to __weak SDAVAssetExportSession * wself = self;
on line 172 of SDAVAssetExportSession.m
.