Skip to main content
kitlocal.dev

FFmpeg Cheatsheet

Runs locally

100% processed in your browser. Inputs and outputs never leave your device.

FFmpeg audio and video CLI recipes: remuxing without re-encoding, H.264/H.265 transcoding, trimming, resizing, GIF export, concatenation, and inspection.

How it works

FFmpeg processes media as a pipeline: `[input options] -i input [output options] output`. Flags apply to the NEXT `-i` or NEXT output file; `-c copy` remuxes streams without re-encoding.

Survival kit

The few commands to learn first.

40 commands

Keyboard shortcuts/Focus searchJKMove selectionCCopy selectedFBookmark selectedEscClear search

Inspect & Lossless Remux

Probe stream codecs with ffprobe and rewrap containers instantly with `-c copy`.

  • Essential

    Inspect codecs, resolution, FPS, bitrate, and streams cleanly

    ffprobe -hide_banner <input>

    Build the command

    ffprobe -hide_banner <input>

    Values are inserted exactly as typed. Quote them yourself if they contain spaces or special characters.

    When to use it

    Always check source codecs first so you know when lossless `-c copy` is possible.

    Breakdown

    -hide_banner
    Omit verbose FFmpeg compile configuration header

    Example

    ffprobe -hide_banner clip.mp4

Trim, Split & Concatenate

Cut time ranges accurately, concat clips, and reverse/loop media.

Video Codecs, Quality & Scaling

Compress H.264/H.265 cleanly for web playback and resize safely.

Audio, Volume & Subtitles

Extract, normalize, replace, mute audio, and handle subtitles.

Thumbnails, GIFs & Image Sequences

Generate high-quality palettes, extract frames, or turn stills into video.

Try it in a KitLocal tool