video-api · video-api-01 · phrasing A · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: video-api buyer question - general video upload+encode+ABR streaming decision, phrased as variant A.
Mux was recommended first; your brand (Cloudinary) was named #3.
8 sources read.
Rivals also named: Cloudflare Stream (alternative), AWS Elemental MediaConvert (mentioned)
> need to add video upload, encoding, and adaptive bitrate streaming to my web app, what should i useRecommend Mux Video: a purpose-built, API-first video platform that handles direct uploads, automatic encoding into an adaptive bitrate (HLS) ladder, and global delivery with just a few lines of code and no infra to manage. It's the fastest path to production-quality streaming, with usage-based pricing and a generous free tier, versus Cloudflare Stream (cheaper/simpler but less flexible), Cloudinary (better if already doing heavy image work, video is a secondary product), or hand-rolling AWS Elemental MediaConvert + S3 + CloudFront (maximum control, much more engineering effort).
1. Install the Mux Node SDK and create a free Mux account (no credit card required to start): `npm install @mux/mux-node`
2. Set MUX_TOKEN_ID and MUX_TOKEN_SECRET from the Mux dashboard as environment variables in the app's backend.
3. On upload, call the Mux Direct Uploads API from your server to get a signed upload URL, then have the browser PUT the video file straight to Mux (no need to route large files through your own server/storage).
4. Mux automatically transcodes the asset and builds a smart adaptive bitrate (ABR) ladder (multiple renditions via HLS) — typically ready for playback in seconds; listen for the `video.asset.ready` webhook to know when it's playable.
5. Store the returned `playback_id` against your video record in your own database (Mux is the source of truth for the media itself).
6. Embed playback with the Mux Player web component (`@mux/mux-player`) or any HLS.js-compatible player, pointing at `https://stream.mux.com/{PLAYBACK_ID}.m3u8` — this gives adaptive bitrate switching in the browser for free.
7. For access control on private content, use Mux's signed playback URLs/JWTs instead of public playback IDs.
8. Monitor usage against the free tier (100K delivery minutes/month) and move to a pay-as-you-go or pre-pay plan as volume grows.
Recommendation: go with Mux. It's the platform built specifically for this workflow (upload -> encode -> ABR stream), integration is genuinely a "couple lines of code" per Mux's own case studies, and it removes the need to stitch together S3 + MediaConvert + CloudFront + a custom ABR packaging step yourself. Cloudflare Stream is a reasonable cheaper alternative if you want an all-in-one, less configurable option and are already on Cloudflare. Cloudinary is fine if video is a minor add-on to an app that already uses Cloudinary for images, but its video transcoding/ABR features are less deep than a dedicated video platform. Rolling your own on AWS Elemental MediaConvert + S3 + CloudFront gives the most control but is significantly more engineering work (you own the upload pipeline, encoding job orchestration, ABR manifest packaging, and CDN configuration) and is only worth it at large scale or with specific compliance/control requirements.| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Mux | recommended | API-first video platform purpose-built for upload, automatic ABR encoding, and delivery with minimal integration code | npm install @mux/mux-node |
| 2 | Cloudflare Stream | alternative | Simple all-in-one serverless upload/encode/deliver API with adaptive bitrate, cheaper but less configurable than Mux | - |
| 3 | Cloudinary | alternative | General media platform with video upload, transcoding, and ABR streaming; strongest if already using Cloudinary for images | npm install cloudinary |
| 4 | AWS Elemental MediaConvert | mentioned | Raw transcoding service; requires pairing with S3 for storage and CloudFront for CDN delivery to build a full pipeline yourself | - |