Try for free

Video Encoding Variables

Variable Type Description
MCLOUD_TOOL_ENABLED_VIDEO_ENCODING boolean Enables/disables the video encoder tool.
MEDIA_CLOUD_VIDEO_ENCODING_PROVIDER string Video encoding provider, valid values are mux.
MEDIA_CLOUD_MUX_TOKEN_ID string The Mux API token ID. You can find, or create new keys, on the mux.com dashboard.
MEDIA_CLOUD_MUX_TOKEN_SECRET string The Mux API token secret. You can find, or create new keys, on the mux.com dashboard.
MEDIA_CLOUD_MUX_WEBHOOK_SECRET string The web hook signing secret. You can find that here.
MEDIA_CLOUD_MUX_ENV_KEY string The Mux environment key. This value is optional, but enables analytics for your videos. This environment key can be found here.
MEDIA_CLOUD_MUX_NORMALIZE_AUDIO boolean Normalize the audio track loudness level.
MEDIA_CLOUD_MUX_PER_TITLE_ENCODING boolean Per-title encoding analyzes an individual video to determine the ideal encoding ladder. The result is that different videos are streamed at different resolutions and bitrates, and every video looks better – often by up to 20%-30%.
MEDIA_CLOUD_MUX_TEST_MODE boolean Enabling test mode will allow you to evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Any encoded videos will be watermarked with the Mux logo, limited to 10 seconds and be deleted after 24 hrs.
MEDIA_CLOUD_MUX_PLAYER string The video player to use. Valid values are none, videojs, hlsjs.
MEDIA_CLOUD_MUX_PLAYER_AIR_PLAY boolean Allow the video to be played back on Air Play devices on supports browsers/OS.
MEDIA_CLOUD_MUX_PLAYER_QUALITY_SELECT boolean Allow playback quality to be selected for variable bit-rate videos.
MEDIA_CLOUD_MUX_PLAYER_FILMSTRIPS boolean Generate thumbnail filmstrips for the player..
MEDIA_CLOUD_MUX_PLAYER_OVERRIDE_NATIVE boolean When enabled, the player will override the web browser’s native handling of HLS. This really only effects Safari.
MEDIA_CLOUD_MUX_PLAYER_ANALYTICS_MODE string To track events in Google Analytics, select the mode you are using. Valid values are none, gtag, other.
MEDIA_CLOUD_MUX_PLAYER_MP4_FALLBACK boolean When enabled, the player will prefer the HLS streaming source first but use an MP4 fallback if one exists.
MEDIA_CLOUD_MUX_PLAYER_MP4_PREFERRED_QUALITY string Mux generates up to 3 levels of quality for most MP4s. Select the preferred quality to use for the fallback. Valid values are low.mp4, medium.mp4, high.mp4
MEDIA_CLOUD_MUX_SECURE_VIDEO boolean Enable to secure all video URLs.
MEDIA_CLOUD_MUX_SECURE_VIDEO_EXPIRATION int The amount of time, in minutes, a signed URL is valid for. The actual expiration will be the duration of the video plus whatever value you specify here.
MEDIA_CLOUD_MUX_SECURE_THUMBNAIL_EXPIRATION int The amount of time, in minutes, a signed URL is valid for.
MEDIA_CLOUD_MUX_SECURE_GIF_EXPIRATION int The amount of time, in minutes, a signed GIF URL is valid for.
MEDIA_CLOUD_MUX_SECURE_KEY_ROTATION int The amount of time, in hours, between key rotations.
MEDIA_CLOUD_MUX_WATERMARK_ENABLED boolean When enabled, the image you select below will be watermarked onto any video uploads.
MEDIA_CLOUD_MUX_WATERMARK_IMAGE int The attachment ID to use for the watermark image.
MEDIA_CLOUD_MUX_WATERMARK_WIDTH int The width, in pixels, of the watermark image when applied to a 1920×1080 video. This value will be scaled accordingly for different size videos.
MEDIA_CLOUD_MUX_WATERMARK_VERTICAL_ALIGN string The vertical alignment of the watermark. Valid values are top, middle, bottom.
MEDIA_CLOUD_MUX_WATERMARK_VERTICAL_MARGIN int The vertical margin, in pixels, of the watermark image when applied to a 1920×1080 video. This value will be scaled accordingly for different size videos.
MEDIA_CLOUD_MUX_WATERMARK_HORIZONTAL_ALIGN string The horizontal alignment of the watermark. Valid values are left, center, right.
MEDIA_CLOUD_MUX_WATERMARK_HORIZONTAL_MARGIN int The horizontal margin, in pixels, of the watermark image when applied to a 1920×1080 video. This value will be scaled accordingly for different size videos.
MEDIA_CLOUD_MUX_WATERMARK_OPACITY int The opacity of the watermark. 0-100.
MEDIA_CLOUD_MUX_PROCESS_UPLOADS boolean When enabled, after a video is uploaded to cloud storage it will be imported it to Mux Video. If disabled, you must use the Mux upload tool.
MEDIA_CLOUD_MUX_DELETE_UPLOADS boolean When enabled, when you delete a video from the media library, the associated asset on Mux will be deleted too.