Merge Videos in order with this api Video format we support : mp4,webm,avi,mkv,mov,flv,wmv,ts,mts,m4v,3gp,ogv
Merge Videos in order with this api
Video format we support : mp4,webm,avi,mkv,mov,flv,wmv,ts,mts,m4v,3gp,ogv
{
"clips": [
{
"url": "https://cdn.eranol.com/videos/intro.mp4",
"order": 1
},
{
"url": "https://cdn.eranol.com/videos/main-segment.mov",
"order": 2
},
{
"url": "https://cdn.eranol.com/videos/outro.webm",
"order": 3
}
]
}
{
"detail": [
{
"loc": [
"body",
"clips"
],
"msg": "Value error, Each clip must have a unique 'order' value.",
"type": "value_error",
"input": [
"..."
]
}
]
}
{
"clips": [
{
"url": "https://cdn.eranol.com/videos/intro.mp4",
"order": 1
},
{
"url": "https://cdn.eranol.com/videos/main-segment.mov",
"order": 2
},
{
"url": "https://cdn.eranol.com/videos/outro.webm",
"order": 3
}
],
"transition": {
"type": "fade",
"duration": 0.5
}
}
{
"clips": [
{
"url": "https://cdn.eranol.com/videos/clip1.mp4",
"order": 1
},
{
"url": "https://cdn.eranol.com/videos/clip2.mp4",
"order": 2
}
],
"transition": {
"type": "slideleft",
"duration": 0.8
}
}
[
{
"job_id": "1406c589-a1f4-45d5-8745-aae07bc4de38",
"status": "pending",
"message": "Job created. Poll status_url for progress.",
"result_url": "https://eranol.com/api/v1/ffmpeg/result/1406c589-a1f4-45d5-8745-aae07bc4de38",
"status_url": "https://eranol.com/api/v1/ffmpeg/status/1406c589-a1f4-45d5-8745-aae07bc4de38"
}
]
Send your requests to the following URL using the specified HTTP method.
POST https://eranol.com/api/v1/ffmpeg/video/concatSend the following JSON payload in the request body. Adjust the values to match your use case.
{
"clips": [
{
"url": "https://cdn.eranol.com/videos/intro.mp4",
"order": 1
},
{
"url": "https://cdn.eranol.com/videos/main-segment.mov",
"order": 2
},
{
"url": "https://cdn.eranol.com/videos/outro.webm",
"order": 3
}
]
}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/concat" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"clips":[{"url":"https://cdn.eranol.com/videos/intro.mp4","order":1},{"url":"https://cdn.eranol.com/videos/main-segment.mov","order":2},{"url":"https://cdn.eranol.com/videos/outro.webm","order":3}]}'Below is an example of a successful JSON response from this endpoint.
[
{
"job_id": "1406c589-a1f4-45d5-8745-aae07bc4de38",
"status": "pending",
"message": "Job created. Poll status_url for progress.",
"result_url": "https://eranol.com/api/v1/ffmpeg/result/1406c589-a1f4-45d5-8745-aae07bc4de38",
"status_url": "https://eranol.com/api/v1/ffmpeg/status/1406c589-a1f4-45d5-8745-aae07bc4de38"
}
]A successful request will return one of the following HTTP status codes.