AVExport.ExportSessionMerge
---------------------------

Creates a new export session.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVExport](component_AVExport.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVExport.ExportSessionMerge"; AssetList; Preset ) 

**MBS**( **"AVExport.ExportSessionMerge";** /\* Creates a new export session. \*/  
**$AssetList**; /\* A list of assets.  
Can contain reference numbers for assets obtained from [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md).  
Or file paths to assets.  
(or a combination of both types)e.g. "54001¶54002¶54003" \*/   
**$Preset**) /\* The preset name to use.   
Can be one of the presets returned by [AVExport.AllExportPresets](AVExportAllExportPresets.md) or one of the predefined ones:e.g. "640x480" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AssetList | A list of assets.   Can contain reference numbers for assets obtained from [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md).   Or file paths to assets.   (or a combination of both types) | "54001¶54002¶54003" |
| Preset | The preset name to use.    Can be one of the presets returned by [AVExport.AllExportPresets](AVExportAllExportPresets.md) or one of the predefined ones: | "640x480" |

### Result

Returns reference number or error.

### Description

Creates a new export session.  
Returns a reference number for the new AVAsset export session for the specified source assets and preset.  
The given assets are joined and exported together as one movie. They should match in size/type.  
  
Same as [AVExport.ExportSession](AVExportExportSession.md), but takes a list of AVAssets.  
### Examples

Export three videos:

 MBS ( "AVExport.ExportSessionMerge"; "/Users/cs/Movies/test1.m4v¶/Users/cs/Movies/test2.m4v¶/Users/cs/Movies/test4.m4v"; AVAsset Export Session::PresetName )  
### See also

- [AVAsset.OpenContainer](AVAssetOpenContainer.md)
- [AVAsset.OpenFile](AVAssetOpenFile.md)
- [AVAsset.OpenURL](AVAssetOpenURL.md)
- [AVExport.AllExportPresets](AVExportAllExportPresets.md)
- [AVExport.ExportSession](AVExportExportSession.md)

### Release notes

- **Version 8.0**
    - Fixed problem with [AVExport.ExportSessionMerge](http://www.mbsplugins.eu/AVExportExportSessionMerge.shtml) and new example to work.

### Example Databases

- [Mac and iOS/AVExport](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVExport.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 8.0pr7](https://www.mbsplugins.de/archive/2018-01-10/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.2pr3](https://www.mbsplugins.de/archive/2016-04-05/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 31st March 2016 , last changed 14th June 2016

  
[AVExport.ExportSession](AVExportExportSession.md) - [AVExport.GetOutputFileType](AVExportGetOutputFileType.md)

[HTML Version](AVExportExportSessionMerge.shtml)