Video Downloader
AI-generatedOverview
This node downloads and processes video files from various sources, supporting M3U8 playlists, direct video files, and video URLs from platforms like Douyin, Weibo, and Pipixia. It is useful for automating video downloads in workflows, such as saving streaming videos, converting video formats, or batch downloading multiple videos with custom settings.
Use Case Examples
- Downloading an M3U8 playlist video from a URL and saving it as an MP4 file.
- Downloading a direct video file (e.g., MP4) from a URL with custom HTTP headers.
- Parsing and downloading videos from social media platforms like Douyin or Weibo using the parser option.
Properties
| Name | Meaning |
|---|---|
| Type | Specifies the type of video source to download: automatic detection, M3U8 playlist, direct file, or parser for social media platforms. |
| URL | The URL of the video or playlist to download. |
| Filename | The name of the output video file to save. |
| Cache Directory | Temporary directory to save cache files during download. |
| Save Directory | Directory to save the final output file. Defaults to the input file's directory if not specified. |
| Send Headers | Whether to send custom HTTP headers with the download requests. |
| Specify Headers | Custom HTTP headers to include in requests if 'Send Headers' is enabled. |
| Overwrite Existing File | Whether to force download and overwrite the file if it already exists. |
| Delete Cache | Whether to delete the cache files after the download completes. |
| Thread Number | Number of concurrent download threads to use, recommended not to exceed 8. |
| Max Downloads | Maximum number of concurrent downloads allowed. |
| Ignore Segments | Time segments in seconds to ignore during download, specified as comma-separated ranges. |
Output
JSON
datafilepath- The file path of the downloaded video file.filename- The name of the downloaded video file.filesize- The size of the downloaded video file.duration- Duration of the downloaded video.errmsg- Error message if the download failed.
Dependencies
- Uses external video download libraries such as '@lzwme/m3u8-dl' for handling M3U8 and file downloads, and a custom VideoParser for social media video parsing.
Troubleshooting
- Ensure the URL is correct and accessible; invalid URLs will cause download failures.
- If using custom headers, verify header names and values are correct to avoid request errors.
- Check server limitations on concurrent threads; too many threads may cause download failures.
- If the file already exists and 'Overwrite Existing File' is false, the node will skip downloading.
- Errors during download will throw NodeOperationError with details; enabling debug mode may help diagnose issues.