Component: AVAsset 
-------------------

Modern functions on OS X to query metadata from movie files.

Extract video frames, query lyrics and other metadata from video files.  
Use [AVExport](component_AVExport.md) functions to convert videos or extract snippet to new video file.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [5.2](newinversion52.md "First functions introduced with version 5.2.") / [10.2](newinversion102.md "Newest functions in version 10.2.") | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [AVAsset.AvailableMetadataFormats](AVAssetAvailableMetadataFormats.md)   Returns a list representing available metadata formats. | Mac/iOS   5.2 |
| [AVAsset.Duration](AVAssetDuration.md)   Returns the duration of a asset in seconds. | Mac/iOS   5.2 |
| [AVAsset.Framerate](AVAssetFramerate.md)   Looks for first video track and reports the nominal frame rate. | Mac/iOS   5.2 |
| [AVAsset.HasProtectedContent](AVAssetHasProtectedContent.md)   Queries whether the asset has protected content. | Mac/iOS   5.2 |
| [AVAsset.Image](AVAssetImage.md)   Returns an image for the asset at or near a specified time. | Mac/iOS   5.2 |
| [AVAsset.ImageActualTime](AVAssetImageActualTime.md)   Queries actual time for image. | Mac/iOS   6.5 |
| [AVAsset.IsComposable](AVAssetIsComposable.md)   Queries whether this asset can be used in compositions. | Mac/iOS   5.2 |
| [AVAsset.IsExportable](AVAssetIsExportable.md)   Indicates whether the asset can be exported. | Mac/iOS   5.2 |
| [AVAsset.IsPlayable](AVAssetIsPlayable.md)   Checks whether the asset, or its URL, can be played. | Mac/iOS   5.2 |
| [AVAsset.IsReadable](AVAssetIsReadable.md)   Checks whether the asset’s media data can be extracted | Mac/iOS   5.2 |
| [AVAsset.Loaded](AVAssetLoaded.md)   Queries load status of asset. | Mac/iOS   5.2 |
| [AVAsset.Lyrics](AVAssetLyrics.md)   Queries the lyrics of the asset suitable for the current locale. | Mac/iOS   5.2 |
| [AVAsset.Metadata](AVAssetMetadata.md)   Queries metadata. | Mac/iOS   5.2 |
| [AVAsset.MetadataKeys](AVAssetMetadataKeys.md)   Queries metadata keys. | Mac/iOS   5.2 |
| [AVAsset.NaturalHeight](AVAssetNaturalHeight.md)   Queries the natural height of the video. | Mac/iOS   5.2 |
| [AVAsset.NaturalWidth](AVAssetNaturalWidth.md)   Queries the natural width of the video. | Mac/iOS   5.2 |
| [AVAsset.OpenContainer](AVAssetOpenContainer.md)   Opens a movie from a container. | Mac/iOS   5.2 |
| [AVAsset.OpenFile](AVAssetOpenFile.md)   Opens an asset from a file. | Mac/iOS   5.2 |
| [AVAsset.OpenURL](AVAssetOpenURL.md)   Opens a movie from URL. | Mac/iOS   5.2 |
| [AVAsset.PreferredRate](AVAssetPreferredRate.md)   Queries the natural rate at which the asset is to be played. | Mac/iOS   5.2 |
| [AVAsset.PreferredVolume](AVAssetPreferredVolume.md)   Queries the preferred volume at which the audible media of asset is to be played. | Mac/iOS   5.2 |
| [AVAsset.Release](AVAssetRelease.md)   Releases the object and all memory used for it. | Mac/iOS   5.2 |
| [AVAsset.ReleaseAll](AVAssetReleaseAll.md)   Release all asset objects. | Mac/iOS   10.2 |
| [AVAsset.RequestImageTimePrecision](AVAssetRequestImageTimePrecision.md)   Requests to use high precision for timing of images. | Mac/iOS   6.5 |
| [AVAsset.TimeCodes](AVAssetTimeCodes.md)   Reads time codes from asset. | Mac/iOS   5.4 |
| [AVAsset.TrackCount](AVAssetTrackCount.md)   Queries the track count. | Mac/iOS   5.2 |
| [AVAsset.TrackInfo](AVAssetTrackInfo.md)   Queries track details. | Mac/iOS   7.4 |
| [AVAsset.URL](AVAssetURL.md)   Queries the URL used to open this asset. | Mac/iOS   5.2 |
| [AVAsset.WaitForLoaded](AVAssetWaitForLoaded.md)   Waits for file to be loaded. | Mac/iOS   8.0 |

29 functions shown.

These functions require a license (69%).

### Release notes

- **Version 15.0**
    - Added formatDescription as selector for [AVAsset.TrackInfo](https://www.mbsplugins.eu/AVAssetTrackInfo.shtml) to query format description information.
- **Version 10.2**
    - Added [AVAsset.ReleaseAll](https://www.mbsplugins.eu/AVAssetReleaseAll.shtml) function.
- **Version 8.0**
    - Added [AVAsset.WaitForLoaded](http://www.mbsplugins.eu/AVAssetWaitForLoaded.shtml) function.
- **Version 7.4**
    - Added [AVAsset.TrackInfo](http://www.mbsplugins.eu/AVAssetTrackInfo.shtml) function.
- **Version 7.3**
    - Changed [AVAsset.OpenContainer](http://www.mbsplugins.eu/AVAssetOpenContainer.shtml) to accept wav files.

### Blog Entries

- [Combined Components with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-03-29/Combined_Components_with_MBS_F/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 5.4 for OS X/Windows](https://www.mbsplugins.de/archive/2015-11-24/MBS_FileMaker_Plugin_54_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 5.2 for OS X/Windows - More than 3200 Functions](https://www.mbsplugins.de/archive/2015-08-04/MBS_FileMaker_Plugin_52_for_OS/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [Containers/Create Container Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Create%20Container%20Preview.shtml#1ScriptAnchor_)
- [iOS/Examples/Movie Container iOS and Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Movie%20Container%20iOS%20and%20Mac.shtml#4ScriptAnchor_)
- [Mac and iOS/AVAsset Tracks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVAsset%20Tracks.shtml#1ScriptAnchor_)
- [Mac and iOS/AVExport](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVExport.shtml#1ScriptAnchor_)
- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#2ScriptAnchor_)
- [Mac only/Movies/AVAsset Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Test.shtml#1ScriptAnchor_)

[HTML Version](component_AVAsset.shtml)