how to calculate the bit rate and the bit depth of audio
8->
Printable View
how to calculate the bit rate and the bit depth of audio
8->
Determine your limit, then determine the length of audio in seconds. Multiply the depth by the sampling rate and multiply that by the number of channels. Multiply the audio bit-rate by the length of the audio. Subtract the number from the maximum number. Then divide the number by the length of the audio. This gives you the bit-rate.
thanks very much but i ask if there is a method in java to calculate it?
None that I know of. You can try and create your own class to calculate it. I found a algorithm to calculate the time remaining if that's of any help.
Code java:
//Common algorithm to calculate remaining time seconds_elapsed = current time - start time seconds_per_unit = seconds_elapsed / units_processed units_left = total_units - units_processed seconds_remaining = unit_left / seconds_per_unit
thank you very very much for your help