AVAsset.TimeCodes
-----------------

Reads time codes from asset.

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

MBS( "AVAsset.TimeCodes"; Asset ) 

**MBS**( **"AVAsset.TimeCodes";** /\* Reads time codes from asset. \*/  
**$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 text or error.

### Description

Reads time codes from asset.  
Returns list of time codes in format HH:MM:SS:FF.  
### Examples

Read time codes from a mov file:

 Set Variable \[$asset ; Value:MBS ("[AVAsset.OpenFile](AVAssetOpenFile.md)"; "/Users/cs/Downloads/test.MOV")\]  
Set Variable \[$timecode ; Value:MBS ("AVAsset.TimeCodes"; $asset )\]  
Set Variable \[$r ; Value:MBS ("[AVAsset.Release](AVAssetRelease.md)"; $asset )\]  
Set Field \[test::timecodes ; $timecode \]  
### See also

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

### Blog Entries

- [MBS FileMaker Plugin, version 5.4pr1](https://www.mbsplugins.de/archive/2015-10-11/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 7th October 2015 , last changed 6th June 2020

  
[AVAsset.RequestImageTimePrecision](AVAssetRequestImageTimePrecision.md) - [AVAsset.TrackCount](AVAssetTrackCount.md)

[HTML Version](AVAssetTimeCodes.shtml)