Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

AVAsset.OpenContainer

Opens a movie from a container.

Component Version macOS Windows Linux Server iOS SDK
AVAsset 5.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "AVAsset.OpenContainer"; Container )   More

Parameters

Parameter Description Example
Container The container with the movie file. MyTable::MovieContainer

Result

Returns asset reference number or error.

Description

Opens a movie from a container.
Should work for external and internal containers.
Please allow a second to load video in background asynchronously.
Available in OS X v10.7 and later.

Please call AVAsset.Release later to free object from memory.

You can use AVExport.ExportSession to export to a new file. With AVExport.SetTimeRange you can only export a clip and with AVExport.ExportSessionMerge you can merge multiple videos to one.

Examples

Open movie from container:

MBS( "AVAsset.OpenContainer"; MyTable::MyContainer )

Close it later

MBS( "AVAsset.Release"; $asset )

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 19th June 2015, last changed 2nd February 2022


AVAsset.NaturalWidth - AVAsset.OpenFile

💬 Ask a question or report a problem