samrendra.me
BackendMediaInfraactive

FFmpeg Media Worker

Node.js FFmpeg worker for thumbnails, watermarked previews, and delivery variants.

A Node.js / TypeScript FFmpeg worker for processing uploaded videos. Generates thumbnails, watermarked MP4 previews, and optional clean delivery MP4s. Reads from and writes to local disk or S3-compatible storage.

summary

A Node.js / TypeScript FFmpeg worker for processing uploaded videos. Generates thumbnails, watermarked MP4 previews, and optional clean delivery MP4s. Supports static image watermarks, dynamic text watermarks, and per-job watermark values. Reads from and writes to local disk or S3-compatible storage (AWS S3, Cloudflare R2, MinIO, Backblaze B2, DigitalOcean Spaces, Wasabi). Samples multiple frames and picks the most useful thumbnail to avoid black intro / fade-in frames. Documents production usage as a background worker fed by a queue or database table.

highlights
  • Built a Node.js / TypeScript FFmpeg worker for thumbnail extraction, watermarked previews, dynamic watermarking, and S3-compatible media input / output.

  • Designed media-processing jobs that support local and object-storage sources, static or per-job dynamic watermarks, and production worker deployment.

  • Implemented smart thumbnail selection by sampling multiple frames and choosing the most visually useful candidate.

tech
  • Node.js
  • TypeScript
  • FFmpeg
  • FFprobe
  • AWS SDK v3
keywords

FFmpeg · FFprobe · video processing · thumbnails · watermarks · background workers · object storage · media infrastructure

next project

up next

Customer Access Portal

Passwordless customer access for purchases, files, invoices, and licenses.

read it