Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

6. Endpoints

Tristan Chin edited this page Jul 3, 2022 · 2 revisions

Endpoints

Here are all the endpoints exposed by the server. All routes are authenticated, unless USE_PASSWORD is false.

Instant merge

POST /

Receives videos and merges them immediately. Returns the resulting video.

Request

Content-Type: multipart/form-data

Field Type Description
files File[] The files to merge
creationDate string A string representation of the date to use as Creation Date for the output file's metadata

Response

The merged video

Flush files

POST /flush

Deletes every file in the tmp directory (input files, output files and command lists)

Create a new merge

POST /create

Initializes a new merge and returns its ID so that you can add files individually later.

Response

{
    "id": string
}

Add files to a merge

POST /add/:id

Receives videos and adds them to the merge represented by the given id.

Request

Content-Type: multipart/form-data

Field Type Description
files File[] The files to merge

Merge videos in a merge

POST /:id

Merges the videos in the merge represented by the given id and returns it.

Request

Content-Type: JSON

{
    "creationDate": string
}

Response

The merged video