API reference / VOD analysis
Stop an analysis in progress
UPLOADING: the upload is abandoned; the resource and any partial object are deleted and the response is204.QUEUEDorPROCESSING: cancellation is requested and the resource moves toCANCELLED. Processing may still be stopping after the response.- Terminal states:
409. File cleanup is best effort; see https://mediaseer.ai/docs/data/.
After a timeout or lost response, read getVodAnalysis before retrying. A retry can return
404 after an upload was abandoned, or 409 after cancellation already took effect.
See https://mediaseer.ai/docs/guides/retries/ for retry and reconciliation guidance.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The analysis’s opaque id, returned by createVodAnalysis or listVodAnalyses.
Responses
Section titled “Responses”Stopped. The resource is CANCELLED.
object
UPLOADING: created, waiting for the client to upload and callstartQUEUED: started; the video’s length is checked, then it waits to be processedPROCESSING: encoding and analysis runningFINISHED: results availableFAILED: could not start or finish, or the video was too long; seeerrorCANCELLED: stopped by you or the processing service
Name of the uploaded file.
Given at create, else inferred by the analysis.
Summary of the whole video, from the analysis.
Size of the uploaded object; known from start on.
When start was accepted.
When the resource reached a terminal state.
Why the analysis failed. Only set in state FAILED.
object
A sentence for people, in Mediaseer’s own words, never the processing platform’s text. It names the cause when Mediaseer knows it, such as a video longer than the length limit or a start that never ran; otherwise it says only that the encoding failed or no longer exists. Don’t branch on its wording.
Whether clips can be created from this analysis, and if not, why. Treat an absent
clips as not available.
object
Whether clips can be created from the analysis now.
Why not. Set exactly while available is false.
Example
{ "id": "7f3c2a1e-0b4d-4c7e-9a52-1d2e3f4a5b6c", "state": "UPLOADING", "fileName": "episode-01.mp4", "title": "Los Angeles 1947", "description": "A noir mystery set in Los Angeles in 1947.", "sceneCount": 9, "keywords": [ "Los Angeles", "1947", "mystery" ], "durationSeconds": 719.02, "sizeBytes": 734003200, "error": { "message": "The encoding failed." }, "clips": { "reason": "UNSUPPORTED_FILE_TYPE" }}The upload was abandoned and the resource deleted.
Missing, invalid or expired credentials (UNAUTHENTICATED).
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}No such resource for this caller (NOT_FOUND). Other users’ resources look the same.
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}The resource is in a state that does not allow this operation (INVALID_STATE).
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}default
Section titled “default”Unexpected error
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}