ClipMagic icon

ClipMagic

Interact with ClipMagic API for video and audio processing

Overview

The "Remove Silence" operation of the ClipMagic node processes video or audio files to detect and remove silent sections automatically. This is useful for cleaning up recordings by cutting out pauses, dead air, or unwanted quiet parts, resulting in a more concise and engaging media file.

Common scenarios include:

  • Editing podcasts or interviews to remove long silences.
  • Cleaning up lecture recordings or webinars.
  • Preparing video content by trimming silent gaps for smoother playback.

For example, you can provide a URL to a recorded webinar video and configure the noise threshold and minimum silence duration to automatically remove all silent segments longer than 0.35 seconds, producing a shorter, more dynamic video.

Properties

Name Meaning
Video URL Direct file URL or Google Drive link to the input video or audio file to process.
Noise Threshold The noise level threshold (e.g., "-45dB") used by FFmpeg's silencedetect filter to identify silence.
Silence Duration (s) Minimum length in seconds that audio must stay below the noise threshold to be considered silence.
Encoding Preset Encoding speed/quality trade-off preset for processing. Options: Ultra Fast, Super Fast, Very Fast, Faster, Fast, Medium, Slow, Slower, Very Slow.
CRF (Quality) Quality setting for the video encoder libx264, ranging from 0 (best quality) to 51 (lowest quality).
Output Format Container format for the output file. Options: MP4, MOV, MP3, WAV.
Output Filename Desired filename for the output file without extension (optional).
Options → Timeout (ms) How long to wait before aborting the HTTP call. Set to 0 for no limit. Default is 600000 ms (10 minutes).

Output

The node outputs JSON data indicating success and details about the processed file. If the operation returns media content, it provides binary data representing the processed video or audio file.

Output JSON fields include:

  • success: Boolean indicating if the operation succeeded.
  • operation: The operation performed ("remove_silence").
  • filename: The name of the output file.
  • contentType: MIME type of the returned media (e.g., video/mp4, audio/wav).

If binary data is returned, it contains the processed media file with the specified encoding and format.

Dependencies

  • Requires an API key credential for authenticating with the ClipMagic API.
  • The node makes HTTP requests to the ClipMagic service base URL.
  • The user must provide accessible URLs to the media files (direct links or Google Drive share links).
  • Optional timeout configuration controls how long the node waits for the API response.

Troubleshooting

  • Timeouts: If processing takes too long, increase the timeout option or set it to 0 for no limit.
  • Invalid URLs: Ensure the provided video URL is accessible and direct; unsupported or private links may cause failures.
  • Unsupported formats: Input files must be supported by the ClipMagic API; otherwise, errors may occur.
  • Quality settings: Setting CRF too low may result in very large files; too high may degrade quality.
  • Error messages: The node throws errors on unknown operations or failed API calls. Check error messages for details and verify credentials and parameters.

Links and References

Discussion