Clipmagic Api icon

Clipmagic Api

Interact with ClipMagic API for video and audio processing

Overview

This node interacts with the ClipMagic API to perform various media processing operations, specifically focusing here on the 'Trim Media' operation. It allows users to trim segments from video or audio files by specifying a media URL and trimming parameters such as start time, end time or duration, and supports trimming either a single segment or multiple segments. The node outputs the trimmed media in a specified format, optionally with a custom filename. This is useful for scenarios where users need to extract specific parts of media files for editing, sharing, or further processing.

Use Case Examples

  1. Extract a 10-second clip from a video starting at 00:01:00.
  2. Trim multiple segments from an audio file to create a highlights reel.
  3. Convert a trimmed video segment to GIF format for social media sharing.

Properties

Name Meaning
Options Extra settings for the request, including timeout for the HTTP call.
Media URL Input media URL to trim.
Trim Mode Choose between trimming a single segment or multiple segments.
Start Time Start time of the segment in HH:MM:SS format or seconds (for single segment mode).
End Mode Specify whether the end of the segment is defined by an end time or a duration (for single segment mode).
End Time End time of the segment in HH:MM:SS format (shown if End Mode is 'End Time').
Duration Duration of the segment in seconds or HH:MM:SS format (shown if End Mode is 'Duration').
Segments Multiple segments to trim, each with start time and either end time or duration (for multiple segments mode).
Output Format Target format for the trimmed clips, such as MP4, GIF, MOV, MP3, or WAV.
Output Filename Custom filename for the output file (optional).

Output

Binary

The node outputs the trimmed media file as binary data, including the file content and metadata such as filename and content type.

JSON

  • success - Indicates if the operation was successful.
  • operation - The operation performed, e.g., 'trim'.
  • filename - The filename of the output media file.
  • contentType - The MIME type of the output media file.

Dependencies

  • ClipMagic API

Troubleshooting

  • Ensure the media URL is accessible and correctly formatted; inaccessible URLs will cause request failures.
  • Timeout errors may occur if the media file is large or the network is slow; adjust the timeout option accordingly.
  • Invalid time format for start, end, or duration parameters can cause errors; use HH:MM:SS or seconds format.
  • If the output format is not supported for the input media type, the API may return an error.

Links

Discussion