Skip to content

Download YouTube Videos

This mode is used to download videos from YouTube.

image-20240808010810495

Network Proxy Address: As is well known, YouTube cannot be accessed in China, so you need to fill in the network proxy address.

Video Playback Page URL: If you need to download a video, open the video playback from the YouTube page and copy the playback address here.

Select Save Directory: Where to save after downloading

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

Note:

  1. The actual download is to download the silent video screen file and the audio file separately, and then automatically merge them after the download is complete. Please wait for the merge to complete or after the download is successful before opening the video file, otherwise the merge may fail.
  2. If you install from source code, it may prompt a failure because there is a missing exe file. You can download the file according to the operating system and copy it to the ffmpeg folder of this software.

Win Download: https://github.com/jianchang512/pyvideotrans/releases/download/v2.19/ytwin32.exe

Mac Download: https://github.com/jianchang512/pyvideotrans/releases/download/v2.19/ytdarwin

Linux Download: https://github.com/jianchang512/pyvideotrans/releases/download/v2.19/ytlinux

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

image.png

The download interface is as shown in the figure below

image.png

Fill in the network proxy and video playback page address to click Download.

Frequently Encountered Errors Requiring Login Verification

image.png

image.png

As shown in the figure, these types of errors one is that downloading too frequently may be subject to risk control, and two is that the airport IP you are using is contaminated 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 the Chrome browser to log in to YouTube normally first, and 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% successful download, but it can significantly improve the download success rate and reduce the occurrence of 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 browser 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

Click Export again in the pop-up window, 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, you may encounter download failures again. At this time, refresh the YouTube page and re-download cookies.txt to overwrite it.

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