Change video aspect ratio / resolution with coloured padding. Takes a video and reframes it to the target width x height. The original video is scaled to fit inside the new dimensions (maintaining aspect ratio) and the remaining space is filled with the chosen background colour. Example — landscape 1280x720 → portrait 1080x1920 with white bars: {"url": "https://cdn.example.com/video.mp4", "width": 1080, "height": 1920, "bg_color": "#ffffff"}
Change video aspect ratio / resolution with coloured padding.
Takes a video and reframes it to the target width x height. The original video is scaled to fit inside the new dimensions (maintaining aspect ratio) and the remaining space is filled with the chosen background colour.
Example — landscape 1280x720 → portrait 1080x1920 with white bars: {"url": "https://cdn.example.com/video.mp4", "width": 1080, "height": 1920, "bg_color": "#ffffff"}
{
"url": "https://example.com/",
"width": 0,
"height": 0,
"bg_color": "#000000"
}
{
"job_id": "f595b9ad-1e15-4452-b7c2-8f8ff09c0a34",
"status": "pending",
"message": "Job created. Poll status_url for progress.",
"job_type": "caption",
"result_url": "https://eranol.com/api/v1/ffmpeg/result/f595b9ad-1e15-4452-b7c2-8f8ff09c0a34",
"status_url": "https://eranol.com/api/v1/ffmpeg/status/f595b9ad-1e15-4452-b7c2-8f8ff09c0a34"
}
Send your requests to the following URL using the specified HTTP method.
POST https://eranol.com/api/v1/ffmpeg/video/reframeInclude the following headers with every request. Your API key is required for authentication.
Send the following JSON payload in the request body. Adjust the values to match your use case.
{
"url": "https://example.com/",
"width": 0,
"height": 0,
"bg_color": "#000000"
}Use the following cURL command to make a request to this API endpoint. Replace YOUR_API_KEY with your actual API key from the dashboard.
curl -X POST "https://eranol.com/api/v1/ffmpeg/video/reframe" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/","width":0,"height":0,"bg_color":"#000000"}'Below is an example of a successful JSON response from this endpoint.
{
"job_id": "f595b9ad-1e15-4452-b7c2-8f8ff09c0a34",
"status": "pending",
"message": "Job created. Poll status_url for progress.",
"job_type": "caption",
"result_url": "https://eranol.com/api/v1/ffmpeg/result/f595b9ad-1e15-4452-b7c2-8f8ff09c0a34",
"status_url": "https://eranol.com/api/v1/ffmpeg/status/f595b9ad-1e15-4452-b7c2-8f8ff09c0a34"
}A successful request will return one of the following HTTP status codes.