Spatial video export fails with AVAssetExportSession

We captured a spatial video with iPhone 15 pro. When we try to export the video with AVAssetExportSession and AVAssetExportPresetMVHEVC960x960 it always go failed state and exportSession.error?.localizedDescription yield "Operation Stopped" error. Code implementation is straight forward .. other HEVC file works well.This problem occurred with only mv-hevc file.

func exportSpatialVideo(videoFilePath: String, outputUrl: URL){

    let url:URL? = URL(fileURLWithPath: videoFilePath)
    let asset: AVAsset = AVAsset(url:url!)
    print(asset.description)
    print(asset.tracks.first?.mediaType.rawValue)  
    
    let preset = "AVAssetExportPresetMVHEVC960x960"

    let exportSession:AVAssetExportSession = AVAssetExportSession(asset: asset, presetName: preset)!
    
    exportSession.outputURL = outputUrl
    exportSession.shouldOptimizeForNetworkUse = true
    exportSession.outputFileType = AVFileType.mov
    
    exportSession.exportAsynchronously(completionHandler: {
        switch exportSession.status {
        case .unknown:
           
                print("Unknown Error")
   
        case .waiting:
           
                print( "waiting ... ")
 
        case .exporting:
 
                print( "exporting ...")

        case .completed:
            print( "completed.")
          
        case .failed:
            print("failed.\(String(describing: exportSession.error?.localizedDescription))")
        case .cancelled:
           
        }
    })
}

is there any solution for it ?

Hi how are you doing? have you found the solution ? I am in a similar situation. SDAVAssetExportSession is what i am using in my app, and it just encounters error with spatial videos. I have no idea how to config the audioSettings.

Spatial video export fails with AVAssetExportSession
 
 
Q