Skip to content

docs: document ffmpeg multi-file output and input sources#17

Merged
a-essawy merged 11 commits into
mainfrom
docs/ffmpeg-io-model
Jun 6, 2026
Merged

docs: document ffmpeg multi-file output and input sources#17
a-essawy merged 11 commits into
mainfrom
docs/ffmpeg-io-model

Conversation

@a-essawy

@a-essawy a-essawy commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Documents the new input/output model for Rendobar's FFmpeg API across both ffmpeg doc pages.

Inputs

The inputs map is the command's working directory. Each value can be:

  • a URL string (shorthand) or { "url": "..." }
  • { "content": "..." } for inline text up to 64 KB (subtitles, concat lists, LUTs)
  • { "ref": "uploads/..." } for an already-uploaded file

Documents that aux files read by a filter (subtitles=, lut3d=, drawtext fontfile=, concat lists) must come through inputs rather than -i. Added a subtitle-burn example using { "content": ... }.

Outputs

The filenames the command writes define the output.

  • Single file returns a download URL (unchanged).
  • Multiple files (HLS/DASH, image sequences, -f segment) return an output object with type, url, playlist, baseUrl, expiresAt, fileCount, files[], and manifestUrl. URLs expire and refresh by re-fetching the job. Added an HLS example response.

Failures

A failed job now exposes errorDetail: the last ~2 KB of the real FFmpeg stderr.

Pages changed

  • guides/ffmpeg.mdx (how-to) — Input sources section, subtitle-burn example, Output files section with HLS example, errorDetail in error handling
  • job-types/ffmpeg.mdx (reference) — inputs param with source shapes, output/errorDetail response fields

Validation

node scripts/validate-frontmatter.mjs passes (frontmatter untouched). Contract verified against the monorepo source of truth (packages/shared/src/jobs/definitions/shared.ts input schema, packages/shared/src/api/responses.ts job response schema).

@mintlify

mintlify Bot commented Jun 6, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Rendobar 🟢 Ready View Preview Jun 6, 2026, 4:10 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The job.completed and job.failed webhook payloads now carry the same
output and error contract as GET /jobs/:id. Replace the old
result.url / metadata / price / priceFormatted fields with the unified
output ({ data, file, files, expiresAt }) and cost
({ amount, currency, formatted }), and point to the canonical
concepts/job-output reference. job.failed now documents the full error
shape (code, message, detail, retryable).
@a-essawy a-essawy merged commit f328940 into main Jun 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant