Skip to content
UniKit

Target-size compression

Reverse-calculate video bitrate from target size and duration.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Video filename

Target-size plan

Reverse-calculates video and audio bitrate.

Enter a video to calculate

Video kb/s: 0

What this tool does

  • Control upload size
  • Plan attachment videos

Example

Input

input.mp4

Output

按目标体积反推码率
ffmpeg -i input.mp4 -c:v libx264 -b:v 2602k -c:a aac -b:a 128k output.mp4
目标 20 MB,时长 60s
视频码率 2602 kb/s,音频码率 128 kb/s

Audio bitrate is deducted before calculating video bitrate.

Frequently asked questions

Is the target exact?

Container overhead can cause a small difference.

Is audio included?

Audio bitrate is deducted from the target.

Are small targets supported?

Yes, video bitrate is clamped to 1 kb/s.

Keywords:目标体积视频码率target sizecompressionffmpeg

Related tools