[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/VideoEncodingProfile.html [Back]  [Original]

Unity - Scripting API: VideoEncodingProfile
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    VideoEncodingProfile

    enumeration

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Description

    Use the options in this enumeration to change the encoder profile.

    H.264 profiles (Baseline, Main, and High) are compression and encoding standards that determine how the MediaEncoder compresses and encodes video files during recording. You can use the MediaEncoder to encode clips and choose the encoding profile via C#. The encoding profile you select influences the compatibility and compression efficiency of the H.264 codec. To record video, you can use the Unity Recorder, which uses the MediaEncoder in its implementation, or you can implement your own custom recording logic to work directly with the MediaEncoder API.

    For a code example, refer to H264EncoderAttributes.

    This enum isnt exposed in VideoClipImporter, so when you transcode video clips to H.264 during an import, Unity uses the baseline profile for maximum stability and compatibility.

    Properties

    Property Description
    H264BaselineEncode video with the H.264 Baseline profile, the simplest profile with the broadest device compatibility.
    H264MainEncode video with the H.264 Main profile, the mid-tier option for standard-definition content.
    H264HighEncode video with the H.264 High profile, the most advanced profile for high-definition content.

    Web Proxy Viewer  |  New URL  |  Original Page