<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingLivePhotoToMovieFileAt:duration:photoDisplayTime:resolvedSettings:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVCapturePhotoCaptureDelegate(im)captureOutput:didFinishProcessingLivePhotoToMovieFileAtURL:duration:photoDisplayTime:resolvedSettings:error:"
  },
  "title" : "photoOutput(_:didFinishProcessingLivePhotoToMovieFileAt:duration:photoDisplayTime:resolvedSettings:error:)"
}
-->

# photoOutput(_:didFinishProcessingLivePhotoToMovieFileAt:duration:photoDisplayTime:resolvedSettings:error:)

Provides the delegate the movie file URL resulting from a Live Photo capture.

```
optional func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingLivePhotoToMovieFileAt outputFileURL: URL, duration: CMTime, photoDisplayTime: CMTime, resolvedSettings: AVCaptureResolvedPhotoSettings, error: (any Error)?)
```

## Parameters

`output`

The photo output performing the capture.

`outputFileURL`

The file URL at which the movie content of the Live Photo was written.

`duration`

The duration of the Live Photo movie.

`photoDisplayTime`

The timestamp within the movie to which the still image part of the Live Photo corresponds.

`resolvedSettings`

An object describing the settings used for this capture. Match this object’s [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) value to the [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) property of the photo settings object you initiated capture with to determine which capture request this delegate call corresponds to. You can also use this object to find out which values the photo output has chosen for automatic settings.

`error`

If the capture process could not proceed successfully, an error object describing the failure; otherwise, `nil`.

## Discussion

Use this method to receive the results of a Live Photo capture. When the photo output calls this method, the movie component of the Live Photo has been written to the location specified by the `outputFileURL` parameter and the Live Photo is ready for consumption. (To receive the still image component of the Live Photo, implement the [`photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingPhoto:previewPhoto:resolvedSettings:bracketSettings:error:)) method.)

> Tip:
> To add captured Live Photos to the user’s Photos library, use the <doc://com.apple.documentation/documentation/Photos/PHAssetCreationRequest> class. To use Live Photos from the Photos library, use the <doc://com.apple.documentation/documentation/Photos/PHLivePhoto> and <doc://com.apple.documentation/documentation/PhotosUI/PHLivePhotoView> classes. To display Live Photo content on the web, use the <doc://com.apple.documentation/documentation/LivePhotosKitJS> framework.

You don’t need to implement this method if you’re not requesting Live Photo capture.

> Important:
> You must implement this method if you request Live Photo capture (by setting the ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoSettings/livePhotoMovieFileURL`` property of your photo settings object). The photo output validates this requirement when you call its ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)`` method; if your delegate does not implement the correct methods, the photo output raises an exception.

The photo output calls this method only once for each Live Photo capture.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)