PyMedia is a tool for downloading YouTube videos and audio, available in both GUI (Graphical User Interface) and CLI (Command Line Interface) modes.
-
Video and audio support: Download videos and audio separately or merge them into a single file.
-
Format selection:
- Videos:
.mp4 - Audio:
.mp3
- Videos:
-
GUI Mode:
- Search and validate YouTube urls.
- Display media details, including thumbnails, title, channel, and duration.
- Toggle between video and audio download modes.
-
CLI Mode:
- Command-line options to specify url, file type, name, and save path.
- FFMPEG Integration: Used for merging video and audio or converting audio to
.mp3.
tkinterttkbootstrap1.10.1Pillow11.0.0pytubefix8.3.0
- FFMPEG (place the executable in
ffmpeg/bin)
-
Clone the repository:
git clone https://github.com/yourusername/media-downloader.git cd media-downloader -
Install dependencies: Ensure you have Python 3.12 and pip installed, then install the required libraries:
pip install -r requirements.txt
-
Ensure FFMPEG is properly set up and adjust the path in the code if needed.
- Run the application:
python App.py
- Available features:
- Enter a YouTube url and click Search.
- View detailed media information.
- Click Download to save the video or audio.
- Run the application with the necessary arguments:
Examples:
python Media.py --url <URL> --path <PATH> --name <NAME> [--video | --audio]
- Download a video:
python Media.py --url "https://youtu.be/EXAMPLE" --path "./downloads" --name "video" --video
- Download audio:
python Media.py --url "https://youtu.be/EXAMPLE" --path "./downloads" --name "audio" --audio
- Playlist support.
- Progress bar during downloads.
- Option to download all added items at once.
- Scroll support for displaying multiple items in the GUI.
This project is licensed under the MIT License - see the LICENSE file for details.