Actions37
- Index Spoken Words
- Get Transcript
- Search in a Video
- Generate Stream
- Index Scenes
- List Scene Indexes
- Get Scene Index
- Delete Scene Index
- Add Subtitle
- Generate Audio URL
- Generate Image URL
- Create Collection
- Download
- Get Collection
- Update Collection
- YouTube Search
- Delete Audio
- Delete Image
- Delete Video
- Delete Collection
- Dub Video
- Generate Image
- Generate Music
- Generate Sound Effect
- Generate Voice
- Generate Video
- Generate Text
- Get Audio
- Get Audios
- Get Image
- Get Images
- Get Video
- Get Videos
- Search in a Collection
- Upload
- Record Meeting
- Get Meeting
Overview
This node integrates with the VideoDB API to perform various video-related operations. Specifically, the "Add Subtitle" operation allows users to add styled subtitles to a selected video within a chosen collection. This is useful for content creators or video managers who want to programmatically enhance videos by embedding subtitles with custom styles.
Practical examples include:
- Automatically adding subtitles to training videos stored in a collection.
- Enhancing marketing videos with branded subtitle styles.
- Managing subtitles across multiple videos in a centralized video database.
Properties
| Name | Meaning |
|---|---|
| Collection Name or ID | Select a video collection from a list or specify its ID. The collection groups related videos. |
| Video Name or ID | Choose a specific video within the selected collection by name or ID to which subtitles will be added. |
| Subtitle Style (JSON) | Provide a JSON object defining styling options for the subtitles, such as font, color, size, etc. |
Output
The node outputs a JSON object representing the response from the VideoDB API after attempting to add subtitles. This typically includes confirmation of the operation's success and any relevant metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the VideoDB API.
- The base URL for the API defaults to
https://api.videodb.iobut can be customized via credentials. - The node uses HTTP requests authenticated with the provided API key to interact with the VideoDB service.
Troubleshooting
Common Issues:
- Invalid or missing API key: Ensure the API key credential is correctly configured.
- Incorrect collection or video ID: Verify that the selected collection and video exist and are accessible.
- Malformed JSON in subtitle style: Validate the JSON syntax and structure before inputting it.
Error Messages:
- Authentication errors usually indicate issues with the API key; recheck credentials.
- 404 errors may mean the specified collection or video ID does not exist.
- 400 errors could result from invalid request bodies, such as incorrect subtitle style JSON.
Resolving these typically involves verifying credentials, confirming resource IDs, and ensuring valid JSON formatting.
Links and References
- VideoDB API Documentation (hypothetical link)
- n8n Expressions Documentation – for using expressions in property fields