Encoding time for Speex |
![]() ![]() |
Encoding time for Speex |
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 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 |
|
|
|
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.
|
|
|
|
Sep 20 2005, 15:16
Post
#3
|
|
![]() Rarewares admin Group: Members Posts: 7515 Joined: 30-September 01 From: Brazil Member No.: 81 |
-------------------- Get up-to-date binaries of Lame, AAC, Vorbis and much more at RareWares:
http://www.rarewares.org |
|
|
|
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.
|
|
|
|
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
tech_noobie |
|
|
|
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.
|
|
|
|
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 tech_noobie |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 17:05 |