Download Video
Downloads YouTube videos in various resolutions and formats.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Video URL - The URL of the YouTube video to download.
- Path to Save - The directory path where the video will be saved.
Options
- File Name - Custom file name for the downloaded video (without extension). If not specified, the default file name will be used.
- Download Settings - Determines how the video is downloaded. Options include:
- Highest Resolution
- Lowest Resolution
- Custom Resolution
- Itag
- Audio-mp4
- Audio-webm
- Default is Highest Resolution.
- Custom Resolution - When "Custom Resolution" is selected, specifies the resolution. Options include:
- 2160p
- 1440p
- 1080p
- 720p
- 480p
- 360p
- 240p
- 144p
- Default is 720p.
- Itag - When "Itag" is selected, specifies the itag number for the video stream.
Output
No direct output. The video is saved to the specified directory.
How It Works
The Download Video node downloads a YouTube video using the pytube library. When executed, the node:
- Validates the required inputs (Video URL and Path to Save)
- Creates a YouTube object using the provided URL
- Determines the download settings based on the options selected
- Selects the appropriate video or audio stream based on the settings
- Downloads the stream to the specified path with the optional custom file name
Requirements
- A valid YouTube video URL
- Access to the file system for saving the video
- Internet connection to access YouTube
- Sufficient disk space for the downloaded video
Error Handling
The node will return specific errors in the following cases:
- Empty Video URL
- Empty Path to Save
- Invalid YouTube URL
- Video not found
- Invalid resolution selection
- Invalid itag number
- Invalid file path
- Insufficient disk space
- File write permissions issues
- Network connectivity issues
- YouTube access restrictions
Usage Notes
- The Video URL should be a full YouTube URL (e.g., https://www.youtube.com/watch?v=VIDEO_ID)
- The Path to Save should be a valid directory path where the video will be saved
- When using Custom Resolution, ensure the selected resolution is available for the video
- When using Itag, you need to know the specific itag number for the desired video stream
- Audio-only downloads are available with Audio-mp4 and Audio-webm options
- The File Name option allows you to specify a custom name for the downloaded file
- Download time depends on video length, resolution, and internet speed
- This node respects YouTube's terms of service and only downloads publicly available content
- Large video files may take significant time and disk space