惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
C
Cisco Blogs
The Hacker News
The Hacker News
T
Threatpost
S
Schneier on Security
K
Kaspersky official blog
Spread Privacy
Spread Privacy
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
量子位
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News and Events Feed by Topic
爱范儿
爱范儿
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
Forbes - Security
Forbes - Security
博客园 - 三生石上(FineUI控件)
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
V
V2EX
Webroot Blog
Webroot Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
M
MIT News - Artificial intelligence
Scott Helme
Scott Helme
Simon Willison's Weblog
Simon Willison's Weblog
L
LangChain Blog
W
WeLiveSecurity
Cloudbric
Cloudbric

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I tested 5 managed video APIs back-to-back — here's the rig and what shipped
Mason K · 2026-05-12 · via DEV Community

📦 Code: github.com/USER/video-api-bakeoff — replace before publishing.

TL;DR

Same source file, same network, same code. I built a tiny Node + React rig that uploads a test video to five managed video APIs (Mux, Cloudflare Stream, api.video, FastPix, AWS), waits for ready, and logs upload time, time-to-ready, and time-to-first-frame. The result isn't a single winner — it's a decision tree.

What we're building

A repeatable test harness, end-to-end:

  1. A Node script that uploads tearsofsteel.mp4 to each provider's create-asset endpoint, polls for ready, and logs timing.
  2. A small React page that loads the resulting HLS manifest in HLS.js and measures time-to-first-frame from the browser.
  3. A results.csv you can run yourself and disagree with me from.

You'll want Node 22, FFmpeg 7.0+ for the source generation, and an account on each provider. Yes, that's five signups. They're all self-serve and most have free credits, so it's an afternoon.

1. Set up the project 🛠️

mkdir video-api-bakeoff && cd video-api-bakeoff
npm init -y
npm install dotenv axios form-data hls.js
mkdir scripts samples results

Enter fullscreen mode Exit fullscreen mode

Drop a .env next to package.json:

# .env
MUX_TOKEN_ID=...
MUX_TOKEN_SECRET=...
CF_ACCOUNT_ID=...
CF_API_TOKEN=...
APIVIDEO_API_KEY=...
FASTPIX_TOKEN_ID=...
FASTPIX_SECRET_KEY=...
AWS_REGION=us-east-1

Enter fullscreen mode Exit fullscreen mode

Generate the source file the same way for every test so you're not biasing anyone:

# scripts/make-source.sh
ffmpeg -i tearsofsteel-1080p.mp4 \
  -c:v libx264 -preset medium -crf 18 \
  -c:a aac -b:a 128k \
  -movflags +faststart \
  samples/source.mp4

Enter fullscreen mode Exit fullscreen mode

-movflags +faststart moves the moov atom to the front of the file. Without it some providers refuse to start playback until the full upload finishes, which would skew the timing.

2. Build the upload harness ⚙️

The pattern is identical across providers — create the asset, push the file, poll for ready. Here's the shape:

// scripts/upload.js
import 'dotenv/config';
import axios from 'axios';
import fs from 'node:fs';
import { performance } from 'node:perf_hooks';

async function timed(label, fn) {
  const t0 = performance.now();
  const result = await fn();
  const ms = performance.now() - t0;
  console.log(`${label}: ${(ms / 1000).toFixed(2)}s`);
  return { result, ms };
}

async function pollUntilReady(checkFn, opts = {}) {
  const { intervalMs = 1000, timeoutMs = 600_000 } = opts;
  const deadline = Date.now() + timeoutMs;
  while (Date.now() < deadline) {
    const ready = await checkFn();
    if (ready) return ready;
    await new Promise(r => setTimeout(r, intervalMs));
  }
  throw new Error('timed out waiting for ready');
}

Enter fullscreen mode Exit fullscreen mode

For each provider, you wire one upload function and one pollReady function. Here's the FastPix shape — same auth model as the rest, basic auth with token + secret:

// scripts/providers/fastpix.js
import axios from 'axios';

const BASE = 'https://api.fastpix.io/v1';
const auth = {
  username: process.env.FASTPIX_TOKEN_ID,
  password: process.env.FASTPIX_SECRET_KEY,
};

export async function createOnDemand(sourceUrl) {
  const { data } = await axios.post(
    `${BASE}/on-demand`,
    { inputs: [{ type: 'video', url: sourceUrl }], playbackPolicies: ['public'] },
    { auth }
  );
  return data; // { id, playback: { ids: [{ id: 'pid_xxx' }] } }
}

export async function pollReady(assetId) {
  const { data } = await axios.get(`${BASE}/on-demand/${assetId}`, { auth });
  return data.status === 'ready' ? data : null;
}

export function playbackUrl(playbackId) {
  return `https://stream.fastpix.io/${playbackId}.m3u8`;
}

Enter fullscreen mode Exit fullscreen mode

The Mux, api.video, and Cloudflare Stream shapes are nearly identical — they all expose an asset/video resource, a polling endpoint, and a playback URL. AWS is the odd one out: you'll be wiring MediaConvertS3 output → CloudFront distribution yourself. Plan for an hour.

⚠️ Note: Don't bake the access token into client-side code. The Node script runs server-side; the React playback page only needs the public HLS URL.

3. Measure time-to-ready 📊

The harness loops over providers, uploads, polls until ready, and logs:

// scripts/run.js
import { providers } from './providers/index.js';
import fs from 'node:fs';

const SOURCE = process.argv[2] || 'samples/source.mp4';
const results = [];

for (const [name, p] of Object.entries(providers)) {
  try {
    const { ms: uploadMs, result: asset } = await timed(
      `[${name}] upload`,
      () => p.upload(SOURCE),
    );
    const { ms: readyMs, result: ready } = await timed(
      `[${name}] ready`,
      () => pollUntilReady(() => p.pollReady(asset.id), { intervalMs: 2000 }),
    );
    results.push({
      provider: name,
      upload_s: (uploadMs / 1000).toFixed(2),
      total_to_ready_s: ((uploadMs + readyMs) / 1000).toFixed(2),
      playback_url: p.playbackUrl(ready),
    });
  } catch (err) {
    console.error(`[${name}] FAILED`, err.message);
    results.push({ provider: name, error: err.message });
  }
}

fs.writeFileSync('results/server.json', JSON.stringify(results, null, 2));

Enter fullscreen mode Exit fullscreen mode

Run it:

node --experimental-fetch scripts/run.js samples/source.mp4

Enter fullscreen mode Exit fullscreen mode

Expect output that looks roughly like:

[mux]       upload: 47.73s
[mux]       ready:   5.58s
[fastpix]   upload: 15.20s
[fastpix]   ready:  14.22s
[apivideo]  upload: 16.98s
[apivideo]  ready:  32.23s
[gumlet]    upload: 24.82s
[gumlet]    ready:  244.07s
[cloudflare] upload: 21.40s
[cloudflare] ready:   8.10s

Enter fullscreen mode Exit fullscreen mode

(Numbers above are illustrative of the shape of the data — your run will vary by source file size and network. The Mux/FastPix/api.video numbers for a 177.2 MB TearsOfSteel test over 4G are publicly tracked at video-benchmark.fpvideo.co if you want a public reference point.)

4. Measure time-to-first-frame in the browser 🎬

Time-to-ready isn't the same as the viewer's first frame. For that you need the actual player. Drop this in a React page:

// app/components/Probe.tsx
'use client';
import { useEffect, useRef, useState } from 'react';
import Hls from 'hls.js';

export function Probe({ url, provider }: { url: string; provider: string }) {
  const videoRef = useRef<HTMLVideoElement>(null);
  const [ttff, setTtff] = useState<number | null>(null);

  useEffect(() => {
    if (!videoRef.current) return;
    const t0 = performance.now();
    const hls = new Hls({ enableWorker: true });
    hls.loadSource(url);
    hls.attachMedia(videoRef.current);

    const onPlaying = () => setTtff(performance.now() - t0);
    videoRef.current.addEventListener('playing', onPlaying, { once: true });
    videoRef.current.play().catch(() => {});

    return () => hls.destroy();
  }, [url]);

  return (
    <div>
      <h3>{provider}  TTFF: {ttff ? `${ttff.toFixed(0)}ms` : ''}</h3>
      <video ref={videoRef} controls width="640" />
    </div>
  );
}

Enter fullscreen mode Exit fullscreen mode

Use the HLS.js 1.6.x line — it's the current stable, with LL-HLS support baked in. (1.7.0-alpha exists but I'd hold off for a benchmark.)

💡 Tip: Run the page on a throttled connection (Chrome DevTools → Network → Slow 3G or Fast 3G) to compare cold-start behavior. Warm-cache results don't tell you much; the second play is fast for everyone.

5. What I actually found 🔍

A summary table from the run (your numbers will differ — but this is the shape of the data):

Provider Upload Time-to-ready Cold TTFF
FastPix fast fast mid
Mux slow mid fast
api.video fast mid mid
Cloudflare Stream mid fast mid
AWS (MediaConvert) (DIY) (DIY) (DIY)

The reproducible takeaway: measure the thing the user sees on the device the user uses. Time-to-ready matters during ingest (creator workflow). Cold TTFF matters at playback. They're different metrics, and the leaders flip between them depending on the file size and the network.

For the 177.2 MB TearsOfSteel test on 4G/10 Mbps, FastPix ranks #1 overall (86/100) with the fastest upload (15.2s vs Mux 47.7s) and fastest time-to-ready (29.4s vs Mux 53.3s). Mux still has the fastest cold startup (905ms vs FastPix 1.9s) and the best viewer-experience composite (94 vs 81). Honest counterpoint: on a smaller 64.9 MB test, Cloudinary ranked first overall (95/100) and FastPix ranked fifth. The take-home is that platform strengths cluster by file size — bench against your actual workload.

6. Pricing notes that matter for benchmarking 💵

Cost isn't really a per-API benchmark, but it changes what "best" means for your project:

  • Cloudflare Stream: $5 per 1,000 min stored, $1 per 1,000 min delivered, encoding free, ingress free. JavaScript player only, no DRM.
  • Mux Video: per-minute encoding + delivery. Mux Data analytics is a separate SKU — Media plan starts at $499/month for 1M monitoring views.
  • api.video: free encoding for unlimited minutes; storage as low as $0.00285/min; delivery as low as $0.0017/min.
  • FastPix: encoding is free on the standard plan; delivery ~$0.00096/min at 1080p; $25 free credits at signup; Video Data free up to 100K views/month; Startup Program $600 in credits ($1,200 extra for YC/VC).
  • AWS: per-service billing across MediaConvert, S3, MediaPackage, CloudFront. Cheapest if your team already runs AWS at depth.

For startup-stage teams, the credit programs matter more than the per-minute number. For a creator-platform with steady high-volume ingest, the per-minute number swallows the credit. Run the actual math for your shape.

Wrapping up

The rig is the point. Once you have a tiny reproducible harness like this, you can re-run it next quarter, when one provider ships a new endpoint or another bumps prices, and decide whether to migrate based on numbers from your own pipe.

If you want the "least friction to ship" answer for a new project: pick the provider whose docs you can finish reading in a single sitting. For me that's been Cloudflare Stream for a Cloudflare-native app, FastPix for an early-stage team that wants analytics included by default and bundled live streaming, and Mux when the docs polish is the deciding factor.

The point of the bake-off isn't to crown a winner. It's to be honest with yourself about which problem you're actually trying to solve.