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.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  

AVRecorder.SetEncoder

Sets the encoder to use for video.

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

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Encoder The encoder name, ID or index. 0

Result

Returns OK or error.

Description

Sets the encoder to use for video.
Not all combinations of video source, encoder and destination file will work.
AVRecorder.StartRecording may fail later.

On Mac and iOS we use standard encoder by default (H264 usually).

Examples

Set encoder:

MBS( "AVRecorder.SetEncoder"; $AVSession; "WMVideo9 Encoder DMO" )

Set DV encoder:

MBS("AVRecorder.SetEncoder"; AVRecorder::Session; "DV Video Encoder")

See also

Release notes

Blog Entries

Created 24th February 2019, last changed 24th February 2019


AVRecorder.SetAutomaticallyAdjustsVideoMirroring - AVRecorder.SetFilePath

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat