shtcrop is a Telegram bot that detects and crops black, white, or blurry borders in videos, then re-uploads the edited video.
- Border Detection: Identifies black, white, or blurry borders.
- Video Cropping: Removes unwanted borders from videos.
- Telegram Integration: Processes and re-uploads videos directly in Telegram.
- Multi-Mode: Supports black, white, and blurry(experimental) border detection.
-
Create venv & install dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Set Up Environment Variables: Edit
.env
file:mv env.example .env
-
Run the Bot:
python cropper.py
Send a video to the bot in Telegram. It will automatically process and re-upload the cropped version.
This project is licensed under the GNU Affero General Public License v3.0.