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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Creates a new export session.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVExport | 6.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Asset | The reference number of the asset. Please use AVAsset.OpenContainer, AVAsset.OpenFile or AVAsset.OpenURL function to get asset reference. | $asset |
Preset | The preset name to use. Can be one of the presets returned by AVExport.AllExportPresets or one of the predefined ones: |
"640x480" |
Returns reference number or error.
LowQuality | Low Quality | OS X 10.11 and newer |
MediumQuality | Medium Quality | OS X 10.11 and newer |
HighestQuality | High Quality | OS X 10.11 and newer |
640x480 | VGA Resolution, 640 x 480 Pixel | OS X 10.7 and newer |
960x540 | Half HD Resolution, 960 x 540 Pixel | OS X 10.7 and newer |
1280x720 | 720p Resolution, 1280 x 720 Pixel | OS X 10.7 and newer |
1920x1080 | Full HD Resolution, 1920 x 1080 Pixel, | OS X 10.7 and newer |
3840x2160 | 4K Resolution, 3840 x 2160 | OS X 10.10 and newer |
AppleM4VCellular | Celluar | OS X 10.7 and newer |
AppleM4ViPod | iPod | OS X 10.7 and newer |
AppleM4V480pSD | 480p SD | OS X 10.7 and newer |
AppleM4VAppleTV | AppleTV | OS X 10.7 and newer |
AppleM4VWiFi | Wifi | OS X 10.7 and newer |
AppleM4V720pHD | 720p HD | OS X 10.7 and newer |
AppleM4V1080pHD | 1080p HD | OS X 10.8 and newer |
Passthrough | Pass through data if possible. | OS X 10.7 and newer |
AppleM4A | Audio-only .m4a file with appropriate iTunes gapless playback data | OS X 10.7 and newer |
AppleProRes422LPCM | QuickTime movie with Apple ProRes 422 video and LPCM audio. | OS X 10.7 and newer |
Create export session:
If [not IsEmpty($$AVExport)]
Show Custom Dialog ["We have a session already!?"]
Exit Script []
End If
Set Variable [$Asset; Value:MBS( "AVAsset.OpenFile"; AVAsset Export Session::Input File Path )]
Set Variable [$$AVExport; Value:MBS( "AVExport.ExportSession"; $Asset; AVAsset Export Session::PresetName )]
If [MBS("IsError")]
Set Variable [$r; Value:MBS( "AVAsset.Release"; $Asset)]
Show Custom Dialog ["Failed to create export sessio…"; MBS("Text.RemovePrefix"; $$AVExport; "[MBS] ")]
Exit Script []
End If
Set Variable [$r; Value:MBS( "AVAsset.Release"; $Asset)]
Set Field [AVAsset Export Session::Duration; MBS( "AVExport.Duration"; $$AVExport )]
Set Field [AVAsset Export Session::SupportedFileTypes; MBS( "AVExport.SupportedFileTypes"; $$AVExport )]
Created 29th February 2016, last changed 1st March 2016
AVExport.ExportAsynchronously - AVExport.ExportSessionMerge
Feedback: Report problem or ask question.