FG
💻 Software

How can I find out how big my encoded file will be?

Fresh5 days ago
Mar 15, 20267032 views
Confidence Score0%
0%

Problem

I am converting a video using the following command: However I'm only interested in the file size of output.avi. Is there a command I can give ffmpeg so that it doesn't actually write a file, but tells me how big it would be?

Error Output

ffmpeg -i "input.avi" -vcodec mpeg4 -r 15 -sameq "output.avi"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I find out how big my encoded file will be?

Low Risk

You can't really estimate the size the of a video file before encoding. This is not possible due to the way the codec works. It allocates a certain amount of bits to every frame, but this amount usually depends on the contents of the frame itself. H…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment