-
Notifications
You must be signed in to change notification settings - Fork 11
Clipping features docs #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ba40890
Clipping features docs (#511)
rhfitz fbb5c2a
linted output
dcoffey3296 90c1430
wordsmithing and detail added
dcoffey3296 965537a
added a release note and clarified mp4 vs hls clipping
dcoffey3296 89ad7c2
broken link fix
dcoffey3296 9cd29ca
Merge branch 'main' into clipping-vod-docs-updates
rhfitz efe10a9
fix broken links
rhfitz cbd5c15
Update millicast/distribution/stream-recordings/how-to-get-media-asse…
rhfitz 85407df
Fix typos: channe -> channel, capabilties -> capabilities
dcoffey3296 99ef8ac
Remove stray backslash from aws s3 cp command example
dcoffey3296 f57daa1
Fix missing word: 'appropriate for social sharing'
dcoffey3296 e34f065
Fix grammar: remove leftover 'be' from sentence rewrite
dcoffey3296 bf7adf4
Update millicast/distribution/stream-recordings/how-to-upload-media-a…
dcoffey3296 1f37645
Update millicast/distribution/stream-recordings/how-to-upload-media-a…
dcoffey3296 d11c2f6
Update theolive_versioned_docs/version-v1/platform/live-clipping.mdx
dcoffey3296 71e92ab
Update millicast/distribution/stream-recordings/how-to-upload-media-a…
dcoffey3296 0ab272a
Update millicast/distribution/stream-recordings/how-to-upload-media-a…
dcoffey3296 1b70d0a
changed Hls to hls
dcoffey3296 f185dbb
Update millicast/distribution/stream-recordings/how-to-upload-media-a…
dcoffey3296 0469c5e
Update theolive_versioned_docs/version-v1/platform/live-clipping.mdx
dcoffey3296 cac7b8c
language updates
dcoffey3296 020a1a7
lint
dcoffey3296 7df72a8
escaped quotes for failing lint
dcoffey3296 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
millicast/distribution/stream-recordings/how-to-upload-media-assets.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| --- | ||
| title: How-to Upload Media Assets | ||
| --- | ||
|
|
||
| You can upload your own media assets to OptiView storage to be played back via the OptiView CDN. These are files that are pre-transcoded before upload for distribution and are served over Dolby's CDN and can be a single asset such as an MP4 or a multi-file asset such as an HLS asset that has a series of manifests and media files. | ||
|
|
||
| The steps are as follows. | ||
|
|
||
| 1. Generate Upload Credentials | ||
| 1. Upload to Dolby's S3-Compatible Storage | ||
| 1. Register Media Asset | ||
|
|
||
| ## Generate Upload Credentials | ||
|
|
||
| Use the [Generate Upload Credentials](/millicast/api/media-assets-get-upload-credentials.api.mdx) endpoint to generate credentials and an S3 compatible upload location. | ||
| These credentials will last for 1 hour. Please upload and register media assets within the hour. | ||
|
|
||
| This is an example response. | ||
|
|
||
| ```json | ||
| { | ||
| "status": "success", | ||
| "data": { | ||
| "path": "string", | ||
| "bucketName": "string", | ||
| "objectPrefix": "string", | ||
| "accessKeyId": "string", | ||
| "secretAccessKey": "string", | ||
| "sessionToken": "string", | ||
| "expiration": "2026-01-12T01:27:13Z" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Upload to Dolby's S3-Compatible Storage | ||
|
|
||
| Using the response fields _from the previous API call_, upload the media asset files to the specified S3 location. | ||
|
|
||
| ``` | ||
| $ AWS_ACCESS_KEY_ID=<from-above> AWS_SECRET_ACCESS_KEY=<from-above> AWS_SESSION_TOKEN=<from-above> aws s3 cp <filepath> s3://<bucketName>/<objectPrefix> | ||
| ``` | ||
|
|
||
| ## Register Media Asset | ||
|
|
||
| After completing upload make a [registration call](/millicast/api/media-assets-register-media-asset.api.mdx). | ||
|
|
||
| The `mediaAssetId` returned in the response body can be used for inspecting, retrieving and deleting the media asset. | ||
|
|
||
| This endpoint does not give immediate feedback on whether the media asset has been successfully created. Please use the [Read Media Asset](/millicast/api/media-assets-read-media-asset.api.mdx) endpoint to inspect the outcome of registration and retrieve the download url. | ||
|
|
||
| ### Example Usage 1 - Upload A Single File Asset | ||
|
|
||
| If your asset has a single file such as an mp4 file, append the filename to the `objectPrefix` obtained from the [Generate Upload Credentials](/millicast/api/media-assets-get-upload-credentials.api.mdx) response. | ||
| The [Register Media Asset](/millicast/api/media-assets-register-media-asset.api.mdx) request would look like | ||
|
|
||
| ```json | ||
| { | ||
| "objectPrefix": "<object-prefix-from-above>/user-file.mp4" | ||
| } | ||
| ``` | ||
|
|
||
| Assuming on inspection our service finds an object key that is an exact match of `objectPrefix`, OptiView will obtain and serve that single file. | ||
| If there are any additional files uploaded to `s3://<bucketName>/<objectPrefix>/*` they will be ignored. | ||
|
|
||
| ### Example Usage 2 - Upload A Multi File Asset | ||
|
|
||
| If your asset has multiple files such as an HLS asset with a main manifest and related manifests/media files, the [Register Media Asset](/millicast/api/media-assets-register-media-asset.api.mdx) request should look like this. | ||
|
|
||
| ```json | ||
| { | ||
| "objectPrefix": "<object-prefix-from-api-response>", | ||
| "entrypoint": "main.m3u8" | ||
| } | ||
| ``` | ||
|
|
||
| Since the `entrypoint` is specified, the discovery url for downloading the media asset via the CDN will be a link to a copy of `main.m3u8`. | ||
|
|
||
| Assuming on inspection our service _does not_ find an object key which exactly matches the `objectPrefix`, OptiView will obtain and serve all the contents uploaded to `s3://<bucketName>/<objectPrefix>/*`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.