Script to detect content in letterboxed videos and crop them with ffmpeg
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| README.md | ||
| requirements.txt | ||
| video_crop.py | ||
Video Crop Tool
A Python script for automatically cropping letterboxing from video files using ffmpeg
Requirements
- Python 3.x
- ffmpeg binary in path
- Dependencies listed in requirements.txt (numpy, opencv)
Setup
- Create virtual environment:
python -m venv venv - Activate venv:
source venv/bin/activate(Linux/Mac) orvenv\Scripts\activate(Windows) - Install requirements:
pip install -r requirements.txt