Compose Videos in order with this api Video format we support : mp4,webm,avi,mkv,mov,flv,wmv,ts,mts,m4v,3gp,ogv
Compose Videos in order with this api
Video format we support : mp4,webm,avi,mkv,mov,flv,wmv,ts,mts,m4v,3gp,ogv
{
"overlays": [
{
"url": "https://drive.google.com/file/d/1m7tEpD6j6H0xc5sfdmP1_eYaSJ7f-KEn/view?usp=sharing",
"type": "video",
"end_time": 5,
"start_time": 2
},
{
"url": "https://drive.google.com/file/d/1KOiZk-hIufPfaPAA6EGsUjatX1gngHEL/view?usp=sharing",
"type": "image",
"end_time": 9,
"start_time": 7
},
{
"url": "https://drive.google.com/file/d/1qG-MU1puA97lbAGpxe73ujWHKOFBy6PC/view?usp=sharing",
"type": "image",
"end_time": 13,
"start_time": 10
},
{
"url": "https://drive.google.com/file/d/192Q3crtd78UCQBky19dlniUpcx6aMQyD/view?usp=sharing",
"type": "video",
"end_time": 17,
"start_time": 15
},
{
"url": "https://drive.google.com/file/d/1qmSrNHWtD_Xw5eLbqKy1X9SxIG6Df3sz/view?usp=sharing",
"type": "image",
"end_time": 20,
"start_time": 19
},
{
"url": "https://drive.google.com/file/d/1jARcma7U_ruvqsCpCGn2gdcHzgUIS4dE/view?usp=sharing",
"type": "image",
"end_time": 22,
"start_time": 21
},
{
"url": "https://drive.google.com/file/d/1u0CBgVwk2oEV5g-g6qt8CWgUogTbfBqM/view?usp=sharing",
"type": "video",
"end_time": 26,
"start_time": 23
},
{
"url": "https://drive.google.com/file/d/1GkxhO7z8-VDY-f9RCIOYaQmRBVDWAW7N/view?usp=sharing",
"type": "image",
"end_time": 29,
"start_time": 27
}
],
"main_video_url": "https://drive.google.com/file/d/1luBj--jqBTlCCMRcsYQYY1A3cPxkdprx/view?usp=drive_link"
}
[
{
"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/composeSend the following JSON payload in the request body. Adjust the values to match your use case.
{
"overlays": [
{
"url": "https://drive.google.com/file/d/1m7tEpD6j6H0xc5sfdmP1_eYaSJ7f-KEn/view?usp=sharing",
"type": "video",
"end_time": 5,
"start_time": 2
},
{
"url": "https://drive.google.com/file/d/1KOiZk-hIufPfaPAA6EGsUjatX1gngHEL/view?usp=sharing",
"type": "image",
"end_time": 9,
"start_time": 7
},
{
"url": "https://drive.google.com/file/d/1qG-MU1puA97lbAGpxe73ujWHKOFBy6PC/view?usp=sharing",
"type": "image",
"end_time": 13,
"start_time": 10
},
{
"url": "https://drive.google.com/file/d/192Q3crtd78UCQBky19dlniUpcx6aMQyD/view?usp=sharing",
"type": "video",
"end_time": 17,
"start_time": 15
},
{
"url": "https://drive.google.com/file/d/1qmSrNHWtD_Xw5eLbqKy1X9SxIG6Df3sz/view?usp=sharing",
"type": "image",
"end_time": 20,
"start_time": 19
},
{
"url": "https://drive.google.com/file/d/1jARcma7U_ruvqsCpCGn2gdcHzgUIS4dE/view?usp=sharing",
"type": "image",
"end_time": 22,
"start_time": 21
},
{
"url": "https://drive.google.com/file/d/1u0CBgVwk2oEV5g-g6qt8CWgUogTbfBqM/view?usp=sharing",
"type": "video",
"end_time": 26,
"start_time": 23
},
{
"url": "https://drive.google.com/file/d/1GkxhO7z8-VDY-f9RCIOYaQmRBVDWAW7N/view?usp=sharing",
"type": "image",
"end_time": 29,
"start_time": 27
}
],
"main_video_url": "https://drive.google.com/file/d/1luBj--jqBTlCCMRcsYQYY1A3cPxkdprx/view?usp=drive_link"
}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/compose" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"overlays":[{"url":"https://drive.google.com/file/d/1m7tEpD6j6H0xc5sfdmP1_eYaSJ7f-KEn/view?usp=sharing","type":"video","end_time":5,"start_time":2},{"url":"https://drive.google.com/file/d/1KOiZk-hIufPfaPAA6EGsUjatX1gngHEL/view?usp=sharing","type":"image","end_time":9,"start_time":7},{"url":"https://drive.google.com/file/d/1qG-MU1puA97lbAGpxe73ujWHKOFBy6PC/view?usp=sharing","type":"image","end_time":13,"start_time":10},{"url":"https://drive.google.com/file/d/192Q3crtd78UCQBky19dlniUpcx6aMQyD/view?usp=sharing","type":"video","end_time":17,"start_time":15},{"url":"https://drive.google.com/file/d/1qmSrNHWtD_Xw5eLbqKy1X9SxIG6Df3sz/view?usp=sharing","type":"image","end_time":20,"start_time":19},{"url":"https://drive.google.com/file/d/1jARcma7U_ruvqsCpCGn2gdcHzgUIS4dE/view?usp=sharing","type":"image","end_time":22,"start_time":21},{"url":"https://drive.google.com/file/d/1u0CBgVwk2oEV5g-g6qt8CWgUogTbfBqM/view?usp=sharing","type":"video","end_time":26,"start_time":23},{"url":"https://drive.google.com/file/d/1GkxhO7z8-VDY-f9RCIOYaQmRBVDWAW7N/view?usp=sharing","type":"image","end_time":29,"start_time":27}],"main_video_url":"https://drive.google.com/file/d/1luBj--jqBTlCCMRcsYQYY1A3cPxkdprx/view?usp=drive_link"}'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.