Skip to main content

Lightweight media crop and trim tool.

Project description

Cropbox

A lightweight desktop utility for trimming, cropping, previewing, and exporting video and GIF media.

CropBox screenshot

Features

  • MP4, MOV, MKV, WebM, and GIF preview
  • Interactive crop overlay with draggable edges and handles
  • Toggleable crop-coordinate and trim time/frame annotations
  • Timeline trim in/out selection
  • Exact trim-in and trim-out entry by timecode or frame number
  • Dockable Info panel for editing playback, trim, and crop values
  • 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
  • ffmpeg
  • ffprobe

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
  • View: Info Panel, Show Annotations
  • Help: Install FFmpeg, About Cropbox

Install

Install the latest release from PyPI:

pip install cropbox

Or install from a local source checkout:

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 or HH:MM:SS.mmm
  • --trim-out: initial trim-out time in seconds or HH: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.
  • Press Enter in an Info panel field to apply current time/frame, playback FPS, trim, or crop changes.
  • The playhead is constrained to the active trim range.

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

cropbox-0.1.3.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cropbox-0.1.3-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file cropbox-0.1.3.tar.gz.

File metadata

  • Download URL: cropbox-0.1.3.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

Hashes for cropbox-0.1.3.tar.gz
Algorithm Hash digest
SHA256 46e86c491f81a1bbe6849a574556646b128e1767f311fb8ca66bc18dcb81c619
MD5 c3a3e8cd1891366fb4c3b97f3fa0a123
BLAKE2b-256 6d4f2b7912e56d1b37529de07254201cc7965948d76686105639253d31f4d1b8

See more details on using hashes here.

File details

Details for the file cropbox-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cropbox-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for cropbox-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a310b7bc850f15d32e5d200280a3d4a41877050ddcd69f7245d566202dca6a8
MD5 1729617fc1d17145c1cc0a55fa0e9ebc
BLAKE2b-256 79f3700049b89abcc62bdaa57be377aa24b05ecbc427bf3cc66cf216b5e02565

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page