A command-line tool for downloading videos from various platforms
Project description
crec
A simple command-line tool to download videos from various platforms.
Features
- Download videos from multiple platforms:
- YouTube
- TikTok
- And many more (experimental support for all other yt-dlp supported sites)
- Download audio only
- Download without audio
- Download thumbnails
- Compress videos
- Copy file path to clipboard
- List available qualities
- Custom filename patterns
- Playlist support
- Custom FFmpeg arguments
Installation
pip install crec
Usage
crec <url> [options]
Options
-a, --audio-only: Download audio only (same as -nvi)-na, --no-audio: Download without audio-nvi, --no-video: Download only audio-nc, --no-copy: Do not copy path to clipboard-vi, --video: Download video (default behavior)-q, --quality: Video quality (e.g., 720, 1080)-ql, --quality-list: List available qualities and their sizes-co, --compress: Compression level (0-9)-o, --output-dir: Output directory-t, --thumbnail: Download thumbnail-f, --filename: Custom filename pattern (e.g., "{title}_{quality}")-p, --playlist: Download as playlist-ff, --ffmpeg-args: Custom FFmpeg arguments-v, --version: Show version information-d, --delete: Delete all contents in ~/crec-op, --open: Open ~/crec in file explorer
Examples
# Download a video
crec https://youtube.com/watch?v=...
# Download audio only
crec https://youtube.com/watch?v=... -a
# Download without audio
crec https://youtube.com/watch?v=... -na
# Download specific quality
crec https://youtube.com/watch?v=... -q 720
# List available qualities
crec https://youtube.com/watch?v=... -ql
# Compress video
crec https://youtube.com/watch?v=... -co 5
# Download thumbnail
crec https://youtube.com/watch?v=... -t
# Custom filename
crec https://youtube.com/watch?v=... -f "{title}_{quality}"
# Download playlist
crec https://youtube.com/playlist?list=... -p
# Custom FFmpeg arguments
crec https://youtube.com/watch?v=... -ff "-c:v libx264 -crf 23"
# Delete all contents in ~/crec
crec -d
# Open ~/crec in file explorer
crec -op
Filename Patterns
You can use the following placeholders in your filename pattern:
{title}: Video title{id}: Video ID{quality}: Video quality{date}: Upload date
Example: -f "{title}_{quality}" will create a file like My Video_720.mp4
Compression Levels
0: No compression1: Light compression (high quality)2-3: Medium compression4-5: Moderate compression6-7: Heavy compression8-9: Extreme compression (low quality)
Output Directories
By default, files are saved in:
~/crec/videos/for videos~/crec/audio/for audio files~/crec/photos/for thumbnails
You can change the output directory with -o.
Requirements
- Python 3.7+
- FFmpeg (for audio extraction and compression)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crec-1.0.0.tar.gz.
File metadata
- Download URL: crec-1.0.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60a7e7a81a85f600f69099e0c5ec9929d8cf4ecbbddd6d8f3ed31c344f35016c
|
|
| MD5 |
1d9696ebd7f83e1a3e26d07fdcda3fef
|
|
| BLAKE2b-256 |
8f8e0eb22a53bd385711a4022614e428e3cbf8dbaff72cafb79ddd19623d468e
|
File details
Details for the file crec-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crec-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e7a9d695ffb9126955f0080ea74874577a21fc8b3736cac2480947a2b467bd
|
|
| MD5 |
53b217b55579d22592e0af4ef7dd0875
|
|
| BLAKE2b-256 |
60a63386aa9107caecfda5d0962d8db67d96e6dd1f719f24f0718404fd5c2201
|