Version: 2019.2

MediaEncoderConstructor

Switch to Manual
public MediaEncoder (string filePath, Media.VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs);
public MediaEncoder (string filePath, Media.VideoTrackAttributes videoAttrs, Media.AudioTrackAttributes audioAttrs);
public MediaEncoder (string filePath, Media.VideoTrackAttributes videoAttrs);
public MediaEncoder (string filePath, AudioTrackAttributes[] audioAttrs);
public MediaEncoder (string filePath, Media.AudioTrackAttributes audioAttrs);

Parameters

filePathPath fo the media file to be written.
videoAttrsAttributes for the file's video track, if any.
audioAttrsAttributes for the file's audio tracks, if any.

Description

Create a new encoder with various track arrangements.

Throws exceptions when an error is encountered either with the format description or the creation of the file.