Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- Version 9.1
- Added AVRecorder.EncoderCount, AVRecorder.EncoderInfo, AVRecorder.GetEncoder and AVRecorder.SetEncoder functions to define encoder for AVRecorder on Windows.
Blog Entries
This function checks for a license.
Created 24th February 2019, last changed 24th February 2019
AVRecorder.SetAutomaticallyAdjustsVideoMirroring - AVRecorder.SetFilePath
