Video · Free browser tool

FFmpeg command generator: trim, resize and audio

Choose a recipe, enter local filenames and settings, then review and copy the command. Commands are for Bash/zsh and use -n to avoid overwriting output. This page never executes FFmpeg.

No account required. File and text processing stays in your browser.

Loading the local tool...

How to use it

  1. 01

    Choose a task

    Trim by re-encoding, fit a video inside an even-pixel canvas, extract WAV, or print silence/loudness measurements.

  2. 02

    Enter settings

    Use local filenames, a separate output and valid times/dimensions. The video recipes select the first video and optional first audio stream.

  3. 03

    Review and run locally

    Install FFmpeg from its official distribution, inspect the command, and run it in your terminal. Check the actual output.

A worked example

An accurate-trim recipe with start 10 seconds and duration 5 seconds decodes the source and creates a new five-second segment. It is slower than stream copy and cuts still align to video frames.

What to check

  • The command assumes Bash/zsh, including a suitable WSL environment; quoting is not intended for Windows Command Prompt or PowerShell.
  • The available FFmpeg codecs and filters depend on your installation. Unusual media can require additional options.
  • A measurement command prints a log and creates no media file. The page does not inspect the file on your disk.

Questions

Why do the commands use -n?

FFmpeg exits if the output already exists. Rename the output for a new version rather than silently replacing a source file.

Is a re-encoded trim lossless?

No. The trim recipe uses H.264/AAC encoding. Stream copy avoids that encoding but can cut differently around keyframes and is not the recipe used here.

Bring the result into your edit.

Rushilo edits video on Mac and Windows with your own connected AI. Review changes on the timeline, keep the project and make the next revision.

See how Rushilo connects