Overview
This node enables uploading video files to Tencent Video on Demand (VOD) service. It is useful for automating the process of transferring local video files into Tencent's cloud VOD platform, where they can be managed and streamed.
Common scenarios include:
- Media companies or content creators automating bulk uploads of videos.
- Integrations where videos generated or processed elsewhere need to be uploaded programmatically.
- Workflows that require storing videos in a reliable cloud VOD service for later playback or distribution.
Example: Uploading a recorded webinar video file from a local server directly into Tencent VOD with a specified video name.
Properties
| Name | Meaning |
|---|---|
| Video File Path | The full path on the local filesystem to the video file you want to upload. |
| Video Name | The desired name/title of the video as it will appear in the Tencent VOD platform. |
Output
The node outputs an array of JSON objects, each representing one uploaded video item with the following fields:
success: Boolean indicating if the upload succeeded.fileId: The unique identifier assigned by Tencent VOD to the uploaded video.videoName: The name given to the video during upload.url: The URL where the uploaded video can be accessed or streamed.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for Tencent VOD with permissions to upload videos.
- Uses Node.js built-in modules:
crypto,fs,path,https, andurl. - The node performs HTTP requests to Tencent VOD API endpoints for applying, uploading, and committing video uploads.
- The local video file must be accessible at the specified path on the machine running n8n.
Troubleshooting
- File not found error: If the specified video file path does not exist or is inaccessible, the node throws an error. Ensure the path is correct and the n8n process has read permissions.
- Failed to get upload information: Indicates issues obtaining upload credentials or session keys from Tencent VOD. Check API credentials and network connectivity.
- Upload failed with status code: The actual file upload to Tencent storage failed. This could be due to network issues or incorrect upload URLs.
- Failed to commit upload: Finalizing the upload session failed. Verify that the previous steps completed successfully and credentials are valid.
- General errors are wrapped with "Tencent VOD Error" prefix for clarity.