Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MediaEncoder

Create a new encoder with various track arrangements.
Read time 2 minutesLast updated 10 days ago

Definition

MediaEncoder(string, VideoTrackAttributes, AudioTrackAttributes[])

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Attributes for the file's audio tracks, if any.

Remarks

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

MediaEncoder(string, VideoTrackEncoderAttributes, AudioTrackAttributes[])

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackEncoderAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Attributes for the file's audio tracks, if any.

Remarks

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

MediaEncoder(string, VideoTrackEncoderAttributes, AudioTrackAttributes)

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackEncoderAttributes videoAttrs, AudioTrackAttributes audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Attributes for the file's audio tracks, if any.

Remarks

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

MediaEncoder(string, VideoTrackEncoderAttributes)

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackEncoderAttributes videoAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Remarks

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

MediaEncoder(string, VideoTrackAttributes, AudioTrackAttributes)

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Attributes for the file's audio tracks, if any.

Remarks

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

MediaEncoder(string, VideoTrackAttributes)

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's video track, if any.

Remarks

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

MediaEncoder(string, AudioTrackAttributes[])

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, AudioTrackAttributes[] audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's audio tracks, if any.

Remarks

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

MediaEncoder(string, AudioTrackAttributes)

Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, AudioTrackAttributes audioAttrs)

Parameters

filePath

Path fo the media file to be written.

Attributes for the file's audio tracks, if any.

Remarks

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