Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Optimum sound file format


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nik.middleton at noble...
Guest





PostPosted: Thu Apr 16, 2009 5:15 pm    Post subject: [Freeswitch-users] Optimum sound file format Reply with quote

Hi Guys,

I’m looking for the optimum audio format when using streamfile in a lua script.

I’ve found CPU load increases rapidly with the number of threads playing a .wav file. Can anyone tell me the optimum when using g711a?

Right now the the .wav files are

Audio format: PCM
Sample rate : 8 kHz
Mono
Sample Size: 16 bit
Bit rate :128kbps

Will it help CPU load if I resample to a bit rate of 64kbps and sample size of 8 bit?

I have read that the sample size needs to be 13-14bit +1 for alaw/ulaw though

Regards,
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Apr 16, 2009 5:39 pm    Post subject: [Freeswitch-users] Optimum sound file format Reply with quote

Looking at your post, You are already using the best format.
If you do not have a fast filesystem try making a ram disk and play the files from there instead.

if you *really* want you can use sox to turn them all into raw alaw files and rename them with a .PCMA extension
to avoid the g711 transconding but g711 to PCM is pretty trivial. it's more likely a file i/o distress you see.


On Thu, Apr 16, 2009 at 5:04 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Quote:

Hi Guys,
 
I’m looking for the optimum audio format when using streamfile in a lua script.
 
I’ve found CPU load increases rapidly with the number of threads playing a .wav file.  Can anyone tell me the optimum when using g711a?
 
Right now the the .wav files are
 
Audio format: PCM
Sample rate : 8 kHz
Mono
Sample Size: 16 bit
Bit rate          :128kbps
 
Will it help CPU load if I resample to a bit rate of 64kbps and sample size of 8 bit?
 
I have read that the sample size needs to be 13-14bit  +1 for alaw/ulaw though
 
Regards,


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
nik.middleton at noble...
Guest





PostPosted: Thu Apr 16, 2009 5:59 pm    Post subject: [Freeswitch-users] Optimum sound file format Reply with quote

Thanks for this. One of the servers is using sata and the other scsii drives, so that may be the problem, I’ll give it a go. Problem seems to escalate past 200 active calls. Below that all is well.

That said, it could also be a db issue, so I’ve changed my log tables to innodb (I’m hoping that now I have row level locking as opposed to table level it will help)

Regards,


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: 16 April 2009 23:25
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Optimum sound file format


Looking at your post, You are already using the best format.
If you do not have a fast filesystem try making a ram disk and play the files from there instead.

if you *really* want you can use sox to turn them all into raw alaw files and rename them with a .PCMA extension
to avoid the g711 transconding but g711 to PCM is pretty trivial. it's more likely a file i/o distress you see.


On Thu, Apr 16, 2009 at 5:04 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Hi Guys,

I’m looking for the optimum audio format when using streamfile in a lua script.

I’ve found CPU load increases rapidly with the number of threads playing a .wav file. Can anyone tell me the optimum when using g711a?

Right now the the .wav files are

Audio format: PCM
Sample rate : 8 kHz
Mono
Sample Size: 16 bit
Bit rate :128kbps

Will it help CPU load if I resample to a bit rate of 64kbps and sample size of 8 bit?

I have read that the sample size needs to be 13-14bit +1 for alaw/ulaw though

Regards,



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services