<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMVideoDimensions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@SA@CMVideoDimensions"
  },
  "title" : "CMVideoDimensions"
}
-->

# CMVideoDimensions

A structure that represents video dimensions.

```
struct CMVideoDimensions
```

## Overview

The units are pixels.

## Topics

### Creating Video Dimensions

[`init()`](/documentation/CoreMedia/CMVideoDimensions/init())

[`init(width:height:)`](/documentation/CoreMedia/CMVideoDimensions/init(width:height:))

### Inspecting Video Dimensions

[`height`](/documentation/CoreMedia/CMVideoDimensions/height)

The height of the video.

[`width`](/documentation/CoreMedia/CMVideoDimensions/width)

The width of the video.



---

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)