NCA Toolkit

Interact with NCA Toolkit API

Overview

This node integrates with the NCA Toolkit API to trim videos by specifying start and end times. It is useful in scenarios where you need to extract a specific segment from a longer video, such as creating highlights, previews, or removing unwanted sections. For example, you can input a video URL and define the time range to generate a trimmed clip without manually editing the video.

Properties

Name Meaning
Video URL The URL of the video to trim.
Start Time The start time of the trim segment, in HH:MM:SS format.
End Time The end time of the trim segment, in HH:MM:SS format.
Additional Fields Optional extra parameters:
• ID: An optional identifier for tracking the request.
• Webhook URL: An optional URL to receive notifications about the trimming process.

Output

The node outputs JSON data representing the response from the NCA Toolkit API after requesting the video trim operation. This typically includes details about the trimmed video or the status of the request. If a webhook URL is provided, notifications may be sent asynchronously, but the immediate output contains the API's direct response.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the NCA Toolkit API.
  • The node makes HTTP POST requests to the endpoint /v1/video/trim on the base URL specified in the credentials.
  • Proper network access to the NCA Toolkit API service is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication failures.
    • Incorrectly formatted start or end times (not in HH:MM:SS) may result in errors.
    • Providing an invalid or inaccessible video URL will prevent successful trimming.
    • If the end time is before the start time, the API might reject the request.
  • Error messages:

    • Errors returned from the API are passed through in the output JSON under an error field if "Continue On Fail" is enabled.
    • Network or request errors will throw exceptions unless handled by the node's error continuation setting.
  • Resolutions:

    • Verify the API key and ensure it has proper permissions.
    • Confirm that time inputs follow the required format.
    • Check the accessibility and correctness of the video URL.
    • Use the optional ID field to track requests and debug issues more easily.
    • Use the webhook URL to monitor asynchronous processing results.

Links and References

Discussion