Process Videos

Create Project, Video: Detection, Redaction, Render and Download

Request Body schema: application/json

/videos:process - POST - Request Body

inputUri
required
string

Input URI which either points to a single video or a storage bucket

features
required
Array of strings
Items Enum: "MEDIA_PREPARE" "PERSON_DETECTION" "FACE_DETECTION" "VEHICLE_DETECTION" "LICENSE_PLATE_DETECTION" "MEDIA_RENDERING"

String array of the desired processing features

  • MEDIA_PREPARE - Prepare media for use with embedded editor
  • PERSON_DETECTION - Detect people
  • FACE_DETECTION - Detect faces
  • VEHICLE_DETECTION - Detect vehicles
  • LICENSE_PLATE_DETECTION - Detect vehicle license plates
  • MEDIA_RENDERING - Render processed media. Required if output desired
outputUri
required
string

The storage bucket URI to use for output.

Array of objects

Notification webhook descriptor. Users can enable webhooks to receive messages for their operation.

object

Additional configuration options, all optional.

tag
object

User-defined object that is returned in every notification.

Responses

Request samples

Content type
application/json
{
  • "features":
    [
    ],
  • "outputUri": "s3://bucket-name/keyname/",
  • "notifications":
    [],
  • "videoContext":
    {
    },
  • "tag":
    {
    }
}

Response samples

Content type
application/json
{
  • "name": "projects/{project-id}/locations/{location-id}/operations/{operation-id}"
}