Skip to content

Transcoding profiles

A transcoding profile is a reusable recipe that says how an upload is processed. You choose one with transcodingProfileId when you prepare an upload. The routes that list, create, update and delete profiles are in the Media API, under the TranscodingProfiles tag.

Resources

Resource What it is
Profile A named recipe of one category: video, image, document or audio.
Version An immutable snapshot of a profile. Each update creates a new version.
System profile A shared profile (isSystem: true) that every workspace can use. It is read-only.
Workspace profile A profile you create. It is visible only in your workspace.

Authentication and permissions

See the Media API. In short: reading profiles needs workspace:media:view; creating, updating and deleting needs workspace:settings:manage.

Versions

Updating a profile never changes an existing version. It saves a new version and makes it current. A media object keeps the version it was processed with (transcodingProfileVersionId), so an update never re-encodes media you already have. Only later uploads use the new version. List a profile's versions with List profile versions.

Passthrough

Every category has a profile that skips processing and marks the media done as it is. Use it when the file is already in the right format.

Category A profile is passthrough when System profile
video renditions is empty VIDEO-PASSTHROUGH
image settings.format is empty IMAGE-PASSTHROUGH
document settings has no dpi, colorScheme or defaultSlideDurationSec DOCUMENT-PASSTHROUGH
audio settings is empty AUDIO-PASSTHROUGH

An empty object ({}) counts the same as leaving settings out.

What each category does

Video

Every video upload is first normalized: the audio and video are trimmed to the same length, the container is rewritten for broad player support, and the audio level is set to -23 LUFS (EBU R128). A source that is not H.264 is re-encoded. When the profile has renditions, PlayTelly then encodes one HLS (CMAF) rendition per rung and writes a master playlist (manifestUrl) and a SMIL file (smilUrl). progressiveUrl is one MP4 at the tallest rung.

Field Type Meaning
renditions array The ladder. Each rung has height (pixels), bitrateKbps and profile (baseline, main or high).
aspectRatio string Required for a real ladder: 16:9, 9:16 or 1:1. Every rung is placed on that canvas with bars and no cropping. Choosing a profile therefore chooses the output shape.
segmentSecs integer HLS segment length in seconds. Default 4.

Image

The image is converted to WebP and only ever shrunk, never enlarged. The result is optimizedUrl.

{ "format": "webp", "quality": 85, "maxWidth": 1920, "maxHeight": 1080 }

Document

PDF, PPT, PPTX and ODP files are rendered to one JPEG per page. List the pages with List a document's slides.

{ "dpi": 150, "colorScheme": "rgb", "defaultSlideDurationSec": 8 }

colorScheme is rgb or grayscale. defaultSlideDurationSec is only a default stored on each slide; a schedule or player can override it.

Audio

Audio is re-encoded and its loudness normalized with two passes. The result is optimizedUrl. An audio upload needs an audio profile, and an audio profile can only be used with audio.

{ "format": "aac", "bitrateKbps": 192, "channels": 2, "sampleRate": 48000,
  "loudnorm": { "targetLUFS": -23, "truePeak": -1, "loudnessRange": 11 } }
Setting Values
format aac, mp3, opus
bitrateKbps 32 to 512
channels 1, 2
sampleRate 44100, 48000

System profiles

Code Category Result
VIDEO-STD-3RUNG (default) video 16:9, 1080p 5000 kbps, 720p 2800 kbps, 480p 1200 kbps
VIDEO-LITE-2RUNG video 16:9, 480p 700 kbps, 360p 400 kbps
VIDEO-4K-PREMIUM video 16:9, 2160p 40000 kbps, 1440p 16000 kbps, 1080p 8000 kbps, 720p 5000 kbps
VIDEO-VERTICAL-TIKTOK video 9:16, 1920p 4500 kbps, 1280p 2500 kbps
VIDEO-VERTICAL-LITE video 9:16, 1280p 1500 kbps, 854p 800 kbps
VIDEO-SQUARE-FEED video 1:1, 1080p 3500 kbps, 720p 1800 kbps
VIDEO-PASSTHROUGH video No transcode
IMAGE-SIGNAGE-STANDARD (default) image WebP, quality 85, up to 1920x1080
IMAGE-SIGNAGE-SOCIAL image WebP, quality 85, up to 1080x1080
IMAGE-SIGNAGE-ADS-BANNER image WebP, quality 80, up to 1920x400
IMAGE-PASSTHROUGH image No optimization
DOCUMENT-SIGNAGE-DEFAULT (default) document 150 dpi, RGB, 8 seconds per slide
DOCUMENT-PASSTHROUGH document No rasterization
AUDIO-STD-STEREO (default) audio AAC 192 kbps stereo 48 kHz, -23 LUFS
AUDIO-VOICE-MONO audio AAC 96 kbps mono 48 kHz
AUDIO-PASSTHROUGH audio No re-encode

Profile IDs differ between environments. Read them with List transcoding profiles and match on code.

Thumbnails

A thumbnail is made for every video (frame at 1 second), image, PDF and Office document (first page), whatever the profile. Audio and other types have none. A rasterized document has both a thumbnail (page 1) and the full slide list.

Errors

See the Media API errors. The ones specific to profiles:

Status When it happens What to do
400 A video profile has no renditions, or a real ladder has no valid aspectRatio. An image, document or audio profile has no settings. Send the field the category needs.
403 You update or delete a system profile. Create a workspace profile with the settings you want.
409 You delete a profile that media still uses. Check List media with transcodingProfileId, then delete or reprocess that media.