🎥✂️🔗 lord-of-the-clips (lotc)
Video downloader, trimmer, and merger using the terminal. Supports YouTube, Facebook, Reddit, Twitter, TikTok, Instagram, LinkedIn, 9GAG, etc. Downloads/trims at multiple points. Merges multiple clips.
💫 Background
As per the Pareto Principle, a video usually has its best parts. Hence, Reels/Shorts/Stories are popular nowadays. Likewise, I frequently download videos from various sites (e.g. YouTube, Facebook, Reddit, etc) using various online video downloaders, then I clip the most interesting/best parts only which are usually posted in social media sites or shared on private/group chats.
Got tired of these routines eventually, and I want a tool that given a URL and timestamps/durations will download the video AND auto-clip them at the desired segments in a single command AND it should support multiple sites. This is the missing tool that I wanted. In the simplest case, this lotc CLI app will download the full video.
⚡Features
- downloads a video and auto-trims/clips the specified durations
- trims a saved video file and/or clips the specified durations
- merges saved video files, usually for concatenating related clips
- provides smart output file name by default
- accepts a custom output file name
- leverages CLI styling for better experience
🦾 Standing on the Shoulders of Giants
- yt-dlp: video downloader
- moviepy: video trimmer/merger
- click: CLI app creator
- rich / rich-click: CLI app styler
🔨 Installation
pip install lord-of-the-clips
This will install a global lotc shell command which you could run in the terminal.
lotc is the acronym for lord-of-the-clips.
🔧 Dependencies
ffmpeg is strongly recommended by yt-dlp to be installed since some websites have split video/audio files:
- Mac:
brew install ffmpeg - Ubuntu:
sudo apt install ffmpeg - Others
⚙️ Usage
For further details/sample usages, run this command:
lotc --help
And for its subcommands:
lotc download --help
lotc trim --help
lotc merge --help
🚀 Demo
The GIF below demonstrates the output of lotc --help command and its lotc download --help subcommand, and running an example provided in the output:
⚠️ Rate Limits
Some sites (e.g. Facebook) imposes scraping rate limits on their pages and could cause issues in your succeeding downloads.
Hence, throttle your usage or don't use lotc excessively in a short amount of time.
Metadata
Release files for lord-of-the-clips 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lord-of-the-clips-0.1.12.tar.gz | 11.7 MB | Without provenance | Details for lord-of-the-clips-0.1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lord_of_the_clips-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for lord_of_the_clips-0.1.12-py3-none-any.whl |
Total release size: 11.7 MB
Release files / lord-of-the-clips-0.1.12.tar.gz
| Download URL | lord-of-the-clips-0.1.12.tar.gz |
|---|---|
| Size | 11.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46fa779279cfb57857c069b440f84968f60a84f091bbe5a828f6cde93865bd53
|
|
BLAKE2b-256 checksum How to use checksums |
12baab26677fcca500c850b4b15f7330fc268c2ca8a4f2b1eeb0e9928b22e1db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / lord_of_the_clips-0.1.12-py3-none-any.whl
| Download URL | lord_of_the_clips-0.1.12-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76dcba0d8b6e98fab9d2acff6cef9dabdaab1ac3afe4e0d6ab034add62506827
|
|
BLAKE2b-256 checksum How to use checksums |
46057e0aa73cc64525efac2892499589a18ebae6a067bf9e1003320a9a65716c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for lord-of-the-clips 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.