TTrimpx

How-to Guide

How to Trim Video with Shotcut & FFmpeg MLT

A complete guide for trimming video clips on Mac, Windows, and Linux — using free tools like Shotcut, FFmpeg MLT, and OBS CLI. Includes copy-ready terminal commands.

Why Trim Video?

Trimming video is the most common editing task for content creators, streamers, and social media managers. Whether you need to crop a YouTube intro, extract a clip for TikTok, or remove dead air from a podcast recording — trimming is the first step in any workflow.

Step-by-Step: Trimming with Shotcut MLT

  1. Install Shotcut — Download the free, open-source video editor from shotcut.org. Available for macOS, Windows, and Linux.
  2. Prepare your source file — Place the video you want to trim in a known directory (e.g., ~/Videos).
  3. Find the time range — Open the video in Shotcut's timeline. Note the start and end timestamps.
  4. Use the MLT CLI command — Instead of editing manually, use the command line for batch processing:
# Trim a 90-second clip from 00:02:30 to 00:04:00
melt "/path/to/input.mp4" -out 240 -consumer avformat:"output_trimmed.mp4" vcodec=libx264 crf=23

Copy-Ready Commands for Common Tasks

TaskCommand
Trim 30s from startmelt "input.mp4" -out 30 -consumer avformat:"out.mp4" vcodec=libx264 crf=23
Extract middle clip (5s → 45s)melt "input.mp4" in=300 out=2700 -consumer avformat:"out.mp4"
Trim + extract audiomelt "input.mp4" -out 60 -consumer avformat:"audio.mp3" acodec=libmp3lame q=5

Tips for Better Trim Results

  • CRF 18–23 = Near-lossless (great for editing masters)
  • CRF 23–28 = Web-ready quality with smaller file size
  • Use MP4/H.264 for maximum compatibility across devices
  • WEBM/VP9 produces smaller files for web delivery

Ready to try it? Use CRF Calculator and Bitrate Calculator, then use Trimpx workspace to set up trim, conversion, caption, and OBS commands in a fast interface — no uploads needed.

Batch Video Processing Guide: Batch Video Processing Guide
Screen Recorder Guide: Screen Recorder Guide
Watermark Guide: Watermark Guide
Merge Videos Guide: Merge Videos Guide

More Trimpx Tools for Video Trimming