SaMpeg is an all‑in‑one FFmpeg-powered video processing suite that works both as a GUI application (via Zenity) and a CLI tool. It provides NLE‑style timeline rendering, professional video/audio transforms, VFX utilities, social media exports, and hardware‑accelerated encoding when available.
- Automatic hardware acceleration detection (NVIDIA NVENC when available, fallback to libx264)
- Unified FFmpeg engine for consistent results across GUI and CLI
- Loss‑aware defaults tuned for high quality
- Trim (time-based)
- Crop
- Scale & pad (aspect‑ratio safe)
- Speed change (audio + video)
- Reverse playback
- AI‑quality 4K upscale (Lanczos + sharpening)
- Chroma key (green screen)
- Picture‑in‑Picture (PIP)
- LUT (.cube) color grading
- Watermark overlay
- Burn‑in subtitles (SRT)
- Text overlay
- Broadcast‑safe loudness normalization (EBU R128 style)
- Video stabilization (vid.stab)
- Container repair / stream copy recovery
- Audio waveform visualizer
- Audio extraction
- Social media exports (16:9, 9:16, 1:1)
- GIF generation (palette‑optimized)
- Metadata stripping
- Screen recording (X11)
- Lightweight NLE timeline
- Add clips sequentially
- Render concatenated projects at chosen resolution
- bash
- ffmpeg (with libx264; NVENC optional)
- zenity (for GUI mode)
- vid.stab FFmpeg filters (for stabilization)
- bc - Simple calculating tools
- X11 Utils - X11 utils
- X-based Linux desktop (X11 required for screen recording.)
chmod +x sampeg.sh
sudo mv sampeg.sh /usr/local/bin/sampegEnsure dependencies are installed:
sudo apt update && sudo apt install -y ffmpeg zenity bc x11-utils libvidstab-devsampeg
# or
sampeg --guiLaunches the full graphical suite with categorized tools.
General syntax:
sampeg <command> <input> <output> [options]Trim a clip:
sampeg trim input.mp4 output.mp4 00:00:10 00:00:30Scale to 1080p:
sampeg scale input.mp4 output.mp4 1920:1080Normalize audio:
sampeg normalize input.mp4 output.mp4Create social media exports:
sampeg social-export input.mp4 myvideoRecord screen:
sampeg record-screen output.mp4| Command | Description |
|---|---|
| trim | Cut by start/end time |
| crop | Crop video (W:H:X:Y) |
| scale | Resize with padding |
| speed | Change playback speed |
| reverse | Reverse audio & video |
| upscale | High‑quality 4K upscale |
| normalize | Loudness normalization |
| stabilize | Video stabilization |
| pip | Picture‑in‑Picture |
| chroma | Green screen key |
| watermark | Overlay watermark |
| text | Draw centered text |
| burn-subs | Burn subtitles |
| lut | Apply LUT grade |
| viz | Audio waveform image |
| repair | Fix broken container |
| extract-audio | Export audio track |
| social-export | Social media formats |
| gif | Create animated GIF |
| strip | Remove metadata |
| record-screen | X11 screen capture |
SaMpeg automatically uses NVIDIA NVENC when:
- FFmpeg reports NVENC/CUDA encoders
/dev/nvidia0is present
Otherwise, it safely falls back to libx264.
SaMpeg is designed as:
- A power‑user Swiss Army knife for FFmpeg
- A lightweight NLE alternative for fast jobs
- A scriptable media engine suitable for automation
No proprietary formats. No lock‑in. Just FFmpeg — done right.
MIT‑style usage. FFmpeg licensing applies to binaries and codecs.
SaMpeg Suite — built for creators who prefer control, speed, and quality.