Cloudinary icon

Cloudinary

Upload images and videos, build optimized transformation and delivery URLs, generate video players, and manage, search, tag, and edit metadata in your Cloudinary media library

Transform → Video: Trim

AI-generated

Overview

This node operation performs a video trimming transformation using Cloudinary. It allows users to specify a video asset by its public ID and trim the video by defining start and end offsets or duration in seconds. This is useful for extracting specific segments from a video for optimized delivery or further processing.

Use Case Examples

  1. Trim a video to extract a 5-second clip starting at 2.5 seconds from a video stored in Cloudinary.
  2. Chain multiple transformations by continuing from a previous transformation string to build complex video processing workflows.

Properties

Name Meaning
Public ID The public ID of the video asset in Cloudinary, including any folder path but without the file extension, used to identify the video to trim.
Type The Cloudinary delivery type, typically 'Upload' for public assets. Other types like 'Private' or social media sources require signed URLs which are not generated by this node.
Continue From Transformation Optional transformation string to build on, allowing chaining of transformations by prepending this string before the current operation's transformation.
Start Offset Start time in seconds for trimming the video, mapping to the 'so_' parameter in Cloudinary transformations.
End Offset End time in seconds for trimming the video, mapping to the 'eo_' parameter in Cloudinary transformations.
Duration Duration in seconds for the clip to trim, mapping to the 'du_' parameter in Cloudinary transformations. Any combination of start, end, and duration is allowed.
Additional Options Additional optional parameters such as asset version to bust CDN caches.

Output

JSON

  • transformation - The resulting Cloudinary transformation string for the trimmed video.
  • url - The full delivery URL for the trimmed video asset with applied transformations.

Dependencies

  • Cloudinary API credentials including cloud name, API key, and API secret

Troubleshooting

  • Ensure the public ID is correct and the asset exists in the Cloudinary account to avoid 'asset not found' errors.
  • Use the 'Upload' type for public assets unless signed URLs are properly handled, as 'Private' or 'Authenticated' types require signed URLs which this node does not generate.
  • Verify that the start, end, and duration values are valid numbers and logically consistent to avoid transformation errors.

Links

Discussion