trim_by_highlights
The job extracts trimmed segments from video, sound and text files based on highlights, providing control over the duration and number of trims.
Required Account Privileges: "read"
Request JSON ["inputs"]:
"source_content_type":
string in ["Video", "Sound"]
null NOT allowed
A string specifying the type of source content.
"nr_trims_per_file":
int (>=1)
null NOT allowed
An integer specifying the number of trims to extract per file.
"max_trim_size":
float (>=0.1 and > min_trim_size)
null NOT allowed
A float specifying the maximum length of each trim in seconds.
"min_trim_size":
float (>=0.1 and < max_trim_size)
null allowed
An optional float specifying the minimum length of each trim in seconds.
"custom_vectorizer_name":
string (3 <= len <= 30)
null allowed
An optional string representing the name of the custom vectorizer to be used for sampling.
"file_urls":
list of strings
null allowed
An optional list of strings containing the URLs of files to be downloaded.
"download_from_batch_cloud_folder":
bool
null NOT allowed
A boolean indicating whether to download files from the batch cloud folder.Response JSON ["results"]
"trims_file_names_with_download_urls":
list of lists of strings
[file_name (string), public_url (string)]File Requirements
Requires files to be sent via FTP to the cloud batch folder or in the file_urls