Skip to content

Video for Node with Mux

Easily build beautiful video experiences into your Node app.

Installation

# npm
npm install @mux/mux-node --save

# yarn
yarn add @mux/mux-node

Usage

To start, you'll need a Mux access token. Once you've got that locally, you're off to the races!

const Mux = require('@mux/mux-node');
// assuming process.env.MUX_TOKEN_ID and process.env.MUX_TOKEN_SECRET 
// contain your credentials
const { Video, Data }  = new Mux();

// Create an asset
const asset = await Video.Assets.create({
  input: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4',
});

Video for your Node app that streams beautifully, everywhere

Getting started is fast and easy with direct uploads - this means no intermediate storage for you to manage.
Mux integrates with all major web and mobile video players.
Automatically deliver the best user experience for every combination of device, browser, location, bandwidth, etc.
Also includes helpers for Mux Data if you want to include performance metrics into your own dashboard client.

Flexible and future-proof

Ingest using almost any codec, including H.264, H.265, VP9, and Apple ProRes. Get multi-bitrate adaptive streaming with HLS delivery.

Adapt to new devices and codecs with no extra work. We’ll automatically update codecs and renditions over the life of a video.

Scales automatically
Security for your content

Security for your video content

Use signed playback policies by easily creating signed URL tokens for your Mux assets when you want to control access to a piece of content.

Fork it.

We ❤️ issues, pull requests, forks, and compliments (constructive criticism counts too).


Behind the scenes

Mux is made up of an advanced transcoding engine, streaming origin, and expertly configured CDNs which all work together to provide the best video experience for your users with the least amount of headache for you.

Any video

Encoding
arrow

Mux Video API

Encoding
arrow

Every viewer

Encoding

Advanced encoding for the most efficient streaming

Just-in-time transcoding

Get the fastest video publishing possible. Videos are encoded while the first viewers watch them so your users can publish instantly.

Per-title encoding

The right resolutions and bitrates are dynamically created for each video based on data, giving your users the best possible experience based on all their unique viewing criteria.

Need live streaming for your Node app? Yep, we do that too.

Handle thousands of concurrent live streamers and millions of viewers without worrying about spinning up additional servers.

RTMP for ingest and HLS for delivery so your application can stream from a mobile app, broadcast software, or hardware encoder and broadcast to any device.

Transition seamlessly from live to VoD with recordings available immediately after the event with no waiting for additional processing.

Learn more

GET /video

Start your free risk trial with $20 in free credit.