Skip to content

Download YouTube Videos

This mode is used to download videos from YouTube.

image-20240808010810495

Network Proxy Address: As you know, YouTube is not accessible in China, so you need to fill in the network proxy address.

Video Playback URL: If you want to download a specific video, open the video on the YouTube website and copy the playback address here.

Select Save Directory: Where you want to save the downloaded video.

Use VID as Video Name: The default video name is the video title, which is very long and contains messy symbols. It may cause errors when processing it on Windows. Therefore, you can select this option to make the name shorter and prevent errors.

Note:

  1. The actual download involves downloading the video (silent) and audio files separately, and then automatically merging them. Please wait for the merge to complete or until the "Download Successful" message appears before opening the video file, otherwise the merge may fail.

  2. If you are installing from source code, it may fail because a missing .exe file. You can download the file according to your operating system and copy it to the ffmpeg folder of this software. Address: https://github.com/jianchang512/pyvideotrans/releases/v2.19/

    Win download ytwin32.exe

    Mac download ytdarwin

    Linux download ytlinux

There are many ways to download videos from YouTube, whether it's command-line or a web UI. The video translation software also has a built-in simple download function. Open Menu -- Tools/Options -- Download YouTube Video to easily download.

image.png

The download interface is as follows:

image.png

Fill in the network proxy and video playback address and click download.

Frequently Encountering Login Verification Errors

image.png

image.png

As shown in the figure, these errors one may be due to frequent downloads being rate-limited, and two may be that the IP address of the proxy you are using has been poisoned and is on the YouTube blacklist.

Solution:

One: Switch VPN nodes, you may need to switch multiple nodes to find a usable IP.

Two: Use Chrome browser to log in to YouTube normally first, then copy the cookie information to the www.youtube.com_cookies.txt file and put the file in the directory where the video translation software sp.exe is located.

Of course, this method does not guarantee 100% download success, but it can significantly improve the download success rate and reduce errors.

How to Get cookies.txt

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

image.png

  1. Open the youtube.com website and log in.

  2. When the current page is in the youtube.com website, click the browser extension icon you just installed.

image.png

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

image.png

The downloaded name is www.youtube.com_cookies.txt, copy it to the directory where sp.exe is located.

  1. Try downloading again.

What if it still fails?

After successfully downloading a few videos, download failures may occur again. At this time, refresh the YouTube page and download cookies.txt again to overwrite the old one.

Of course, due to YouTube's risk control, if you want to completely improve the success rate, you still need to choose some clean VPN nodes.