Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the file to segment
Body
Segmentation configuration
Segmentation configuration (root level) with optional thumbnails configuration. Configuration for video segmentation. Choose a strategy and provide ONLY the corresponding config:
• uniform: Provide uniform_config
, do NOT provide shot_detector_config
• shot-detector: Provide shot_detector_config
, do NOT provide uniform_config
Optionally specify start_time_seconds
and end_time_seconds
to limit segmentation to a portion of the video.
Segmentation strategy - determines which config you must provide
uniform
, shot-detector
Configuration for segment thumbnails. Optional.
🎯 REQUIRED when strategy = 'uniform' - Configuration for uniform segmentation. Do NOT provide when using shot-detector strategy.
🎯 REQUIRED when strategy = 'shot-detector' - Configuration for shot detection segmentation. Do NOT provide when using uniform strategy.
Optional: The start time of the video in seconds to start segmenting from
x >= 0
Optional: The end time of the video in seconds to stop segmenting at
x >= 0
Response
Segmentation created successfully
Unique identifier for the segmentation job
Status of the segmentation job. If a job has the status 'not_applicable' it means that we were unable to find any appropriate scenes for this video. This can be possible if you use the shot-detector strategy.
pending
, processing
, completed
, failed
, not_applicable
Unix timestamp of when the segmentation was created
x >= 0
ID of the file this segmentation belongs to
Configuration for video segmentation. Choose a strategy and provide ONLY the corresponding config:
• uniform: Provide uniform_config
, do NOT provide shot_detector_config
• shot-detector: Provide shot_detector_config
, do NOT provide uniform_config
Optionally specify start_time_seconds
and end_time_seconds
to limit segmentation to a portion of the video.
Total number of segments in this segmentation (only present when status is completed)
x >= 0
Segment data with pagination (only present when status is completed and segments exist)