Lightweight media crop and trim tool.
Project description
Cropbox
A lightweight desktop utility for trimming, cropping, previewing, and exporting video and GIF media.
Features
- MP4, MOV, MKV, WebM, and GIF preview
- Interactive crop overlay with draggable edges and handles
- Timeline trim in/out selection
- Exact trim-in and trim-out entry by timecode or frame number
- Frame stepping and trim-handle nudging from the keyboard
- Playback speed control for preview and export
- FFmpeg export to MP4, MOV, and GIF
- CLI startup options for media, trim, and crop values
- Python 3.8–3.12
- PySide6 desktop UI
Requirements
- Python 3.8 through 3.12
ffmpegffprobe
CropBox checks for ffmpeg and ffprobe on startup and provides install guidance from Help -> Install FFmpeg.
Typical install on Ubuntu/Debian:
sudo apt install ffmpeg
Controls
- Space: play/pause
- Left/Right: step one frame
- Shift+Left/Right: nudge selected trim handle by one frame
Menus
- File: Open, Export, Quit
- Edit: Set Trim In, Set Trim Out, Reset Trim, Create Crop, Reset Crop, Playback Speed, Loop Playback
- Help: Install FFmpeg, About Cropbox
Install
pip install .
Run
cropbox
Open media immediately:
cropbox input.mp4
Open with initial trim and crop values:
cropbox input.mp4 --trim-in 12.5 --trim-out 00:00:20.000 --crop 100 50 1280 720
CLI Options
--trim-in: initial trim-in time in seconds orHH:MM:SS.mmm--trim-out: initial trim-out time in seconds orHH:MM:SS.mmm--crop X Y WIDTH HEIGHT: initial crop rectangle in source pixels
Notes
- Playback speed affects both preview and export.
- Exact trim-in and trim-out values can also be entered from the Edit menu.
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 cropbox-0.1.2.tar.gz.
File metadata
- Download URL: cropbox-0.1.2.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a95cd22399b2de1b9b978c2e3e1c6669d34ea5f37a9263a3d27fa25c03871fe2
|
|
| MD5 |
713bd04e2f04a11a36172e97af9948eb
|
|
| BLAKE2b-256 |
ff9b9b8067bdb9807f03542f8e671656a03ce181633d6c4e54e4e1cfb5eced23
|
File details
Details for the file cropbox-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cropbox-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92c69b290a6fce1ab7ca414e2249fe22f2f38376945c8e2c3e31a51284378322
|
|
| MD5 |
b5acd5511454147025218d603cae3126
|
|
| BLAKE2b-256 |
76c5b73bb0a14612005eb137d8ecc7dd25e2ede1cdc4965eff4ba0741ac018b9
|