← Latest articles

AROUND / EDITORIAL

Automating QC Workflows with n8n

Automating QC Workflows with n8n

n8n is a workflow automation platform that connects triggers, processing steps, APIs, and notifications. In a video quality control pipeline, FFmpeg and ffprobe perform the media analysis while n8n coordinates the process around them.

The important design goal is reuse. The QC workflow should not be rewritten when an operation changes its Media Asset Management system. Instead, the workflow keeps a stable contract and loads the MAM-specific configuration or adapter at the integration boundary.

What n8n adds to video QC

A webhook, file event, or schedule can start an n8n execution. The workflow sends the asset to a worker, runs ffprobe and FFmpeg checks, normalizes the output into a common QC result, applies PASS, WARN, or FAIL rules, and then calls the configured MAM adapter.

This provides traceability, retries, branching, and a record of each execution without coupling the media checks to one vendor API.

Change the MAM without changing the workflow

Keep the orchestration workflow stable and isolate vendor details in configuration. The selected MAM profile can define its endpoint, credentials, metadata mapping, status values, notification route, and acceptance thresholds. An adapter translates the common QC result into the MAM API contract.

  • Stable input: every MAM sends an asset identifier and media location.
  • Common analysis: the same FFmpeg and ffprobe checks produce normalized JSON.
  • Replaceable adapter: only the MAM integration changes when the destination changes.
  • Configuration: credentials, thresholds, and field mappings stay outside the workflow logic.
  • Safe migration: test a new adapter against the same QC fixtures before switching traffic.

This approach lets one team move from one MAM to another, or support both during a migration, without duplicating the QC workflow.

The analysis worker

The worker can inspect streams with ffprobe -v error -show_format -show_streams -print_format json input.mp4, detect black frames with blackdetect, detect silence with silencedetect, and run a full decode pass for bitstream errors. n8n receives the output and normalizes it instead of interpreting media directly.

Idempotency and failure handling

Use the asset hash, MAM profile, and workflow version as the idempotency key. Retry transient worker or API failures, and keep the analysis result separate from the destination update so a retry cannot write to the wrong MAM.

Limits

n8n does not replace FFmpeg, a MAM, or human review. Full decode checks remain CPU intensive, and dark creative shots can look like black-frame errors. The value is a reusable orchestration layer that keeps technical QC consistent while integrations evolve.