Tencent VOD icon

Tencent VOD

Upload videos to Tencent VOD

Overview

This node integrates with Tencent Video on Demand (VOD) service to perform media-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 common scenario is to programmatically upload a video file by URL, then confirm the upload status, or compose a new video from existing media tracks by specifying detailed composition instructions. For example, you can merge multiple video clips into one output file or submit complex media processing tasks like transcoding.

Properties

Name Meaning
Request Body The complete JSON request body for the Compose Media operation. It must include Output and Tracks fields. 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. The structure varies depending on the operation:

  • Compose Media: Outputs objects containing:
    • success: boolean indicating if the operation succeeded.
    • taskId: the ID of the compose media task.
    • status: current status of the compose media task.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for Tencent Cloud VOD service (an API secret ID and secret key).
  • The node makes HTTPS requests to Tencent VOD API endpoints.
  • No additional external dependencies beyond Node.js built-in modules (crypto, https).

Troubleshooting

  • Missing or invalid credentials: Ensure that the Tencent Cloud API credentials are correctly configured in n8n.
  • Invalid request body format: The Request Body property must be valid JSON including required fields (Output and Tracks). Malformed JSON or missing fields will cause errors.
  • API errors: If the Tencent VOD API returns an error, the node throws an error with the message returned by the API. Check the API response details for troubleshooting.
  • Network issues: Connectivity problems to Tencent VOD endpoints may cause request failures.
  • Common error messages include:
    • "视频合成失败" (Video composition failed): Indicates the compose media request was rejected or failed.
    • "缺少必要的 Action 参数" (Missing required Action parameter): Internal error if the API call is malformed.

To resolve errors, verify the correctness of the request body, ensure credentials are valid, and check network connectivity.

Links and References

Discussion