AVRecorder.EncoderInfo
----------------------

Queries details about video encoders.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVRecorder](component_AVRecorder.md) | [9.1](newinversion91.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "AVRecorder.EncoderInfo"; AVSession; Index; Selector ) 

**MBS**( **"AVRecorder.EncoderInfo";** /\* Queries details about video encoders. \*/  
**$AVSession**; /\* The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). \*/   
**$Index**; /\* The index of the device from 0 to [AVRecorder.VideoDeviceCount](AVRecorderVideoDeviceCount.md)-1 or the name or ID of the device.e.g. 0 \*/   
**$Selector**) /\* Which value to return.  
Can be ID, Name, Description, Index.  
On Mac can also be manufacturer, modelID, transportType, connected, inUseByAnotherApplication or suspended.e.g. "Name" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVSession | The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). | $AVSession |
| Index | The index of the device from 0 to [AVRecorder.VideoDeviceCount](AVRecorderVideoDeviceCount.md)-1 or the name or ID of the device. | 0 |
| Selector | Which value to return.   Can be ID, Name, Description, Index.   On Mac can also be manufacturer, modelID, transportType, connected, inUseByAnotherApplication or suspended. | "Name" |

### Result

Returns value or error.

### Description

Queries details about video encoders.  
Windows 10 includes usually the following encoders for video: WMVideo8 Encoder DMO, WMVideo9 Encoder DMO, MSScreen 9 encoder DMO, DV Video Encoder, MJPEG Compressor.  
### Examples

Query available encoders:

 Set Variable \[ $a ; Value: MBS ("[AVRecorder.Init](AVRecorderInit.md)") \]   
Set Variable \[ $count ; Value: MBS ("[AVRecorder.EncoderCount](AVRecorderEncoderCount.md)"; $a ) \]   
Set Variable \[ $index ; Value: 0 \]   
Loop  
 Set Variable \[ $name ; Value: MBS ("AVRecorder.EncoderInfo"; $a ; $index ; "name") \]   
 Set Variable \[ $description ; Value: MBS ("AVRecorder.EncoderInfo"; $a ; $index ; "description") \]   
 #   
 Show Custom Dialog \[ $name ; $description \]   
 #   
 Set Variable \[ $index ; Value: $index + 1 \]   
 Exit Loop If \[ $index ≥ $count \]   
End Loop  
### See also

- [AVRecorder.EncoderCount](AVRecorderEncoderCount.md)
- [AVRecorder.Init](AVRecorderInit.md)
- [AVRecorder.VideoDeviceCount](AVRecorderVideoDeviceCount.md)

### Release notes

- **Version 9.1**
    - Added [AVRecorder.EncoderCount](http://www.mbsplugins.eu/AVRecorderEncoderCount.shtml), [AVRecorder.EncoderInfo](http://www.mbsplugins.eu/AVRecorderEncoderInfo.shtml), [AVRecorder.GetEncoder](http://www.mbsplugins.eu/AVRecorderGetEncoder.shtml) and [AVRecorder.SetEncoder](http://www.mbsplugins.eu/AVRecorderSetEncoder.shtml) functions to define encoder for AVRecorder on Windows.

### Example Databases

- [AVRecorder/AVRecorder](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AVRecorder.shtml#13ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.1pr4](https://www.mbsplugins.de/archive/2019-02-25/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 24th February 2019 , last changed 25th July 2023

  
[AVRecorder.EncoderCount](AVRecorderEncoderCount.md) - [AVRecorder.GetAudioDevice](AVRecorderGetAudioDevice.md)

[HTML Version](AVRecorderEncoderInfo.shtml)