The Best Way to Build Software that Streams Video

Mux Video is an API to data-driven video hosting and streaming at any scale.

Request Access to Mux Video
Speed

Publish Faster, to Any Device

POST a video or live stream with a single API call, and watch it seconds later. HLS and DASH support for every major web, iOS, and Android player.

Data

Let the Data do the Work

Bitrate selection via machine learning, content aware encoding, and real-time CDN switching mean faster startup times, smoother playback, higher quality, and lower costs.

Video Features

Advanced Video Features

Get creative with functions like clipping, stitching, smart thumbnails, watermarking, caption transcription, shot detection, face detection, object detection, and more.

Playback in seconds.

/Step 1

POST a video

POST the URL to any video file using the Mux API. Mux will ingest the file, create a video asset, and prepare it for streaming.

POST https://api.mux.com/video/v1/assets

{
  "input": "http://example.com/myVideo.mp4",
  "playback_policy": "public"
}

SDKs for the languages you love: SDK Language Logos

/Step 2

Receive a Playback ID

The response to the POST request will include a Playback ID, which will be used to stream the video, so keep it handy.

RESPONSE BODY

{
  "data": {
    "id": "12345678-abcd-1234-abcd-1234abcd1234",
    "playback_ids": [
      {
        "id": "87654321",
        "policy": "public"
      }
    ]
  }
}
/Step 3

Play it anywhere

Within seconds the video is ready to be streamed. Use the Playback ID to construct a stream.mux.com URL that's compatible will all major players. Mux just-in-time creates the right renditions for every device and bandwith, resulting in lower costs and better viewer experiences.

https://stream.mux.com/{PLAYBACK_ID}.m3u8
Video Player Logos
/Step 1

Create a Live Key

Use the Mux API to create a new Live Key

POST https://api.mux.com/video/v1/live-keys

{
  "protocol": "rtmp",
  "playback_policy": "public"
}

SDKs for the languages you love: SDK Language Logos

/Step 2

Receive a Live Key and Endpoint

The API response will include a `key` and an `endpoint`. Use both to configure live streaming software and push a live stream to Mux.

RESPONSE BODY

{
  "data": {
    "key": "a1f74120ncs6v7n8d54",
    "endpoint": "rtmp://live-endpoint.mux.com/",
    "playback_ids": [
      "id": "87654321",
      "policy": "public"
    ]
  }
}
/Step 3

Play it anywhere

The API response also included a Playback ID. Use the Playback ID to construct a `stream.mux.com` URL that's compatible will all major players. Mux just-in-time creates the right renditions for every device and bandwith, resulting in lower costs and better viewer experiences.

https://stream.mux.com/{PLAYBACK_ID}.m3u8
Video Player Logos

Video has never been this easy.

Thumbnails

Request a single thumbnail or an entire storyboard.

GET stream.mux.com/{PLAYBACK_ID}/thumbnail.png?time=30s&width=250

Captions

Add a caption track.

POST api.mux.com/video/v1/assets/{ASSET_ID}/tracks

{
 "input": [
   {
     "url": "s3://my-bucket/spanish-captions.vtt",
     "language": "es"
   }
 ]
}

Stitching

Concatenate two streams.

GET stream.mux.com/stitch/{PLAYBACK_ID},{PLAYBACK_ID}/manifest.m3u8

Clipping

Create a video clip asset.

POST api.mux.com/video/v1/assets

{
 "input": [
   {
     "url": "mux://asssets/{ASSET_ID}",
     "start": "0s",
     "end": "30s"
   }
 ]
}

Scene Changes

Get a list of automatically detected scene changes.

GET stream.mux.com/{PLAYBACK_ID}/scene-changes

Built by the Experts

Mux creates tools to help developers build better online video. Founded by experts, including the creators of the biggest open-source video player on the web, the largest video transcoding service in the cloud, and an active community for engineers working on video technology, Mux believes that video publishers of all sizes should have access to the tools they need to deliver high-quality video experiences easily and efficiently.

Mux is trusted by

Request Early Access

We’re looking for developers excited about building better video to give us feedback and improve this product. Send us your info to discuss further and also stay updated on the launch. 🚀