A single script that dubs a folder of videos: it creates a token (and a fresh one when the token expires), finds its project by name or creates it (with an Idempotency-Key, so a retried create makes one project), uploads each file through the API, starts the project, waits for every file, and downloads the outputs. No AWS account is needed, and running it again reuses the project.
SW_VOD_API overrides the base URL (Environments).

Taking it further

  • Parallel parts. Send several parts of a file at once for faster uploads of large files.
  • Retry failures with POST /projects/{id}/files/{name}/retry, then start.
  • Stream downloads. The Node.js example buffers each output in memory for brevity; for large files, pipe fetch(url).body into a file stream.