MediaEncoder
Create a new encoder with various track arrangements.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Constructor
- Namespace: UnityEditor.Media
- Assembly: UnityEditor
MediaEncoder(string, VideoTrackAttributes, AudioTrackAttributes[])
Create a new encoder with various track arrangements.
public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)
Parameters
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
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
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
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
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
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
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
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.