Note
A simple Video downloader using yt-dlp, FFmpeg.
No fancy gui just a single link to paste in a console.
- It's not the fastest at all, but works.
Important
1. Tampermonkey
A browser extension across all major browsers that makes it easy to find and install userscripts created by other users.
For download with this setup, is needed to have a
url, you can get itmanualyor with ascriptusing Tampermonkey.Add-on/plug-in, then just open the file and copy all the content into a new tampermonkey script.
Tip
2. FFmpeg
An open-source tool for converting, editing, and streaming video and audio files in different formats.
Download page or
winget,brew,apt, ...
Tip
3. Install Python
Ensure that Python is installed on your system. You can download it from here or
winget,brew,apt, ...
You need to install the required dependencies as administrator (suggested).
Python Virtual Environment - venv (Optional (console only) - you will need to activate everytime)
Directory for virtual environment
python -m venv .venvActivation (Mac/Linux)
.venv/bin/activateActivation (Windows)
.venv\Scripts\activateYou can do this by running the following command in your terminal:
pip install -r requirements.txt
Caution
5. Running StreamSaver.py
If you are using venv, you can only run the code in this way
python StreamSaver.py
The downloads will start with the name of 1.mp4 to x.mp4
you can select at start what is the starter number.
Warning
Do not download more than 3 request at the same time, you may risk get ip banned or else.
- Suggest to wait a little when downloading in big chunks.
Single console command:
yt-dlp <url> -o <filename.mp4>
Script:
import subprocess i = 1 while True: user_input = input("Enter a URL or 'exit' to quit: ").strip() if user_input.lower() == "exit": break output_filename = f"{i}.mp4" result = subprocess.run(['yt-dlp', user_input, '-o', output_filename]) if result.returncode == 0: i += 1