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 URL of a recorded webinar and trim it to only include the main presentation part.

Properties

Name Meaning
Video URL The URL of the video to trim.
Start Time The start time of the trimmed segment, in HH:MM:SS format.
End Time The end time of the trimmed 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 submitting the trim request. This typically includes details about the trimmed video or the status of the operation. The output does not include binary video data directly; instead, it provides metadata or links related to the trimmed video.

Example output structure (simplified):

{
  "trimmedVideoUrl": "https://example.com/trimmed-video.mp4",
  "status": "processing",
  "id": "optional-request-id"
}

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 configured base URL of the NCA Toolkit API.
  • Proper network access to the API endpoint is necessary.
  • If using webhook notifications, a publicly accessible webhook URL must be provided.

Troubleshooting

  • Invalid API Key or Authentication Failure: Ensure that the API key credential is correctly configured and valid.
  • Incorrect Video URL: Verify that the video URL is accessible and properly formatted.
  • Invalid Time Format: The start and end times must be in HH:MM:SS format; otherwise, the API may reject the request.
  • Start Time After End Time: Make sure the start time precedes the end time to avoid errors.
  • Webhook URL Issues: If using a webhook URL, ensure it is reachable and correctly set up to receive notifications.
  • API Errors: Any error messages returned by the API will be included in the node's output if "Continue On Fail" is enabled; otherwise, they will cause the node to fail.

Links and References

Discussion