Skip to content

Commit

Permalink
add media tools endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mordka committed Oct 10, 2017
1 parent a17757f commit e39f51d
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions source/includes/_mediatools.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
## Unleash Media Tools

### Video modification
Perform media operations on a video file.
### Authentication

The endpoints are secured with IAM.

### Video crop
Crop a video within a given time range.

### API endpoint
`POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/process`
`POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/crop`

```
POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/process
POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/crop
{
"FILENAME": "ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe1dc5a5/BROWSER/session-1506318704930/Riverside.mp4",
"START": "1",
"END": "15"
"objectKey": "ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe1dc5a5/BROWSER/session-1506318704930/Riverside.mp4",
"start": "1",
"end": "15"
}
```

Expand All @@ -20,14 +24,40 @@ POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/proce

Name | Type | Constraints | Description
--------|-------|--------- | ------
`FILENAME` | string | required| s3 object key
`START` | string | required | start time in seconds
`END` | string | required| end time in seconds
`objectKey` | string | required| s3 object key
`start` | string | required | start time in seconds
`end` | string | required| end time in seconds

#### Results

The result video is saved in the same folder with the name appended with timestamp and uuid

```
s3://pylot/ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe1dc5a5/BROWSER/session-1506318704930/Riverside.mp42017-09-27-21-39-62893d96-a3cc-11e7-b790-0242ac110002.mp4
s3://pylot/ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe12f5a5/BROWSER/session-1506318704930/Riverside.mp42017-09-27-21-39-62893d96-a3cc-11e7-b790-0242ac110002.mp4
```

### Video concat
Merge multiple videos into one.

### API endpoint
`POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/concat`

```
POST https://8xbk6rnolh.execute-api.ap-southeast-2.amazonaws.com/dev/media/concat
{
"objectKeys": [
"ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe2vf5a5/BROWSER/session-1506318704930/Riverside.mp4",
"ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe2vf5a5/BROWSER/session-1506318704930/Riverside2.mp4"
"ap-southeast-2:b9be243f-1c1e-4d92-8a72-2cf5fe2vf5a5/BROWSER/session-1506318704930/Riverside3.mp4"
]
}
```

#### Parameters


Name | Type | Constraints | Description
--------|-------|--------- | ------
`objectKeys` | string | required| array of object keys


0 comments on commit e39f51d

Please sign in to comment.