media-processing
Media Processor & Video Converter API A high-performance, lightweight, and stateless HTTP API designed for processing and converting video files. Built on top of Bun & Hono and powered by a custom Rust-native FFmpeg executor, this API offers ultra-fast processing speeds with low overhead. It is ideal for applications requiring on-the-fly video transformations, automated asset optimization, and…
media-processing endpoints
| Method | Endpoint | Description |
|---|---|---|
| Process | ||
| POST |
compressVideo /compress |
Reduces the video size via bitrate. `quality`: `low` (800k), `medium` (2M, default), `high` (4M). |
| POST |
resizeVideo /resize |
Resizes to `width` x `height` (pixels), preserving the aspect ratio with padding. |
| POST |
trimVideo /trim |
Trims starting from `start`. Provide **`duration`** (length of the clip) **or** **`end`** (final timestamp). Both accept seconds (`5`, `5.5`) or `HH:MM:SS[.ms]` (`00:00:05`). |
| POST |
getMetadata /metadata |
Returns the file metadata (JSON output from ffprobe: format and streams). |
| POST |
convertVideo /convert/{format} |
Converts the video to `mp4`, `mov` or `mkv`. - `mp4`: H.264 + AAC (web/mobile compatible). - `mov`: ProRes HQ + PCM (high quality for editing). - `mkv`: H.264, copies the… |
| POST |
generateThumbnail /thumbnails |
Extracts a single frame from the video as an image. |
| Async Progress | ||
| POST |
convertVideoAsync /convert/{format}/progress |
|
| POST |
trimVideoAsync /trim/progress |
|
| GET |
downloadJobResult /progress/{jobId}/download |
Available when the job is `completed`. The file is removed after download. |
| POST |
resizeVideoAsync /resize/progress |
|
| POST |
compressVideoAsync /compress/progress |
|
| GET |
getJobStatus /progress/{jobId} |
|
| GET |
streamJobEvents /progress/{jobId}/events |
Server-Sent Events stream. Emits `progress`, `complete` (with `downloadUrl`) and `error` events. |
| System | ||
| GET |
getOpenApiSpec /openapi.yaml |
Returns this very OpenAPI document in YAML. |
| GET |
getHealth /health |
Checks the service status and FFmpeg availability. |
media-processing pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 5 / minute |
|
| PRO Recommended | $19 / month | 10 / minute |
|