Skip to content

About

HW Accerlerrated Lossless video trimming and cropping in a single pass – ffmpeg-based.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Video Trim Cropper logo

Easy to use, Modern, HW‑Accelerated Video Trimmer & Cropper

Trim and crop any video in a single pass — losslessly where possible, hardware‑accelerated where not. A clean, modern desktop app for Windows, inspired by the Windows Photos trim experience and powered by ffmpeg.

License Platform Built with Electron HW Accelerated


✨ Features

  • Trim + crop in one pass — set your in/out points and crop region, export once.
  • Lossless trimming — pure stream copy (-c copy): instant, zero quality loss.
  • Frame‑exact mode — precise cuts via re‑encoding when you need them.
  • Hardware or software encoding — automatically uses NVIDIA NVENC, AMD AMF or Intel Quick Sync, and you can switch to software x264 (CPU) in settings.
  • Quality & codec control — pick H.264 or H.265 (HEVC) and dial in the compression with a quality slider; your choice is remembered between sessions.
  • Draw‑to‑crop — simply drag a rectangle with your mouse to crop, with the exact pixel size shown live as you drag.
  • Interactive crop — fine‑tune with handles, snap to aspect presets (Free · Original · 16:9 · 9:16 · 1:1 · 4:3), with a live cropped preview.
  • Responsive preview — the video scales with the window, just like the Windows Photos trim tool.
  • Info status bar — resolution, codec, fps, bitrate, audio and file size at a glance.
  • Open with — open a video straight from the Windows right‑click Open with menu.
  • Modern UI — dark, Windows 11‑style interface with a purple accent.
  • Drag & drop — just drop a file in, or click to browse.
  • Multi‑language — English & German, switchable in settings.
  • Self‑contained — ffmpeg/ffprobe are bundled; nothing else to install.

📸 Screenshots

Trim view

Trim — drag the timeline handles; the status bar shows resolution, codec, fps, bitrate & more

Crop mode

Crop — drag a rectangle over the video; the exact pixel size updates live as you drag

Encoder settings

Settings — switch between hardware (NVENC / AMF / QSV) and software (x264 · CPU) encoding

Drop screen

Just drop a video in to get started

⬇️ Download & Install

Grab the latest build from the Releases page:

File What it is
VideoTrimCropper-<version>-portable.exe Portable — a single file, no installation. Just double‑click (great for a USB stick).
VideoTrimCropper-<version>-setup.exe Installer — installs per‑user and creates Desktop & Start‑menu shortcuts.

Windows SmartScreen may warn on first launch because the app isn't code‑signed. Click More info → Run anyway. This is normal for open‑source, self‑signed builds.

🚀 Usage

  1. Open a video — drag it onto the window, click Open file, or right‑click a video in Explorer → Open with → Video Trim Cropper.
  2. Trim — drag the two handles on the timeline to set the start and end.
  3. Crop (optional) — click Crop, drag a rectangle over the video, adjust it, pick an aspect ratio, then Apply.
  4. Pick the mode:
    • Lossless — fastest, no re‑encode (cuts snap to the nearest keyframe).
    • Frame‑exact — re‑encodes for a precise cut.
  5. Save a copy — choose where to write the result. That's it.

🧠 How it works

You do… The app does…
Trim only · Lossless Stream copy (-c copy) — instant, bit‑for‑bit identical, cut aligned to keyframes.
Trim only · Frame‑exact Re‑encodes for an exact cut.
Crop (with or without trim) Cropping changes the pixel dimensions, so it always re‑encodes.

Whenever the app re‑encodes, it detects your GPU and uses hardware‑accelerated encoding (NVENC / AMF / QSV), falling back to software (x264 / x265) if no supported GPU is available. You can also force software (CPU) from the settings — handy since software encoding can look slightly better on some material. The Quality button lets you choose the codec (H.264 or H.265/HEVC) and set the compression level; the setting is saved for next time. Audio is stream‑copied so it stays lossless.

🛠️ Build from source

Requires Node.js (which includes npm) on Windows.

git clone https://github.com/NeverBeLazyG/VideoTrimCropper.git
cd VideoTrimCropper
npm install

npm start        # run the app in development
npm run dist     # build the portable .exe + installer into dist/

Project layout

src/
  main/       Electron main process — window, IPC, ffmpeg (probe, HW detect, export)
  renderer/   UI — HTML/CSS/JS, timeline, crop tool, i18n
DESIGN.md     Design tokens (single source of truth for styles.css)

🧰 Tech stack

Electron · ffmpeg (via ffmpeg-static / ffprobe-static) · electron‑builder

📄 License

Released under the Apache‑2.0 License. See LICENSE.

About

HW Accerlerrated Lossless video trimming and cropping in a single pass – ffmpeg-based.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages