Bitrate Calculator
Reply #10 – 2008-03-11 20:42:55
HDD space: 1 MB = 1024 KB 1 KB = 1024 Bytes Bitrate: 1 kbps = 1000 bits/sec. =>bitrate[kbps] = 8*1024*1024/(60*1000) * space[MB] / time[minutes] = 139.8 * space[MB] / time[minutes] bitrate[kbps] = 8*1024*1024/1000 * space[MB] / time[seconds] = 8388 * space[MB] / time[seconds] If anyone is still interested, here is a simple batch script using those methods for video bitrate calculation. Simply copy the code below into "Video_BITRATE_Calc.bat" and run whenever desired. In this script I am forcing the results to be displayed as even integers. If you would prefer to allow odd integers when they are produced, simply delete these lines:SET /A _output/=2 SET /A _output*=2 SET /A _video/=2 SET /A _video*=2 - M.@echo off color 02 title Video BITRATE Calc... cls echo. echo ----------------------------------------------- echo Video BITRATE Calc... echo ----------------------------------------------- echo. echo PLEASE NOTE: echo 1) Time = MINUTES (every six sec = 0.1 min) echo 2) Bitrate = CBR (Constant bitrate in kbps) echo 3) Size = MiB (file size as shown on drive) echo 4) Output is adjusted to show EVEN integers echo. echo ----------------------------------------------- echo. set /P _time=. Play Length: set /P _audio=. Audio Bitrate: set /P _size=. Desired Size: SET /A _output=(( 8388 * _size ) / ( _time * 60 )) SET /A _output/=2 SET /A _output*=2 SET /A _video=( _output - _audio ) SET /A _video/=2 SET /A _video*=2 echo. echo ----------------------------------------------- echo. echo OVERALL Bitrate: %_output% echo VIDEO Bitrate: %_video% echo. title ... finished! pause