320kbps
← Back to presets

Compress Video

Reduce video file size while keeping good quality.

input.mp4

Selected file

Ready

FFmpeg command

ffmpeg -i 'input.mp4' -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k 'output.mp4'

About this command

This command re-encodes the video with H.264 and AAC. The CRF value controls the balance between visual quality and file size.

Compression level

Balanced · CRF 23

A good balance between visual quality and file size.

-i

Specifies the input video file.

-c:v libx264

Encodes the video using H.264, a widely supported video codec with good compression efficiency.

-crf

Controls video quality. Lower values produce better quality and larger files, while higher values produce smaller files with lower quality.

-preset medium

Controls the encoding speed and compression efficiency. Slower presets generally produce smaller files at the same quality, but take longer to encode.

-c:a aac

Encodes the audio using AAC.

-b:a

Sets the audio bitrate. Higher bitrates generally preserve more audio quality but produce larger files.