Batch automation

Folder ingest automation for video libraries

Queue one encode job per video discovered in S3-compatible or Google Drive folders, with caps, metadata, output destinations, and webhook reconciliation.

Folder ingest is for imports, backfills, and customer libraries where the unit of work is not one hand-picked file but a controlled folder or prefix.

Folder ingest requestautomation
await client.onDemandIngestFolder({
  externalIdPrefix: "library-import-2026-07",
  sourceS3: {
    bucket: "customer-source",
    prefix: "incoming/"
  },
  outputDestination: "s3",
  outputS3: {
    bucket: "customer-output",
    prefix: "encoded/"
  },
  codec: "h264",
  resolution: "1080p",
  maxFiles: 50
});

Discover and queue supported video files from a folder or prefix.

Cap work with maxFiles while testing new workflows.

Group jobs with externalIdPrefix and metadata.

Reconcile every output independently through status reads or webhooks.

Workflow

Built for jobs that should run without a human babysitting a tab

Each automation page maps to the same production path: API request, durable job row, queue, Rust worker, storage upload, terminal event, and reconciliation.

  1. Step 1

    Choose a source folder in S3-compatible storage or Google Drive.

  2. Step 2

    Submit an ingest request with maxFiles, output destination, and shared encode settings.

  3. Step 3

    Store the returned job ids with your import or batch record.

  4. Step 4

    Use webhook events or status polling to update each asset as it completes.

Controlled discovery

Folder ingest queues video files only and supports maxFiles so initial runs remain bounded.

Shared encode recipe

Apply the same codec, resolution, audio, frame-rate, and scale policies across a discovered batch.

Per-job reconciliation

Each discovered file becomes a normal job with the same status, webhook, and report behavior as single encodes.

Automation questions

Is folder ingest a separate worker path?

No. Folder ingest creates normal durable jobs that are processed by the same Rust worker path.

Can I use Google Drive folders?

Yes, Google Drive folder workflows are supported for service-account based integrations.

How do I avoid a huge accidental batch?

Start with a small maxFiles value, verify output behavior, then raise the cap once the workflow is proven.

Related automation pages

Start with a real estimate

Choose your codec, resolution, FPS, bitrate, quality, and optimization settings. Convertrilo shows the NEU estimate before credits are reserved, and failed jobs release reserved credits back to your balance.