Skip to content

Download YouTube Videos

This mode is used for downloading videos from YouTube.

image-20240808010810495

Network Proxy Address: As YouTube is inaccessible in mainland China, you need to provide a network proxy address.

Video Playback Page URL: Open the YouTube video you wish to download in your browser, then copy its playback URL here.

Select Save Directory: Choose where the downloaded video should be saved.

Use VID as Video Name: By default, video names are the full video titles, which can be very long and contain special characters. This can cause issues when processing on Windows. Checking this option will shorten the name to the video ID (VID), preventing potential errors.

Note:

  1. The actual download process involves separately downloading the video (without audio) and audio files, then automatically merging them after completion. Please wait until the merge is complete or a "download successful" message appears before opening the video file; otherwise, the merge might fail.

  2. If you installed from source, you might encounter failures due to a missing executable file. Download the appropriate file for your operating system and copy it into the software's ffmpeg folder. Download links: https://github.com/jianchang512/pyvideotrans/releases/v2.19/

    Windows: ytwin32.exe

    macOS: ytdarwin

    Linux: ytlinux

There are many ways to download videos from YouTube, whether through command-line tools or web UIs. This video translation software also includes a simple download function. To use it, open Menu -- Tools/Options -- Download YouTube Videos.

image.png

The download interface is shown below:

image.png

Simply fill in the network proxy and video playback page URL, then click "Download".

Frequently Encountered Login Verification Errors

image.png

image.png

As shown in the images, these types of errors can occur for two main reasons: First, you might be downloading too frequently, triggering risk control measures. Second, the VPN/proxy IP you are using might be blacklisted by YouTube.

Solutions:

1. Switch VPN nodes. You might need to try several nodes to find a usable IP address.

2. Log in to YouTube normally using the Chrome browser, then copy the cookie information into a file named www.youtube.com_cookies.txt. Place this file in the same directory as the video translation software's sp.exe executable.

While this method doesn't guarantee 100% download success, it can significantly improve success rates and reduce errors.

How to Get cookies.txt

  1. First, you need to install the Chrome browser. If you don't have it installed, you can download it from: https://www.google.cn/chrome
  2. Install the browser extension # Get cookies.txt LOCALLY. Installation address: https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc

image.png

  1. Open youtube.com and log in.

  2. While on the youtube.com website, click the browser extension icon you just installed.

image.png

In the small pop-up window, click 'Export' again, and the cookies.txt file will be automatically downloaded.

image.png

The downloaded file will be named www.youtube.com_cookies.txt. Copy this file to the directory where sp.exe is located.

  1. Try downloading again.

What if it Still Fails?

After successfully downloading a few videos, you might encounter download failures again. In this case, refresh the YouTube page, then re-download the cookies.txt file and overwrite the existing one.

Of course, due to YouTube's risk control measures, to significantly improve success rates, it's essential to choose clean VPN nodes.