anshnen
December 4th, 2005, 09:26 PM
I have a problem here...
I am playing audio and video in synchronized manner. The whole thing is 10 secs. long and there are 100 frames in the video.
The audio is at Sampling rate of 22050 HZ , 16 bit mono of length 10 sec.
Thus total no. of samples = 220500
If i relate it to the corresponding video which has 100 frames then, i will have 2205 audio samples per video frame. I need to rate the audio on a scale of 1 to 10 on a per frame basis.
I have thought of this logic:
For every frame i add up all the 2205 audio samples which is say 'A'. Now i
A / 2205 = B and then i do a B / 65535 to get a no. C which i multiply by 10 to get a rating between 1 to 10...
I am not able to implement this.. please help..
I am playing audio and video in synchronized manner. The whole thing is 10 secs. long and there are 100 frames in the video.
The audio is at Sampling rate of 22050 HZ , 16 bit mono of length 10 sec.
Thus total no. of samples = 220500
If i relate it to the corresponding video which has 100 frames then, i will have 2205 audio samples per video frame. I need to rate the audio on a scale of 1 to 10 on a per frame basis.
I have thought of this logic:
For every frame i add up all the 2205 audio samples which is say 'A'. Now i
A / 2205 = B and then i do a B / 65535 to get a no. C which i multiply by 10 to get a rating between 1 to 10...
I am not able to implement this.. please help..