Tailor manifests per device and network

Your packager produces one master manifest listing every rendition you encode. Every client gets that same list, whether it's a 4K TV or a phone on a congested cell. Manifest Personalization rewrites the manifest on the fly at the edge: it reorders renditions so the player starts on the right one, and filters out renditions the client shouldn't see at all.

The work happens at the edge, so your origin doesn't have to generate or store per-device manifest variants.

📘

There's an EdgeWorkers alternative

You can also build personalized VOD or live manifests and playlists programmatically with an EdgeWorkers function.

When to use this

  • Your startup bitrate is wrong for a meaningful share of your audience — too high and they rebuffer, too low and the first ten seconds look bad.
  • You need to cap quality for specific devices, regions, or network conditions.
  • You want to offload manifest manipulation from your origin.

What's supported

FormatMediaConfiguration
HLSLive and on demandSelf-service, via the Manifest Personalization rule
DASHOn demand onlySet up by your account representative via an advanced override

DASH support is currently limited to bitrate targeting. Feature parity with HLS is expected in a future release.

Before you begin

Get it on your contract. Manifest Personalization isn't available by default. Contact your account representative to add it.


Manifest Personalization for HLS

Add the rule and set the match criteria

  1. Add a rule and select Manifest Personalization from the rule catalog.
  2. The criteria default to common HLS master manifest filenames. Add or remove names as needed.
  3. Set Enable Manifest Personalization to On.
📘

Wildcards are allowed, carefully

You can use wildcards in manifest filenames, for example master-*.m3u8. Make sure your master manifest naming convention can't also match your media playlists and segments.

Then pick a Mode.

Best Practice mode (recommended)

Applies Apple's recommended settings automatically, per device class:

DeviceIdentified byManifest modificationEquivalent query parameter
iOS cellularUser-Agent matching *iPhone*OS* or *iPad*OS*, and EdgeScape NETWORK_TYPE of mobile on the connecting IPPreferred bitrate of 730 kbps__b__=730
iOS Wi-FiUser-Agent matching *iPhone*OS* or *iPad*OS*Preferred bitrate of 2000 kbps__b__=2000
tvOS (Apple TV)User-Agent matching *AppleCoreMedia*Apple\ TV*Preferred bitrate of 2000 kbps, and bitrates below 200 kbps excluded — Apple guidance says not to include the 145 kbps rendition__b__=2000, b-in-range=200

The b in __b__ is preceded and followed by two underscore characters.

See Apple's HLS Authoring Specification for the source of these recommendations.

Manual mode

Define your own settings instead of the presets. Use any or all of:

  • Preferred Bitrate (kbps). Controls which media playlist (#EXT-X-STREAM-INF) is listed first in the manifest. The playlist closest to this value, within ±100 kbps, goes first; everything else keeps its position.
  • Bitrates to Keep (Filter IN). A comma-separated list of individual bitrates in kbps, for example 100,200,400. Only playlists within ±100 kbps of these values stay in the manifest.
  • Bitrates within Ranges to Keep (Filter IN). A comma-separated list of ranges in kbps, for example 100-400,1000-3000. Only playlists inside these ranges stay. Open-ended ranges work — 1000- means 1000 kbps and up.
📘

Filters run before the preferred bitrate is chosen

If you combine a filter with a preferred bitrate, the preferred bitrate is selected from the filtered list, not from the original manifest.

Examples

SettingsResult
Preferred Bitrate: 1000The rendition closest to 1000 kbps (±100) becomes the first entry in the master manifest.
Preferred Bitrate: 1500
Bitrates to Keep: 1500, 2000
Keeps the renditions closest to 1500 and 2000 kbps (±100 each), then picks the preferred bitrate from those two.
Preferred Bitrate: 1500
Bitrates to Keep: 1500, 2000
Bitrates within Ranges to Keep: 2500-3000, 3500-
Keeps the renditions closest to 1500 and 2000 kbps, plus everything in 2500–3000 kbps (exclusive of boundaries) and everything above 3500 kbps. Picks the preferred bitrate from that filtered set.

Override per request with query parameters

Query string values take precedence over whatever you configured in the rule. This works in both Best Practice and Manual modes.

  1. Set Enable Query Param based Personalization to On.
  2. Have your clients request manifests with the appropriate query string values.
ParameterEffect
__b__Sets the preferred bitrate in kbps. The closest playlist within ±100 kbps is listed first.
b-inComma-separated bitrates in kbps to keep, within ±100 kbps of each.
b-in-rangeComma-separated bitrate ranges in kbps to keep.
?__b__=500&b-in=100,200&b-in-range=500-2000

Lock down who can use them

  • Secret Key for Honoring Query Params. Honors query parameters only when the request carries a matching token. Enter a key or generate one. You then use that key with the Token Auth 2.0 library to produce a token, appended as ?mper=<token>.

    Token Auth 2.0 SDKs are published with README instructions. Generating a token with the Python library:

    python cms_edgeauth.py -n mper -w 31536000 -k abc123 -a '/*'

    -n is the token name, -w the validity window, -k the secret key, -a the access list.

  • Transition Key. A secondary key for query parameter verification, used when rotating or retiring the primary secret key.

Advanced: debug headers

Set Show Advanced to On and enable debug headers. Requests for the HLS master manifest then return two extra headers:

HeaderMeaning
Akamai-Manifest-Personalization-Config-SourceWhere the applied operations came from: UI- (rule settings only), QUERY (query parameters only), or UI-QUERY (both).
Akamai-Manifest-PersonalizationEvery operation applied to the request. For example: b-in=300,400&b-in-range=500-&__b__=600

Debug headers are only added for responses with status 200 and 400.


Manifest Personalization for DASH

MPer for DASH does bitrate targeting: you set an upper bitrate limit, and renditions above it are trimmed from the manifest. Requests above the maximum are downgraded to it.

Add it to your environment

Your account representative adds an advanced override — custom metadata inserted into your configuration's XML. Two things to agree with them:

  • Your maximum bitrate. When a request matches, the manifest's Representation elements are rewritten: one for your maximum (via its bandwidth parameter) and others for lower buckets. Representations above the maximum are dropped. The maximum supported value is 10,000 kbps.
  • The match criteria. The rule matches requests for DASH manifest files — make sure your actual manifest filenames and extensions are covered.

Apply the limit from your player

Append b-upper-limit={#} to requests:

https://big-time-movies.akamaized.net/dash/MR/MultiResPer.mpd?b-upper-limit=2000
  • Values are in kbps. DASH manifests express bandwidth in bps; Akamai metadata handles the conversion.
  • Values round down into buckets.
b-upper-limit in this rangeBucket bitrate applied (kbps)
1000 – 19991000
2000 – 29992000
3000 – 39993000
4000 – 49994000
5000 – 59995000
6000 – 79996000
8000 – 99998000
10000 +10000
  • You can request anything below your configured maximum. With a maximum of 4,000 kbps you can still send b-upper-limit=2000 for a single request and get 2,000 kbps.
  • You can't exceed it. A b-upper-limit above your configured maximum still serves content, capped at your maximum.

Caveats for DASH

IssueDescription
UTF-16 manifests need extra configurationThe service behind MPer for DASH doesn't support UTF-16 encoded manifests by default. It first attempts a regex replacement in UTF-8, then retries for UTF-16. Additional metadata can make this work — ask your account representative whether it applies in your environment.
Range headers are removedThe service isn't compatible with range requests; a Range header with MPer enabled returns 502. To avoid that, Range headers are stripped from MPer requests.
Manifests must be 1 MB or smallerLarger manifests return a 5xx error.
FireTV devices may be affectedDropping all Representation elements inside an AdaptationSet should also remove the now-empty adaptation set. Rarely, an empty one is left behind, and testing has shown FireTV playback can stop when that happens.

Related


Did this page help you?