2014-02-15 37 views
1

朋友即時嘗試從.mov導出.aif在我的應用程序中使用下面的代碼。文件正在導出correclty。但是文件格式類型是AAC。那麼你能告訴我如何在可可應用程序中導出aif格式。但文件僅保存.aif文件。但它只顯示AAC。我想要AIFF格式。從可可應用程序中的.mov導出音頻(aiff)文件格式

顯示每個樣本的位是沒有在該導出文件。但我手動導出mov到m4a格式從quciktime player.After我m4a出口到aiff出口從itune。格式或者是correctly.Please電話:我在哪裏,我已經失去了錯誤

[manager createDirectoryAtPath:outputURL withIntermediateDirectories:YES attributes:nil error:nil]; 
    outputURL = [outputURL stringByAppendingPathComponent:@"output.aif"]; 

    //Remove Existing File 
    [manager removeItemAtPath:outputURL error:nil]; 

    AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPresetAppleM4A]; 
    exportSession.outputURL = [NSURL fileURLWithPath:outputURL]; // output path; 
    exportSession.outputFileType = AVFileTypeAppleM4A; 
    exportSession.shouldOptimizeForNetworkUse = YES; 
+0

您需要將mov中使用的音頻格式轉換爲aiff。 – Volker

+0

@volker你能推薦一些代碼來檢查嗎? –

回答

0

我卻有點晚了,萬一...... AVFileTypeAIFF代替AVFileTypeAppleM4A;

相關問題