Search code examples
objective-caudiofile-typeavassetexportsession

Objective-C AVAssetExportSession only audio


How can I use AVAssetExportSession to only export audio to, let's say, an *.aif or an *.mp3 file? Whenever I try providing anything other than @"com.apple.quicktime-movie" for the outputFileType-property, it crashes.


Solution

  • It is probably because .mp3 is not a supported export file type