MediaPoolItem
New in 21.2
ExportThumbnails(frames, [{exportThumbnailsOptions}])
Return Type: {exportThumbnailsResult}
Renders the given frames (0-based offsets from the item start) into a single grid image, filled in the order given. Each element of frames may be an integer offset or a {frameOffset, label} dict.
Refer to Export Thumbnails Options for supported settings and returned keys.
New in 21.1.2
SetTranscription({transcription})
Return Type: Bool
Replaces the transcription of the MediaPoolItem with the given transcription dict, as returned by GetTranscription. For a timeline clip the transcription is set as a nested clip.
Use ClearTranscription to remove a transcription instead.
Refer to Transcription for the requirements on the transcription dict.
Refer to Studio and AI Scripting APIs for prerequisites.
ExportFrame(frameOffset, [{exportFrameOptions}])
Return Type: {exportFrameResult}
Exports the frame at frameOffset (int, 0-based offset from the item start) as a still image, to a file or as an encoded string, per exportFrameOptions.
Refer to Export Frame Options for information on supported settings and the returned keys.
GetParentFolder()
Return Type: Folder
Returns the Folder object containing this MediaPoolItem.
GetPhotoAlbum()
Return Type: PhotoAlbum
Returns the PhotoAlbum object if the MediaPoolItem is a photo album clip, None otherwise.
New in 21.1.0
GetTranscription(useNestedClipTranscription=False)
Return Type: {transcription}
Returns transcription data for the MediaPoolItem, if available. The optional argument useNestedClipTranscription (Bool) returns the transcription of nested clips instead.
Refer to Transcription for the returned keys.
Refer to Studio and AI Scripting APIs for prerequisites.
SetAudioMapping(audioMapping)
Return Type: Bool
Sets the audio mapping of the MediaPoolItem from the JSON string audioMapping.
Refer to Audio Mapping for the mapping format.
New in 21.0.4
GetTimeline()
Return Type: Timeline
Returns the Timeline object if the MediaPoolItem is a timeline clip.
New in 21.0.2
PerformAudioClassification()
Return Type: Bool
Analyzes and classifies the audio of a MediaPoolItem into categories and subcategories.
Refer to Studio and AI Scripting APIs for prerequisites.
ClearAudioClassification()
Return Type: Bool
Clears audio classification of the MediaPoolItem.
Refer to Studio and AI Scripting APIs for prerequisites.
RemoveMotionBlur({deblurOption})
Return Type: MediaPoolItem
Applies motion deblur on the MediaPoolItem. Returns the newly created MediaPoolItem.
Refer to Motion Deblur Settings for information on supported settings.
Refer to Studio and AI Scripting APIs for prerequisites.
AnalyzeForIntellisearch(identifyFaces, isBetterMode)
Return Type: Bool
Performs Intellisearch analysis on the MediaPoolItem. identifyFaces specifies whether to identify faces; isBetterMode specifies whether to use Better mode. Returns True if required packages are installed and analysis is successful.
Refer to Studio and AI Scripting APIs for prerequisites.
AnalyzeForSlate(markerColor)
Return Type: Bool
Performs Slate analysis on the MediaPoolItem using the current settings and specified markerColor. Returns True if required packages are installed and analysis is successful.
Adds a "Detected Slate" duration marker in markerColor over the frames of each slate found. The text written on the slate is not read: use GetMarkers() to locate the slate, the marker carries no transcription of its contents.
Refer to Analyze Slate Settings for information on markerColor.
The progress of an active slate analysis can be read with Project.GetAnalyzeForSlateStatus.
Refer to Studio and AI Scripting APIs for prerequisites.
New in 20.2.0
SetName(name)
Return Type: Bool
Sets the clip's name to name(string). Returns True if successful.
New in 20.0.0
LinkFullResolutionMedia(fullResMediaPath)
Return Type: Bool
Links proxy media to full resolution media files specified via its path.
ReplaceClipPreserveSubClip(filePath)
Return Type: Bool
Replaces the underlying asset and metadata of a video or audio clip with the specified absolute clip path, preserving original sub clip extents.
MonitorGrowingFile()
Return Type: Bool
Monitor a file as long as it keeps growing (stops if the file does not grow for some time).
New in 19.1.0