Recording ProRes RAW on iPhone 17 Pro with AVAssetWriter

When trying to record ProRes RAW (btp2) with AVAssetWriter I get several types of errors: -12780 or -11875.

I wonder if recording ProRes RAW can only be done through AVCaptureMovieFileOutput, or if there a way to correctly configure AVAssetWriter to do it.

Recording ProRes RAW on iPhone 17 Pro with AVAssetWriter
 
 
Q