Discussion:
[Freeswitch-users] Best sound file format for freeswitch
Aqs Younas
2015-04-23 15:18:32 UTC
Permalink
Hi,users.

I have 1-100 sound files (mp3) and wants to play these files in loop from 1
to 100 to more than 250 concurrent users.

Currently these sound files have format.

Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s

While playing these files I see in freeswitch log.


*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*


I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).

I which file format I must convert these files to have my freeswitch with
minimum load.

Your Guys opinion is much appreciated.

Thanks
Chris Tunbridge
2015-04-23 15:59:50 UTC
Permalink
This depends on the codec your users are using.

If its PCMA or PCMU then you should be fine with wav, and if you want to
suppress the 2 channels message you can convert it to a mono file, here's
an example with sox.

sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop from
1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch with
minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Giovanni Maruzzelli
2015-04-23 16:14:29 UTC
Permalink
Post by Aqs Younas
I want my freeswitch to have minimum load while playing these files
Post by Aqs Younas
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
also, if you want the minimum possible load, mod_native_file (compiled by
default) lets you use audio files in native format (eg: in PCMU format, or
whatever codec you happen to use):

http://freeswitch.org/confluence/display/FREESWITCH/mod_native_file



-giovanni
Aqs Younas
2015-04-23 16:16:29 UTC
Permalink
Thanks for your quick reply.

Does suppressing 2 channels would be helpful?
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want to
suppress the 2 channels message you can convert it to a mono file, here's
an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop from
1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
2015-04-23 16:19:09 UTC
Permalink
Are you playing the same file to all 250 people?
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want to
suppress the 2 channels message you can convert it to a mono file, here's
an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
***@freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> |
Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Giovanni Maruzzelli
2015-04-23 16:21:00 UTC
Permalink
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox, lame,
audacty or whatever, but probably the easiest and bullet proof way is to
load mod_shout in fs_encode, and use it as per mod_native_file confluence
page instructions

-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want to
suppress the 2 channels message you can convert it to a mono file, here's
an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
Aqs Younas
2015-04-23 16:33:52 UTC
Permalink
Yep, We are playing same sound files to every user. Actually sound files
are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox, lame,
audacty or whatever, but probably the easiest and bullet proof way is to
load mod_shout in fs_encode, and use it as per mod_native_file confluence
page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want to
suppress the 2 channels message you can convert it to a mono file, here's
an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has 2
channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
2015-04-23 16:39:09 UTC
Permalink
Then use local_stream, then your load is no longer a concern! Its one file,
one decode, copied to many clients.
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound files
are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want
to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has
2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
***@freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> |
Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Aqs Younas
2015-04-23 16:43:10 UTC
Permalink
Hi, Brian.

I think you misunderstood my question. Its not one file but 100 files that
we are playing in sequence(1-100) to every Caller.

Thanks
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound files
are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want
to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has
2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
2015-04-23 20:19:01 UTC
Permalink
Still doesn't matter, If you have 100 files you wish to pay in sequence to
all the callers, the same applies. Its still one local string with a list
of things to play and its shared to all callers.
Post by Aqs Younas
Hi, Brian.
I think you misunderstood my question. Its not one file but 100 files that
we are playing in sequence(1-100) to every Caller.
Thanks
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound files
are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want
to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File has
2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
***@freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> |
Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Chris Tunbridge
2015-04-23 21:06:58 UTC
Permalink
Brain i think what he's trying to say is that he'll have upto 250 callers,
that can call in at any time, and when a caller calls in, they need to
start at the beginning of this list, not where the stream currently is.
Post by Brian West
Still doesn't matter, If you have 100 files you wish to pay in sequence to
all the callers, the same applies. Its still one local string with a list
of things to play and its shared to all callers.
Post by Aqs Younas
Hi, Brian.
I think you misunderstood my question. Its not one file but 100 files
that we are playing in sequence(1-100) to every Caller.
Thanks
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound files
are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you want
to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in loop
from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File
has 2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my freeswitch
with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Anthony Minessale
2015-04-23 21:20:10 UTC
Permalink
WAV is best if you have several callers with varying codecs. Its stored
decoded and only has to encode and PCMU for instance from SLIN is not very
costly.
Ideally you want to match the rate and number of channels that most callers
will have.
Post by Chris Tunbridge
Brain i think what he's trying to say is that he'll have upto 250 callers,
that can call in at any time, and when a caller calls in, they need to
start at the beginning of this list, not where the stream currently is.
Post by Brian West
Still doesn't matter, If you have 100 files you wish to pay in sequence
to all the callers, the same applies. Its still one local string with a
list of things to play and its shared to all callers.
Post by Aqs Younas
Hi, Brian.
I think you misunderstood my question. Its not one file but 100 files
that we are playing in sequence(1-100) to every Caller.
Thanks
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound
files are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you
want to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in
loop from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File
has 2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these files
(located on freeswitch server).
I which file format I must convert these files to have my
freeswitch with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬

☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:***@conference.freeswitch.org ☎ +19193869900



Aqs Younas
2015-04-29 18:49:05 UTC
Permalink
Thanks. Tunbridge, Anthony for explanation.
Post by Anthony Minessale
WAV is best if you have several callers with varying codecs. Its stored
decoded and only has to encode and PCMU for instance from SLIN is not very
costly.
Ideally you want to match the rate and number of channels that most
callers will have.
Post by Chris Tunbridge
Brain i think what he's trying to say is that he'll have upto 250
callers, that can call in at any time, and when a caller calls in, they
need to start at the beginning of this list, not where the stream currently
is.
Post by Brian West
Still doesn't matter, If you have 100 files you wish to pay in sequence
to all the callers, the same applies. Its still one local string with a
list of things to play and its shared to all callers.
Post by Aqs Younas
Hi, Brian.
I think you misunderstood my question. Its not one file but 100 files
that we are playing in sequence(1-100) to every Caller.
Thanks
Post by Aqs Younas
Yep, We are playing same sound files to every user. Actually sound
files are some sort of lecture files. As soon as a call comes in, we start
playing files from 1 to 100.
Post by Giovanni Maruzzelli
Post by Aqs Younas
Thanks for your quick reply.
Does suppressing 2 channels would be helpful?
yes, go from stereo mp3 to mono with one only pass. You can use sox,
lame, audacty or whatever, but probably the easiest and bullet proof way is
to load mod_shout in fs_encode, and use it as per mod_native_file
confluence page instructions
-giovanni
Post by Aqs Younas
Post by Chris Tunbridge
This depends on the codec your users are using.
If its PCMA or PCMU then you should be fine with wav, and if you
want to suppress the 2 channels message you can convert it to a mono file,
here's an example with sox.
sox input.mp3 -c 1 -r 8000 output.wav
Post by Aqs Younas
Hi,users.
I have 1-100 sound files (mp3) and wants to play these files in
loop from 1 to 100 to more than 250 concurrent users.
Currently these sound files have format.
Codec: MPEG audio layer 1/2/3 (mpga)
Channels: Stereo
Sample Rate: 22050 Hz
Bitrate: 64 kb/s
While playing these files I see in freeswitch log.
*2015-04-23 14:17:59.351859 [WARNING] switch_core_file.c:230 File
has 2 channels, muxing to 1 channel will occur.*
I want my freeswitch to have minimum load while playing these
files (located on freeswitch server).
I which file format I must convert these files to have my
freeswitch with minimum load.
Your Guys opinion is much appreciated.
Thanks
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*
ClueCon Weekly Development Call
http://youtu.be/9XXgW34t40s
http://youtu.be/NLaDpGQuZDA
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...