Documentation
Everything you need to know about using nano-ffmpeg.
Getting Started
nano-ffmpeg wraps ffmpeg in a keyboard-driven terminal dashboard. Install it and run:
You can also force the UI theme for a single run:
You can also control the startup path:
That's it. The TUI guides you through file selection, operation picking, settings configuration, and encoding. You need ffmpeg and ffprobe installed. For full Stabilize support, use an ffmpeg build with vidstab (Homebrew: ffmpeg-full).
If you install nano-ffmpeg via the Homebrew tap, ffmpeg-full is installed as a dependency. On Windows, the Scoop manifest declares extras/ffmpeg as a dependency so ffmpeg is pulled automatically.
Install nano-ffmpeg
Install ffmpeg separately (if not using Homebrew tap / Scoop)
Screen Flow
nano-ffmpeg uses a multi-screen navigation pattern:
- Home — ffmpeg version, capabilities, recent files, operation list
- File Picker — Browse filesystem or type a path. Inline ffprobe metadata preview. Use
--dir <directory>to change the startup directory. - Direct file startup — Use
--dir <file>to skip File Picker and start directly in Operations with the file preloaded. - Operations — Choose from 12 operations
- Settings — Presets + individual knobs. Live command preview.
- Progress — Live progress bar, ETA, stats, scrollable log
- Result — Output path, size comparison, do another or quit
Press Esc on any screen to go back. Press q to quit.
Operations
Convert Format
Change container format (MP4, MKV, WebM, AVI, MOV) and video codec (H.264, H.265, AV1, VP9). Quality presets from High to Tiny, preset speed slow/medium/fast/ultrafast, and audio codec (copy, AAC, MP3, Opus). Picks the container can't hold are swapped with a notice: WebM uses VP9 + Opus, MOV uses H.264 instead of AV1/VP9.
Extract Audio
Strip video track, keep audio. Output to MP3, AAC, FLAC, WAV, OGG, or Opus. Bitrate presets from CD Quality (320k) down to Lo-fi (64k). The chosen format maps to a fixed encoder; there is no automatic stream copy today. FLAC and WAV ignore the bitrate. OGG uses Opus when your ffmpeg has no libvorbis (Homebrew's default build).
Resize / Scale
Scale to 4K, 1080p, 720p, 480p, or 360p height (width is auto-derived). Width follows the source aspect ratio, rounded to an even number. Codec choice: H.264 or H.265.
Trim / Cut
Set start and end time as HH:MM:SS, MM:SS or seconds. Lossless cut (stream copy) toggle; lossless cuts start on the nearest keyframe. End time is pre-filled with the input's total duration from ffprobe. Invalid times, an end before the start, or a start past the end are flagged before anything runs.
Compress
CRF quality: Visually Lossless (18) to Heavy (32). Codec choice: H.264, H.265, AV1. Preset speed: slow/medium/fast.
Merge / Concat
Joins every file in the input's folder that shares the same extension, in alphabetical order, using ffmpeg's concat demuxer. Settings lists the files before you run it, and the merge output is never fed back in. Names with spaces, quotes or accents work. Stream-copy or re-encode to H.264/AAC. No reorder UI yet.
Add Subtitles
Burn-in (hardcode) or soft-embed subtitle streams already present in the input file. Pick which subtitle track to use. Burn-in needs an ffmpeg build with libass (ffmpeg-full on macOS); without it, or when the file has no subtitle tracks, Settings says so and won't run. Font, size, and position customization are not yet exposed.
Create GIF
Frame rate (10/15/24 fps), width presets, palette generation and paletteuse for quality, start time and duration selection. Output is GIF only today; WebP output is planned.
Extract Thumbnails
Single frame at a timestamp (defaults to mid-clip for clips up to 10s), 4x4 contact sheet, or one frame every 5 seconds written as name_extract_thumbnails_001.png, _002.png, and so on. Output is PNG.
Watermark
Overlays a solid white color box. Five positions (four corners and center), opacity (25/50/75%), and size presets (small/medium/large). Image and text watermarks are planned.
Audio Adjustments
Normalize (loudnorm), volume up/down by 3, 6 or 10 dB, fade in + fade out (2s, auto-clamped to input duration), or remove audio entirely.
Video Filters
Stabilize (vidstab when available; falls back to deshake with a warning in Settings), deinterlace (yadif), speed 2x/0.5x, rotate 90°, horizontal/vertical flip. Crop and color filters are planned.
Keybindings
Global
| Key | Action |
|---|---|
q | Quit (stops a running encode first) |
Ctrl+C | Force quit |
? | Toggle help overlay |
While a text field or the path input has focus, q and ? are typed as characters.
Navigation
| Key | Action |
|---|---|
↑ / k | Move up |
↓ / j | Move down |
Enter | Select / confirm / execute |
Esc | Go back one screen |
File Picker
| Key | Action |
|---|---|
Enter | Open directory / select file |
Backspace | Parent directory |
/ | Toggle path input mode |
Settings
| Key | Action |
|---|---|
← / → | Change select/toggle value or move the text cursor |
Typing | Edit text fields (Start/End Time, Duration, Timestamp) |
Enter | Execute ffmpeg command |
Progress
| Key | Action |
|---|---|
Esc | Cancel (with confirmation); on a failed job, back to Settings |
y / n | Confirm or deny cancellation |
Configuration
Config is stored at ~/.config/nano-ffmpeg/config.json:
default_output_dir — Where output files are saved (empty = same as input; must be an existing directory)theme — Color theme (dark or light)recent_files — Last 10 files used (auto-populated)hw_accel — Reserved; not applied to encodes yetffmpeg_path — Reserved; not read yet (ffmpeg is found on PATH, next to the binary, or in Homebrew's ffmpeg/ffmpeg-full kegs)Passing --theme dark|light overrides the config theme for that run.
Passing --dir <directory|file> overrides startup location for that run.
Capabilities are cached separately at ~/.config/nano-ffmpeg/capabilities.json and auto-invalidated when your ffmpeg version changes.
Progress Screen
The progress screen parses ffmpeg's stderr in real-time:
- Gradient progress bar — green (0%) to cyan (100%), adapts to terminal width, measured against the expected output length (trims, GIFs and speed changes reach 100%)
- ETA — Smoothed with rolling average over last 5 updates to avoid jitter
- Stats — Elapsed, speed, FPS, frames, output size, bitrate
- Braille spinner — For indeterminate operations (stream copy, concat)
- Live log — Scrollable raw ffmpeg output, last 6 lines visible
- Cancel — Esc opens confirmation; y stops ffmpeg (SIGINT, force-killed after 3s; killed directly on Windows) and removes the partial output. Quitting mid-encode does the same
- Errors — A failed job shows the first ffmpeg error line plus a plain-English explanation; Esc returns to Settings
Smart Defaults
nano-ffmpeg runs ffprobeon your input file and uses parts of the result to avoid dead ends. The behaviors below are what's actually wired up today:
deshake and shows a fallback warning in SettingsNot done yet: suggesting an output codec from the input, graying out upscale targets, and pre-selecting AAC for stream copy.