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:

$ nano-ffmpeg

You can also force the UI theme for a single run:

$ nano-ffmpeg --theme dark
$ nano-ffmpeg --theme light

You can also control the startup path:

# Start File Picker in this directory
$ nano-ffmpeg --dir /path/to/folder
# Skip File Picker and preload this file
$ nano-ffmpeg --dir /path/to/video.mp4

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

# macOS / Linux (Homebrew)
$ brew install dgr8akki/tap/nano-ffmpeg
# Windows (Scoop)
> scoop bucket add extras
> scoop bucket add nano-ffmpeg https://github.com/dgr8akki/scoop-bucket
> scoop install nano-ffmpeg
# Any OS with Go
$ go install github.com/dgr8akki/nano-ffmpeg@latest

Install ffmpeg separately (if not using Homebrew tap / Scoop)

# macOS
$ brew install ffmpeg-full
# macOS (minimal build; Stabilize uses deshake fallback)
$ brew install ffmpeg
# Ubuntu / Debian
$ sudo apt install ffmpeg
# Fedora
$ sudo dnf install ffmpeg
# Windows (Scoop)
> scoop bucket add extras
> scoop install extras/ffmpeg
# Windows (winget)
> winget install ffmpeg

Screen Flow

nano-ffmpeg uses a multi-screen navigation pattern:

Home → File Picker → Operations → Settings → Progress → Result
  • 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

KeyAction
qQuit (stops a running encode first)
Ctrl+CForce quit
?Toggle help overlay

While a text field or the path input has focus, q and ? are typed as characters.

Navigation

KeyAction
↑ / kMove up
↓ / jMove down
EnterSelect / confirm / execute
EscGo back one screen

File Picker

KeyAction
EnterOpen directory / select file
BackspaceParent directory
/Toggle path input mode

Settings

KeyAction
← / →Change select/toggle value or move the text cursor
TypingEdit text fields (Start/End Time, Duration, Timestamp)
EnterExecute ffmpeg command

Progress

KeyAction
EscCancel (with confirmation); on a failed job, back to Settings
y / nConfirm or deny cancellation

Configuration

Config is stored at ~/.config/nano-ffmpeg/config.json:

{
"default_output_dir": "",
"theme": "dark",
"recent_files": [],
"hw_accel": "auto",
"ffmpeg_path": ""
}
  • 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 yet
  • ffmpeg_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:

  • Trim → the End Time field is pre-filled with the input's total duration
  • Add Subtitles → the Subtitle Track selector lists the subtitle streams detected in the input (codec and language, when present); if none are found, Settings says so and won't run
  • Audio Adjustments (fade) → the fade-out start is clamped to the input duration so short clips don't produce an invalid filter
  • Video Filters → if vidstab is unavailable, Stabilize automatically uses deshake and shows a fallback warning in Settings
  • Convert → codecs a container can't hold are swapped (WebM → VP9 + Opus, MOV → H.264) with a notice
  • Extract Audio / Audio Adjustments → blocked with a message when the file has no audio track
  • Extract Thumbnails → the timestamp defaults to mid-clip for clips up to 10s
  • File Picker → shows an inline ffprobe preview (format, duration, size, video codec/resolution/fps, audio codec/channels/sample-rate, subtitle track count) while you're browsing
  • Not done yet: suggesting an output codec from the input, graying out upscale targets, and pre-selecting AAC for stream copy.