---
title: "frameDuration(_:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxtimingapi_v4/frameduration(_:)"
---

# frameDuration(_:)

Provides the native frame duration of the object to which the effect is applied.

## Declaration

```swift
func frameDuration(_ duration: UnsafeMutablePointer<CMTime>!)
```

## Parameters

- `duration`: The frame duration time, expressed in CMTime.

## Mentioned in

Understanding time in FxPlug

## Discussion

Discussion Motion provides the frame duration of the project. Final Cut Pro provides the frame duration of the clip to which the effect is applied, not the frame duration for the timeline. note: The value that the host provides is unaffected by any retiming the host may do and is always the native frame duration (before retiming) of the clip to which the effect is applied. To determine the timeline’s frame duration, divide the value from timelineFpsDenominator(for:) by timelineFpsNumerator(for:) as shown in Retiming and frame duration.

## See Also

### Accessing Timing Values

- [sampleDuration(_:)](professional_video_applications/fxtimingapi_v4/sampleduration(_:).md)
- [startTime(forEffect:)](professional_video_applications/fxtimingapi_v4/starttime(foreffect:).md)
- [durationTime(forEffect:)](professional_video_applications/fxtimingapi_v4/durationtime(foreffect:).md)
- [startTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/starttimeofinput(tofilter:).md)
- [durationTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/durationtimeofinput(tofilter:).md)
- [start(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/start(_:ofimageparameter:).md)
- [durationTime(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/durationtime(_:ofimageparameter:).md)
- [inPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/inpointtimeoftimeline(foreffect:).md)
- [outPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/outpointtimeoftimeline(foreffect:).md)
- [timelineTime(_:fromInputTime:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:frominputtime:).md)
- [timelineTime(_:fromImageTime:forParameterID:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:fromimagetime:forparameterid:).md)
- [inputTime(_:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/inputtime(_:fromtimelinetime:).md)
- [imageTime(_:forParameterID:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/imagetime(_:forparameterid:fromtimelinetime:).md)
- [fieldOrderForInput(toFilter:)](professional_video_applications/fxtimingapi_v4/fieldorderforinput(tofilter:).md)
- [timelineFpsNumerator(for:)](professional_video_applications/fxtimingapi_v4/timelinefpsnumerator(for:).md)
