Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(media): state the ffmpeg 4.4 floor and the 30 fps video cap
Yudhi Armyndharis8824e2455e19
diff --git a/.env.example b/.env.exampleindex c7f7d223b..7d7e0bb53 100644--- a/.env.example+++ b/.env.example@@ -574,6 +574,7 @@ WEBHOOK_SSRF_PROTECT=true## The official Docker image already ships ffmpeg, so there enabling the flag is all that is needed.# On a source install the binary must be present, otherwise the endpoints answer 503 and say so.+# Video conversion needs ffmpeg 4.4 or newer; an older binary fails every video conversion with 400.# ---------------------------------------------------------------------------# Session ownership (multi-process deployments)# ---------------------------------------------------------------------------diff --git a/docs/06-api-specification.md b/docs/06-api-specification.mdindex 15c79775c..d6bef77c9 100644--- a/docs/06-api-specification.md+++ b/docs/06-api-specification.md@@ -6571,7 +6571,8 @@ Reject a currently ringing incoming call. **Baileys only**: the whatsapp-web.jsServer-side transcoding into the shapes WhatsApp clients actually play. Disabled by default; set`MEDIA_CONVERSION_ENABLED=true`. The official Docker image already ships the `ffmpeg` binary these-endpoints run — on a source install it must be present, or they answer `503`.+endpoints run — on a source install it must be present, or they answer `503`. Video conversion+needs ffmpeg 4.4 or newer.Nothing is converted implicitly: sends behave exactly as before unless a caller runs media throughthese endpoints first and posts the result.@@ -6626,7 +6627,7 @@ including playlists and manifests, is refused with `400`.#### POST /api/sessions/:sessionId/media/convert/videoConvert video into an MP4 every WhatsApp client accepts: baseline H.264 with AAC audio, frame-fitted inside 1280x720, or 720x1280 for portrait (never upscaled), index moved to the front so playback can start before the whole+fitted inside 1280x720, or 720x1280 for portrait (never upscaled), frame rate capped at 30 fps, index moved to the front so playback can start before the wholefile arrives.**Errors:** `400` neither field given, a `url` that answers non-2xx, times out or cannot be reached, or ffmpeg refused the input (its reason is included) · `401` missing/invalid `X-API-Key` · `403` key lacks OPERATOR role · `413` media above the size cap · `503` conversion is disabled, the ffmpeg binary is not runnable, the conversion queue is saturated, or a `url` fetch through the session's egress proxy failed before any response, the proxy or the target at faultdiff --git a/docs/07-api-collection.md b/docs/07-api-collection.mdindex e8b826268..41cdc5730 100644--- a/docs/07-api-collection.md+++ b/docs/07-api-collection.md@@ -1750,8 +1750,8 @@ curl -X GET "$BASE/api/search?q=invoice&direction=incoming&limit=20" \Server-side transcoding into the shapes WhatsApp clients actually play. Disabled by default; set`MEDIA_CONVERSION_ENABLED=true`, and `ffmpeg` must be runnable (the official Docker image ships it)-or the routes answer `503`. Nothing is converted implicitly — run media through here first, then-post the result.+or the routes answer `503`; video conversion needs ffmpeg 4.4 or newer. Nothing is converted+implicitly — run media through here first, then post the result.#### GET /api/sessions/:sessionId/media/convert