BYMDS is a FastAPI application for downloading YouTube media as MP4 or MP3 files. This project is designed to be lightweight and easy to use, while also providing a safer way to download YouTube content without relying on third-party services.
- Analyze source URL metadata and available formats
- Download MP4 video or MP3 audio
- Mobile-inspired dark UI
- Automatic cleanup of temporary download files
- Python 3.10+
- FFmpeg and FFprobe available either:
- in system PATH, or
- via FFMPEG_LOCATION in an env file
- Create and activate a virtual environment.
- Install dependencies.
- Copy .env.example to .env and update values if needed.
- Run the app.
Example commands on Windows PowerShell:
python -m venv .venv ..venv\Scripts\Activate.ps1 pip install -r requirements.txt python app.py
Then open:
- POST /api/get-info?url=
- POST /api/download?url=&format_id=&output_format=mp4|mp3
- Maximum allowed source duration is 5 minutes.
- If FFmpeg is not found, set FFMPEG_LOCATION to the folder containing ffmpeg.exe and ffprobe.exe.
This project is for educational purposes only. Downloading copyrighted content without permission may violate YouTube's terms of service and copyright laws. Use responsibly and at your own risk.