Skip to content

ripsivis/shtcrop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shtcrop

shtcrop is a Telegram bot that detects and crops black, white, or blurry borders in videos, then re-uploads the edited video.

Features

  • 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.

Usage

  1. Create venv & install dependencies:

    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
  2. Set Up Environment Variables: Edit .env file:

    mv env.example .env
    
  3. Run the Bot:

    python cropper.py

Usage

Send a video to the bot in Telegram. It will automatically process and re-upload the cropped version.

License

This project is licensed under the GNU Affero General Public License v3.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%