digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: Predicting audio file size (http://www.digitalfaq.com/archives/encode/1488-dvd2svcd-predicting-audio.html)

black prince 11-03-2002 07:36 PM

DVD2SVCD: Predicting audio file size
 
Hi All,

Since D2S (RC4) predicts video file size after encoding audio and using
what's left to predict video, would it make sense to find out the audio
file size in advance. I started with a crude approach using
Mpeg Mediator to extract the .wav from the vob's and Headac3he
to predict approximate audio file sizes for .mp2.

Next, I tried a formula:

For 16bit Stereo: ([total movie seconds * 44KHz] * 2) * 2 = file size (.wav).
For example: ([7272 * 48] * 2 ) * 2 = 1,396,224 (.wav) and
Headac3he estimated 1,339,000 (.wav). I would like to determine the
file size for .mp2 at various audio bitrates (i.e. 192, 128, etc.)
If someone has a formula to predict audio file size for .mp2 please
post it. :)

-black prince

kwag 11-03-2002 07:54 PM

Piece of cake black prince :lol:

If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second. So just multiply your movie playing time in seconds by 24,000 bytes, in this case, and that will be your total file size for the audio.

-kwag

black prince 11-03-2002 09:05 PM

Hi Kwag,

Kwag wrote:
Quote:

Piece of cake black prince

If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second. So just multiply your movie playing time in seconds by 24,000 bytes, in this case, and that will be your total file size for the audio.

-kwag
Thanks Kwag. I didn't know it was that simple. 8)

-black prince

VILLA21 11-04-2002 02:58 AM

"...If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second..."

For 192kb/s Stereo is (192,000 / 8) * 2 or not?

kwag 11-04-2002 06:59 AM

Quote:

Originally Posted by VILLA21
"...If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second..."

For 192kb/s Stereo is (192,000 / 8) * 2 or not?

Hi VILLA21,

Doesn't matter if it's stereo, joint stereo, or dual channel. It's still the same. FileSize in Bytes = ( Kbps / 8 ) * total seconds.
You can double check this by opening a WAV file with WinAmp, and taking note of play time. Then open the WAV file with HeadAC3he and select .mp2 as output and your bit rate. See the output file size and compare to the formula. It will be the same.

-kwag

black prince 11-04-2002 07:23 AM

Hi Kwag and Villa21,

Kwag wrote:
Quote:

Hi VILLA21,

Doesn't matter if it's stereo, joint stereo, or dual channel. It's still the same. FileSize in Bytes = ( Kbps / 8 ) * total seconds.
You can double check this by opening a WAV file with WinAmp, and taking note of play time. Then open the WAV file with HeadAC3he and select .mp2 as output and your bit rate. See the output file size and compare to the formula. It will be the same.

-kwag
Kwag is correct. I compared the file sizes with Headac3he and the
formula. It's very close between the two. Headac3he is rounded and
the formula is more precise. I try to give 680 to 700 MB to video
and the rest to audio when encoding LBR on 74 minuted CD. I created
a spreadsheet in which I only enter the total movie time (seconds)
and all the audio bitrates are there with estimated file sizes. I choose
the one that comes close to how much space I want for video. 8)

-black prince

muaddib 11-04-2002 10:59 AM

Quote:

Originally Posted by VILLA21
"...If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second..."

For 192kb/s Stereo is (192,000 / 8) * 2 or not?

Hi VILLA21,

I believe that when you encode stereo or dual channel, you split the available bitrate between the 2 channels. So, if you are doing a 192kbps stereo, you are actually doing ~96kbps for each channel.

serrabastien 11-14-2002 10:22 AM

Quote:

Originally Posted by kwag
Piece of cake black prince :lol:

If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second. So just multiply your movie playing time in seconds by 24,000 bytes, in this case, and that will be your total file size for the audio.

-kwag

192Kbps = 192x1024 bps and not 192,000...
So you have to multiply your movie playing time by 24,576 bytes

kwag 11-14-2002 10:44 AM

Quote:

Originally Posted by 'Z
Quote:

Originally Posted by kwag
Piece of cake black prince :lol:

If you're going to encode audio at say 192Kbps, each second of audio would hold 192,000 bits / 8 = 24,000 Bytes per second. So just multiply your movie playing time in seconds by 24,000 bytes, in this case, and that will be your total file size for the audio.

-kwag

192Kbps = 192x1024 bps and not 192,000...
So you have to multiply your movie playing time by 24,576 bytes

No. A bit is a bit. 192Kbs is 192,000 bits. Not Bytes. If it was in Kilo Bytes, then it would be 1024. But it's already measured in bits. So it is 192,000 / 8 = 24,000.

Edit: Correction, but for Kilo Bytes it's 24,000 * 1.024 = 24, 576. You're right :) ( I hate Hard Disk manufacturers, with their 1024 marketing gimmick :roll: )

-kwag

serrabastien 11-15-2002 12:26 PM

It's not really HD manufacturers fault... It's the binary system (you know this 0 and 1 :wink: )...
1k = 2^10, 1M = 2^20 ...


All times are GMT -5. The time now is 05:01 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.