Overview
This node integrates with Tencent Video on Demand (VOD) service to perform various video-related operations such as uploading videos, confirming upload tasks, composing media from multiple tracks, and submitting media processing tasks. It is useful for automating video management workflows within n8n, especially when working with Tencent Cloud's VOD platform.
A practical example is using the "Compose Media" operation to merge multiple video or audio tracks into a single output file, which can be helpful in video editing pipelines or content creation automation.
Properties
| Name | Meaning |
|---|---|
| Request Body | The complete JSON request body for the compose media operation. It must include Output and Tracks fields. For example: { "Output": { "FileName": "output.mp4" }, "Tracks": [{ "Type": "Video", "FileId": "xxx" }] }. |
Output
The node outputs an array of JSON objects, each representing the result of the operation performed on an input item. For the "Compose Media" operation, the output JSON includes:
success: Boolean indicating if the operation was successful.taskId: The ID of the compose media task created by Tencent VOD.status: The current status of the compose media task.
Example output JSON:
[
{
"success": true,
"taskId": "task-id-string",
"status": "PROCESSING"
}
]
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for Tencent VOD with appropriate permissions.
- The node makes HTTPS requests to Tencent VOD API endpoints.
- No additional environment variables are required beyond the API credentials.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Malformed JSON in the
Request Bodyproperty may cause request parsing errors. - Network connectivity issues can prevent communication with Tencent VOD API.
Error messages:
"腾讯云API错误: <message>"indicates an error returned by Tencent VOD API. Check the message for details."解析响应失败: <response>"means the response could not be parsed as JSON; verify network stability and API availability."视频合成失败: <response>"means the compose media request failed; check the request body format and required fields.- General
"腾讯云VOD错误: <message>"wraps other errors; review the inner message for specifics.
To resolve errors, ensure valid credentials, correct JSON formatting, and stable internet connection.