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
- Install Shotcut — Download the free, open-source video editor from shotcut.org. Available for macOS, Windows, and Linux.
- Prepare your source file — Place the video you want to trim in a known directory (e.g., ~/Videos).
- Find the time range — Open the video in Shotcut's timeline. Note the start and end timestamps.
- 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
| Task | Command |
| Trim 30s from start | melt "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 audio | melt "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