---
id: "aws-mediapackage"
type: "component"
kind: "media-router"
provider: "aws"
category: "edge"
docs: "https://docs.aws.amazon.com/mediapackage/latest/ug/what-is-features.html"
url: "https://localhost:3000/catalogue/components/aws-mediapackage"
---

# AWS Elemental MediaPackage

Just-in-time packaging and origination service for live and on-demand video.

| | |
|---|---|
| Provider | [aws](https://localhost:3000/catalogue?provider=aws) |
| Kind | [Media router](https://localhost:3000/catalogue/kinds/media-router) |
| Category | Edge |
| Official docs | [https://docs.aws.amazon.com/mediapackage/latest/ug/what-is-features.html](https://docs.aws.amazon.com/mediapackage/latest/ug/what-is-features.html) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `cascading` | boolean | — | no | false | inherited |
| `cdnAuthorization` | boolean | — | no | false | inherited |
| `drm` | boolean | — | no | false | inherited |
| `managed` | boolean | — | no | false | **true** |
| `maxStartoverHours` | integer | — | no | 336 | inherited |
| `mode` | enum | `sfu`, `mcu`, `p2p`, `ingest` | no | "sfu" | **"ingest"** |
| `outputFormat` | enum | `hls`, `dash`, `cmaf`, `mss` | no | — | inherited |
| `rerouteOnFailure` | boolean | — | no | false | **true** |
| `transport` | enum | `udp`, `tcp`, `both` | no | "both" | **"tcp"** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 23

- [Amazon Chime SDK](https://localhost:3000/catalogue/components/aws-chime-sdk.md) `aws-chime-sdk` — aws
- [Amazon IVS](https://localhost:3000/catalogue/components/aws-ivs.md) `aws-ivs` — aws
- [AWS Elemental MediaConnect](https://localhost:3000/catalogue/components/aws-mediaconnect.md) `aws-mediaconnect` — aws
- [AWS Elemental MediaTailor](https://localhost:3000/catalogue/components/aws-mediatailor.md) `aws-mediatailor` — aws
- [Cloudflare MoQ](https://localhost:3000/catalogue/components/cloudflare-moq.md) `cloudflare-moq` — cloudflare
- [Cloudflare Realtime SFU](https://localhost:3000/catalogue/components/cloudflare-realtime-sfu.md) `cloudflare-realtime-sfu` — cloudflare
- [RealtimeKit](https://localhost:3000/catalogue/components/cloudflare-realtimekit.md) `cloudflare-realtimekit` — cloudflare
- [Cloudflare Realtime TURN](https://localhost:3000/catalogue/components/cloudflare-turn.md) `cloudflare-turn` — cloudflare
- [Agora](https://localhost:3000/catalogue/components/agora.md) `agora` — default
- [Ant Media Server](https://localhost:3000/catalogue/components/ant-media.md) `ant-media` — default
- [coturn](https://localhost:3000/catalogue/components/coturn.md) `coturn` — default
- [Daily](https://localhost:3000/catalogue/components/daily.md) `daily` — default
- [Icecast](https://localhost:3000/catalogue/components/icecast.md) `icecast` — default
- [Janus](https://localhost:3000/catalogue/components/janus.md) `janus` — default
- [Jitsi Videobridge](https://localhost:3000/catalogue/components/jitsi.md) `jitsi` — default
- [LiveKit](https://localhost:3000/catalogue/components/livekit.md) `livekit` — default
- [Generic media router](https://localhost:3000/catalogue/components/media-router.md) `media-router` — default
- [mediasoup](https://localhost:3000/catalogue/components/mediasoup.md) `mediasoup` — default
- [Red5](https://localhost:3000/catalogue/components/red5.md) `red5` — default
- [SRS](https://localhost:3000/catalogue/components/srs.md) `srs` — default
- [Twilio Video](https://localhost:3000/catalogue/components/twilio-video.md) `twilio-video` — default
- [Wowza Streaming Engine](https://localhost:3000/catalogue/components/wowza.md) `wowza` — default
- [Video Stitcher API](https://localhost:3000/catalogue/components/google-video-stitcher-api.md) `google-video-stitcher-api` — gcp

## Use it in a design

```yaml
nodes:
  - { id: "aws-mediapackage", component: "aws-mediapackage" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# AWS Elemental MediaPackage: just-in-time packaging and origination for live and VOD streams
# ("What is AWS Elemental MediaPackage?"). "Features of AWS Elemental MediaPackage" states that
# MediaPackage creates two input URLs on every live channel for input redundancy, and that DRM and
# CDN authorization are opt-in features; "Time-shifted viewing reference" caps the startover window
# at 336 hours (14 days).
schemaVersion: "1"
type: "component"
id: "aws-mediapackage"
kind: "media-router"
provider: "aws"
docs: "https://docs.aws.amazon.com/mediapackage/latest/ug/what-is-features.html"
defaults:
  managed: true
  mode: "ingest"
  transport: "tcp"
  rerouteOnFailure: true
properties:
  outputFormat:
    type: "enum"
    values: ["hls", "dash", "cmaf", "mss"]
  drm:
    type: "boolean"
    default: false
  cdnAuthorization:
    type: "boolean"
    default: false
  maxStartoverHours:
    type: "integer"
    default: 336
```

Human page: https://localhost:3000/catalogue/components/aws-mediapackage
