AVAsset.Framerate
-----------------

Looks for first video track and reports the nominal frame rate.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVAsset](component_AVAsset.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVAsset.Framerate"; Asset ) 

**MBS**( **"AVAsset.Framerate";** /\* Looks for first video track and reports the nominal frame rate. \*/  
**$Asset**) /\* The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Asset | The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. | $asset |

### Result

Returns number or error.

### Description

Looks for first video track and reports the nominal frame rate.  
Actual frame rate may be variable.  
### Examples

Queries framerate for file:

 Set Variable \[$Asset ; Value:MBS ( "[AVAsset.OpenFile](AVAssetOpenFile.md)"; "/Users/cs/Desktop/test.mp4" )\]  
Set Variable \[$Framerate ; Value:MBS ( "AVAsset.Framerate"; $Asset )\]  
Set Variable \[$r ; Value:MBS ( "[AVAsset.Release](AVAssetRelease.md)"; $Asset )\]  
Show Custom Dialog \["Framerate"; $Framerate \]  
### See also

- [AVAsset.OpenContainer](AVAssetOpenContainer.md)
- [AVAsset.OpenFile](AVAssetOpenFile.md)
- [AVAsset.OpenURL](AVAssetOpenURL.md)
- [AVAsset.Release](AVAssetRelease.md)

This function checks for a license.

Created 1st August 2015 , last changed 24th February 2016

  
[AVAsset.Duration](AVAssetDuration.md) - [AVAsset.HasProtectedContent](AVAssetHasProtectedContent.md)

[HTML Version](AVAssetFramerate.shtml)