---
title: outputDuration
framework: coremedia
role: symbol
role_heading: Instance Property
path: coremedia/cmreadysamplebuffer/outputduration
---

# outputDuration

The output duration of the sample buffer.

## Declaration

```swift
var outputDuration: CMTime { get }
```

## Discussion

Discussion This is the duration of decoded, trimmed and stretched samples. It is calculated as: (Duration - TrimDurationAtStart - TrimDurationAtEnd) / SpeedMultiplier. Duration is duration property of this sample buffer. TrimDurationAtStart is the value of trimDurationAtStart attachment (default 0). TrimDurationAtEnd is the value of trimDurationAtEnd attachment (default 0). SpeedMultiplier is the value of speedMultiplier attachment (default 1).
