ClipMagic icon

ClipMagic

Interact with ClipMagic API for video and audio processing

Overview

This node integrates with the ClipMagic API to perform various video and audio processing tasks. Specifically, the "Remove Silence" operation detects and removes silent sections from a video or audio file based on configurable noise threshold and silence duration parameters. This is useful for cleaning up recordings by automatically cutting out pauses or quiet parts, making the content more engaging and concise.

Practical examples include:

  • Removing long silent gaps in podcasts or interviews.
  • Cleaning up lecture recordings by trimming out pauses.
  • Preparing video clips for social media by eliminating dead air.

Properties

Name Meaning
Video URL Direct file URL or Google Drive link to the input video 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 re-encoding the output. Options: Ultra Fast, Super Fast, Very Fast, Faster, Fast, Medium, Slow, Slower, Very Slow.
CRF (Quality) Constant Rate Factor controlling output quality (0-51). Lower values mean better quality.
Output Format Container format of the output file. Options: MP4, MOV, MP3, WAV.
Output Filename Desired filename for the output file without extension (optional).

Output

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

Output JSON fields include:

  • success: Boolean indicating if the operation succeeded.
  • operation: The name of the operation performed ("remove_silence").
  • filename: The name of the output file.
  • contentType: MIME type of the output file.

Binary output (binary.data) contains the actual processed media file ready for further use or download.

Dependencies

  • Requires an active connection to the ClipMagic API via an API key credential configured in n8n.
  • The node sends HTTP requests to the ClipMagic service endpoints.
  • No additional local dependencies are required.

Troubleshooting

  • Common issues:

    • Invalid or inaccessible video URL may cause request failures.
    • Incorrect noise threshold or duration values might result in no silence detected or excessive trimming.
    • Unsupported output format or encoding preset could lead to errors.
  • Error messages:

    • "Unknown operation": Occurs if an unsupported operation is selected; ensure "Remove Silence" is chosen.
    • Network or authentication errors: Verify API credentials and network connectivity.
    • Parsing errors: Check that the input URLs and parameters are correctly formatted.
  • Resolutions:

    • Confirm the video URL is publicly accessible or properly shared.
    • Adjust noise threshold and duration to match the audio characteristics.
    • Use supported output formats and presets as listed in properties.

Links and References

Discussion