IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Encoding time for Speex
tech_noobie
post Sep 20 2005, 14:32
Post #1





Group: Members
Posts: 36
Joined: 6-May 05
Member No.: 21908



Hi everyone,

Just wondering if there is a way to find out the exact (or close approximation) encoding time of the Speex program? Suggestions are greatly appreciated tongue.gif . Thank you very much everyone.

By the way I have asked similar question in the R&D area but I do not intend to do any spamming it's just because at first I have 2 questions at hand and one was regarding MP3 and hence I do not think it would be appropriate to post it here straightaway (should have thought of splitting it and post them in their respective forums ... sorry).

tech_noobie
Go to the top of the page
+Quote Post
Synthetic Soul
post Sep 20 2005, 14:48
Post #2





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



I'm not familiar with Speex, but if you are talking about a command line Speex encoder like speexenc at Rarewares then I would use a batch file, and just do:

CODE
@ECHO OFF

ECHO %TIME%

SPEEXENC.EXE myfile.wav myfile.spx

ECHO %TIME%

PAUSE

This will write out the current time, do the encode, and then write out the current time. By subtracting time 1 from time 2 you can work out the time taken to the nearest centisecond.

Any use?


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
rjamorim
post Sep 20 2005, 15:16
Post #3


Rarewares admin


Group: Members
Posts: 7515
Joined: 30-September 01
From: Brazil
Member No.: 81



http://www.microsoft.com/windows2000/techi.../timethis-o.asp


--------------------
Get up-to-date binaries of Lame, AAC, Vorbis and much more at RareWares:
http://www.rarewares.org
Go to the top of the page
+Quote Post
Synthetic Soul
post Sep 20 2005, 15:50
Post #4





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



That's useful. Simple and effective.

NB: the first run I did was 3 seconds slower than the subsequent three, which were all around the same time.

I guess this is a memory thing and worth bearing in mind when you do your tests. Run a number of times, discard the first run, and then take the average.

Edit: NB: to pass a parameter with spaces escape the quotes, e.g.:

CODE
TIMETHIS.EXE SPEEXENC.EXE \"death cab for cutie - plans.wav\" plans.spx


This post has been edited by Synthetic Soul: Sep 20 2005, 16:03


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
tech_noobie
post Sep 22 2005, 05:34
Post #5





Group: Members
Posts: 36
Joined: 6-May 05
Member No.: 21908



Thank you very much guys for your reply smile.gif. I will try it ASAP. Sorry for replying so late my internet connection was down yesterday smile.gif. By the way is it possible to create a simple script that would allow me to automatically store the encoding time of my various samples in a text file. Thanks for your help. biggrin.gif

tech_noobie
Go to the top of the page
+Quote Post
Synthetic Soul
post Sep 22 2005, 09:13
Post #6





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



TIMETHIS.EXE SPEEXENC.EXE \"death cab for cutie - plans.wav\" plans.spx > file.txt

... should do it. This will spit the output of timethis.exe to file.txt instead of the console.

Edit: Using the batch file method it would be:

CODE
@ECHO OFF

ECHO %TIME% > file.txt

SPEEXENC.EXE myfile.wav myfile.spx >> file.txt

ECHO %TIME% >> file.txt


This post has been edited by Synthetic Soul: Sep 22 2005, 09:15


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
tech_noobie
post Sep 23 2005, 03:34
Post #7





Group: Members
Posts: 36
Joined: 6-May 05
Member No.: 21908



Hi Synthetic Soul and rjamorim,


Thank you very much for your help biggrin.gif. It works ... it works ... tongue.gif. I batch them using matlab, it went very well last night. Thank you guys, I really appreciate your help. laugh.gif


tech_noobie
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st April 2014 - 12:40