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  

AVRecorder.EncoderInfo

Queries details about video encoders.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 9.1 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "AVRecorder.EncoderInfo"; AVSession; Index; Selector )   More

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Index The index of the device from 0 to AVRecorder.VideoDeviceCount-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") ]
Set Variable [ $count ; Value: MBS("AVRecorder.EncoderCount"; $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

Release notes

Blog Entries

This function checks for a license.

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


AVRecorder.EncoderCount - AVRecorder.GetAudioDevice

💬 Ask a question or report a problem