Generate an FFmpeg command
Build an FFmpeg command for common video jobs without installing anything. Choose input and output formats, a trim range, a scale width, and a CRF, then copy the command or download it as a text file.
ffmpeg -i input.mp4 -vf scale=1280:-2 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4Analysis runs in the Worker on your device.
Why local
This page only builds a command string in the browser. No media is read, uploaded, or processed here.
How it works
- Choose the input and output formats.
- Optionally set a trim range, scale width, and CRF.
- Copy the generated command or download it as a .txt file.
Capabilities
- Output formats
- MP4, WebM, MOV, GIF, and MP3 presets with matching codec flags.
- Trim
- Optional start and end seconds, written as FFmpeg timecodes.
- Scale
- Original, 640, 1280, or 1920 px wide with automatic even height.
- Quality
- CRF 18, 23, 28, or 32 for H.264 and VP9; MP3 uses a fixed VBR quality.
- Copy and download
- One-click copy to the clipboard and a timestamped .txt download.
- Privacy
- Everything is generated locally in the page.
Limits
- The command is a starting point; FFmpeg build options and codec availability vary by system.
- No media is processed and no output file is produced on this page.
- Input paths are placeholders (input.ext); replace them with real paths.
- GIF commands ignore the CRF value and use a fixed 10 fps palette path.
- MP3 output discards video and always uses libmp3lame.
- There is no filter graph editor, subtitle handling, or hardware encoder selection.
FAQ
Does this page convert my video?
No. It only writes an FFmpeg command. Run it in a local terminal with FFmpeg installed.
Why are the file paths placeholders?
The page cannot see your filesystem. Replace input.mp4 and output.mp4 with your real paths.
Which CRF should I use?
Lower is better quality and larger. 18 is visually near-lossless, 23 is a common default, and 28–32 shrink files further.
Is the command safe to run?
It uses standard FFmpeg flags and does not delete files. Review paths before running it.
Can I generate an AV1 or HEVC command?
Not on this page; the presets cover H.264, VP9, GIF, and MP3.