QUOTE(tech_noobie @ Sep 20 2005, 04:43 PM)
I am wondering if there is a way to find out the exact (or a close approximation) time taken to encode audio data using Lame or Speex, because I think I am going to need them in my project but I really have no idea on how to do it :cry: . Thank you for your time.
Are you wanting to get LAME/speex to report how long it took for an encode? If so, just call LAME (not sure about speex) from the command line and it will output a report indicating encode time (amongst much other data), for example:
C:\Data\Software\LAME\3.97 alpha\lame3.97a12>lame -V2 02.wav 02.mp3
LAME 3.97 (alpha 12, Aug 30 2005 09:33:55) 32bits (http://www.mp3dev.org/)
warning: alpha versions should be used for testing only
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 02.wav to 02.mp3
Encoding as 44.1 kHz VBR(q=2) j-stereo MPEG-1 Layer III (ca. 7.3x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
11505/11505 (100%)| 0:29/ 0:29| 0:29/ 0:29| 10.231x| 0:00
32 [ 0]
40 [ 0]
48 [ 1] *
56 [ 0]
64 [ 0]
80 [ 14] *
96 [ 396] ********
112 [ 2357] **********************************************
128 [ 3455] *******************************************************************
160 [ 3479] %******************************************************************
192 [ 859] %****************
224 [ 417] %%%%*****
256 [ 445] %%%%%****
320 [ 82] %*
-------------------------------------------------------------------------------
kbps LR MS % long switch short %
147.8 4.1 95.9 89.6 5.2 5.2
Writing LAME Tag...done
ReplayGain: -8.3dB