Log in

View Full Version : Real MPEG 4 Calculator


symonjfox
15th April 2003, 16:47
Hi everybody.

I searched all over the forum and the net, but I didn't find a REAL MP4 calculator.

For example, there are Hundreds of "MPEG 4" calculators, but they only refer to AVI Divx/Xvid files, not MPEG 4 (Xvid + AAC) in MP4 container.

I know that MPEG 4 container makes the files bigger about 10%, but I'm not sure: I saw some files getting bigger just 5% and other more; I think it depends on the number of streams I add.

I've no time to keep on triing encoding Audio and Video to match 700 MB of 1 CDR.
Thanks

EDIT
I thought I found one, but it was only a DivX calc.

BoNz1
15th April 2003, 20:44
Well, when I mux AAC and xvid into an mp4 container I use the -optimize switch in mp4creator, using this the overhead for the container seems to be lower than avi so I have no problem fitting it on a cd usually it is about 2-3MB smaller than I had calculated just assuming that the overhead is the same as avi.

sprit
15th April 2003, 21:17
I use OpenOffice and lately it has been accurate to within a few houndreds of kbytes.
Using a simple "y=m+kx" approximation when estimating the final MP4 size seems to work fine. (The data comes from ~100 encodings of hockey games; ~2h each, ~30Mbyte of sound, so I don't known how it would work with a bigger spread of data.)
I made a simple spread sheet with columns for AVI, MP4 (no audio ), AAC, and MP4 (with audio). I added two separate linear regressions (one where y=MP4 size, x=AVI size and one where y=final MP4, x=MP4 (no audio)+AAC), using the data from the four columns. Calculating the AVI size is then easy; just run the above backwards from the wanted final size and the size of the audio.

My experience of optimize isn't as good as BoNz1's; optimizing shaves a couple of bytes from the file. I just muxed two mp4s: both lost 62 bytes (0.000008%)...

symonjfox
16th April 2003, 10:35
Thanks, I'll try both the answers :cool: