FFmpeg Command Generator

Generate FFmpeg commands with recommended settings — CPU, AMD GPU, or NVIDIA GPU.

Video Options — CPU

Leave blank if using CRF.

Common: 24, 30, 60

Lower = better quality (18–28 typical)

Slower = better compression

Video Options — AMD GPU

VA-API (Linux) — native GPU encoding via Mesa/libva. Uses scale_vaapi for scaling. Recommended on Linux.
AMF (Windows / ROCm) — requires libamfrt64.so.1. Works out of the box on Windows with AMD drivers.

Maps to AMF -quality flag.

Lower = better quality. Leave blank for default.

Common: 24, 30, 60

Video Options — NVIDIA GPU

NVENC requires NVIDIA GPU with driver 450+ and FFmpeg built with NVENC support.
CQ mode: emits -cq <val> -b:v 0 (constant quality). Leave blank to use bitrate only.
AV1 (av1_nvenc) requires RTX 40 series or later.

Leave blank to use Bitrate mode instead.

Common: 24, 30, 60

Audio Options

Recommended: 128k–320k

Common: 44100, 48000

1 = mono, 2 = stereo

Advanced Options

Trimming

Format: HH:MM:SS or seconds

Format: HH:MM:SS or seconds

Generated Command

ffmpeg -i input.mp4 -c:v copy -c:a copy -y output.mp4