Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it). Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame? Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server. Thanks for any help. Tony
I understand. Some people just don't like a "metallic sound". I'm not sure what other options are readily available. Certainly if you want more of a "dubstep" sound, perhaps you should pipe the stream through something like "zcat". That would certainly make it more "dubstep"-like. :-) Seriously, I don't think any of those streaming server things will accept anything other then mp3 (or ogg) Believe me, it was *not* done by any of my choice (being that mp3 is certainly *not* my favorite codec for ANYTHING!). JIM WB6NIL
Date: Thu, 22 Sep 2011 07:39:54 -0700 From: kt9ac@ameritech.net To: App_rpt-users@ohnosec.org Subject: [App_rpt-users] Streaming questions
Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it).
Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame?
Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server.
Thanks for any help.
Tony _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
Thanks Jim. I did a little reading and the output of Asterisk at least to the log files is GSM 6.1. I think sox can handle a conversion to WAV (to accomodate the non-UNIX clients out there...) Another thought out be to open the /acid_archive/<node>/ log files and stream those. They are realtime afterall. Perhaps a 'tee' command could be used somewhere. I'll post back when I get further. Tony --- On Thu, 9/22/11, Jim Duuuude <telesistant@hotmail.com> wrote: From: Jim Duuuude <telesistant@hotmail.com> Subject: RE: [App_rpt-users] Streaming questions To: kt9ac@ameritech.net, "app_rpt mailing list" <app_rpt-users@ohnosec.org> Date: Thursday, September 22, 2011, 9:47 AM I understand. Some people just don't like a "metallic sound". I'm not sure what other options are readily available. Certainly if you want more of a "dubstep" sound, perhaps you should pipe the stream through something like "zcat". That would certainly make it more "dubstep"-like. :-) Seriously, I don't think any of those streaming server things will accept anything other then mp3 (or ogg) Believe me, it was *not* done by any of my choice (being that mp3 is certainly *not* my favorite codec for ANYTHING!). JIM WB6NIL
Date: Thu, 22 Sep 2011 07:39:54 -0700 From: kt9ac@ameritech.net To: App_rpt-users@ohnosec.org Subject: [App_rpt-users] Streaming questions
Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it).
Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame?
Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server.
Thanks for any help.
Tony _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
what in the h--- do the log files have to do with it? Date: Thu, 22 Sep 2011 10:35:18 -0700 From: kt9ac@ameritech.net Subject: RE: [App_rpt-users] Streaming questions To: app_rpt-users@ohnosec.org; telesistant@hotmail.com Thanks Jim. I did a little reading and the output of Asterisk at least to the log files is GSM 6.1. I think sox can handle a conversion to WAV (to accomodate the non-UNIX clients out there...) Another thought out be to open the /acid_archive/<node>/ log files and stream those. They are realtime afterall. Perhaps a 'tee' command could be used somewhere. I'll post back when I get further. Tony --- On Thu, 9/22/11, Jim Duuuude <telesistant@hotmail.com> wrote: From: Jim Duuuude <telesistant@hotmail.com> Subject: RE: [App_rpt-users] Streaming questions To: kt9ac@ameritech.net, "app_rpt mailing list" <app_rpt-users@ohnosec.org> Date: Thursday, September 22, 2011, 9:47 AM I understand. Some people just don't like a "metallic sound". I'm not sure what other options are readily available. Certainly if you want more of a "dubstep" sound, perhaps you should pipe the stream through something like "zcat". That would certainly make it more "dubstep"-like. :-) Seriously, I don't think any of those streaming server things will accept anything other then mp3 (or ogg) Believe me, it was *not* done by any of my choice (being that mp3 is certainly *not* my favorite codec for ANYTHING!). JIM WB6NIL
Date: Thu, 22 Sep 2011 07:39:54 -0700 From: kt9ac@ameritech.net To: App_rpt-users@ohnosec.org Subject: [App_rpt-users] Streaming questions
Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it).
Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame?
Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server.
Thanks for any help.
Tony _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
I don't believe wav is a stream-able protocol. The metallic sound is more an artifact of compression than the protocol used. You might try bumping up the bitrate and/or adding a lowpass filter to strip off the highest frequencies, this is commonly done with stream encoders. I've added a lowpass filter to remove PL. I imagine you could do high pass the same way. Here's what I use. outstreamcmd=/bin/sh,-c,/usr/bin/lame --preset cbr 24 --highpass 0.2 -r -m m -s 8 --bitwidth 16 - - | /usr/bin/ezstream -c /etc/ezstream.xml Steve On 9/22/2011 7:47, Jim Duuuude wrote:
I understand. Some people just don't like a "metallic sound". I'm not sure what other options are readily available. Certainly if you want more of a "dubstep" sound, perhaps you should pipe the stream through something like "zcat". That would certainly make it more "dubstep"-like. :-)
Seriously, I don't think any of those streaming server things will accept anything other then mp3 (or ogg) Believe me, it was *not* done by any of my choice (being that mp3 is certainly *not* my favorite codec for ANYTHING!).
JIM WB6NIL
Date: Thu, 22 Sep 2011 07:39:54 -0700 From: kt9ac@ameritech.net To: App_rpt-users@ohnosec.org Subject: [App_rpt-users] Streaming questions
Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it).
Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame?
Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server.
Thanks for any help.
Tony _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
Got my Highs and Lows swapped... oops On 9/22/2011 22:00, Steve Passmore wrote:
I don't believe wav is a stream-able protocol. The metallic sound is more an artifact of compression than the protocol used. You might try bumping up the bitrate and/or adding a lowpass filter to strip off the highest frequencies, this is commonly done with stream encoders. I've added a /high/pass filter to remove PL. I imagine you could do /low/ pass the same way. Here's what I use.
outstreamcmd=/bin/sh,-c,/usr/bin/lame --preset cbr 24 --highpass 0.2 -r -m m -s 8 --bitwidth 16 - - | /usr/bin/ezstream -c /etc/ezstream.xml
Steve
Thanks Steve, I'll play with these settings. I initially tried 3K as a cutoff but still hear the "artifacts" noise that comes with Allison announcing things (that's how I test quietly). It reminds me of how P25 sounds on the fringe, so its likely something in the conversion to MP3 from RAW or GSM. I guess for streaming, we don't need a range like what a radio would provide (say 300-3000hz), but perhaps something narrower. To answer Bote as well, I'm using these standard settings for Lame, and most changes from say 8K to 22.05K make it sound like Chipmunks got into the system. I'm still learning the settings. I still need to figure out how to get the stream to work at the base URL, not requiring a filename. Tony --- On Fri, 9/23/11, Steve Passmore <k6kya@hokeynet.net> wrote: From: Steve Passmore <k6kya@hokeynet.net> Subject: Re: [App_rpt-users] Streaming questions To: app_rpt-users@ohnosec.org Date: Friday, September 23, 2011, 12:03 AM Got my Highs and Lows swapped... oops On 9/22/2011 22:00, Steve Passmore wrote: I don't believe wav is a stream-able protocol. The metallic sound is more an artifact of compression than the protocol used. You might try bumping up the bitrate and/or adding a lowpass filter to strip off the highest frequencies, this is commonly done with stream encoders. I've added a highpass filter to remove PL. I imagine you could do low pass the same way. Here's what I use. outstreamcmd=/bin/sh,-c,/usr/bin/lame --preset cbr 24 --highpass 0.2 -r -m m -s 8 --bitwidth 16 - - | /usr/bin/ezstream -c /etc/ezstream.xml Steve -----Inline Attachment Follows----- _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
An Icecast server can offer multiple streams off of one ip:port pair via a mechanism known as a "mount point". That trailing string after the right-most slash is the name of the mount point. I think it defaults to the word "mount" but I don't see how that is a stumbling block since every Icecast stream employs that nomenclature. It is up to the listener's computer as to how to open the stream based on the extension .mp3 so that is out of your control. Although in my case I don't use the extension and it works in most cases, I think based on the server type header information. As a test, try clicking each of these to see what it does on your computer: http://colostreaming.com:8000/botewild.m3u http://colostreaming.com:8000/botewild.mp3 http://colostreaming.com:8000/botewild The audio levels are also critical. Driving the encoder too hard could result in tinny audio; conversely, driving the encoder with too weak audio will result in muddy sound. If I listen carefully to my feeds I can detect the tiniest bit of stair-stepping during audio peaks, but overall I quite like the audio on there as I strive to set a good example with it. FYI, my feeds use a Windows application called RadioFeed which incorporates the lame encoder. It's a great free program that's perfect for putting a scanner stream online. As for Chipmunks, it sounds like you might be changing the sample rate without actually resampling the audio. Does your Icecast server play a recorded introductory announcement at the start of each stream session? Bote From: app_rpt-users-bounces@ohnosec.org [mailto:app_rpt-users-bounces@ohnosec.org] On Behalf Of Tony KT9AC Sent: Friday, 23 September, 2011 11:58 To: app_rpt-users@ohnosec.org; Steve Passmore Subject: Re: [App_rpt-users] Streaming questions Thanks Steve, I'll play with these settings. I initially tried 3K as a cutoff but still hear the "artifacts" noise that comes with Allison announcing things (that's how I test quietly). It reminds me of how P25 sounds on the fringe, so its likely something in the conversion to MP3 from RAW or GSM. I guess for streaming, we don't need a range like what a radio would provide (say 300-3000hz), but perhaps something narrower. To answer Bote as well, I'm using these standard settings for Lame, and most changes from say 8K to 22.05K make it sound like Chipmunks got into the system. I'm still learning the settings. I still need to figure out how to get the stream to work at the base URL, not requiring a filename. Tony --- On Fri, 9/23/11, Steve Passmore <k6kya@hokeynet.net> wrote: From: Steve Passmore <k6kya@hokeynet.net> Subject: Re: [App_rpt-users] Streaming questions To: app_rpt-users@ohnosec.org Date: Friday, September 23, 2011, 12:03 AM Got my Highs and Lows swapped... oops On 9/22/2011 22:00, Steve Passmore wrote: I don't believe wav is a stream-able protocol. The metallic sound is more an artifact of compression than the protocol used. You might try bumping up the bitrate and/or adding a lowpass filter to strip off the highest frequencies, this is commonly done with stream encoders. I've added a highpass filter to remove PL. I imagine you could do low pass the same way. Here's what I use. outstreamcmd=/bin/sh,-c,/usr/bin/lame --preset cbr 24 --highpass 0.2 -r -m m -s 8 --bitwidth 16 - - | /usr/bin/ezstream -c /etc/ezstream.xml Steve
Mine does not sound metallic, but it does sound "fuzzy". But consider this: The basic audio in Asterisk is 16 bits x 8000 samples/sec = ~128 kb/sec the mp3 stream is at 16 kb/sec That's a lot of compression If various filters and level adjustments don't help, maybe you could try streaming at a higher rate. If you are using a streaming provider service, he may charge more of course ... 73 Ken
-----Original Message----- From: app_rpt-users-bounces@ohnosec.org [mailto:app_rpt-users- bounces@ohnosec.org] On Behalf Of Tony KT9AC Sent: Thursday, September 22, 2011 10:40 AM To: App_rpt-users@ohnosec.org Subject: [App_rpt-users] Streaming questions
Good Morning, I have Icecast, Ezstream and Lame all working together to output audio from Asterisk. Currently using .mp3 format from the setup examples but not happy with the audio quality (has a metallic background sound to it).
Is there a way to output WAV file audio instead of MP3? I've tried different settings for LAME but it doesn't help. I know that Asterisk has great audio written to the log files, so why can't I use this instead of piping through Lame?
Secondly, would anyone be willing to share an Icecast/Ezstream XML example that does not require the filename extensions (i.e http://localhost:8000/Filename.mp3)? I would like to just publish the basic URL and port (http://localhost:8000). We used to do this with a Windows Media Server before consolidating on one Linux server.
Thanks for any help.
Tony _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
participants (5)
-
Bote Man -
Jim Duuuude -
Ken -
Steve Passmore -
Tony KT9AC