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 |
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 |
Hi Kwag,
Kwag wrote: Quote:
-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..."
For 192kb/s Stereo is (192,000 / 8) * 2 or not? |
Quote:
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 |
Hi Kwag and Villa21,
Kwag wrote: Quote:
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 |
Quote:
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. |
Quote:
So you have to multiply your movie playing time by 24,576 bytes |
Quote:
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 |
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 ... |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.