RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Software > Streaming / Broadcasting / Audio Recording


Streaming / Broadcasting / Audio Recording Interested in putting your scanner online for others to hear? Want to listen to other radios on the internet. This forum is here for you to discuss these topics related to streaming scanners online.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-2008, 11:48 PM
n5usr's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2007
Location: Bethany, OK
Posts: 581
Default Software with minimal (or no) buffering for Icecast streams?

I'm playing with Icecast / IceS (running on Linux) and my scanners. While doing this I was trying to reduce the delay imposed, and after much frustration finally realized my problem was Winamp, not Icecast. It seems in spite of turning off burst mode in Icecast, and running every buffer option I can find anywhere in Winamp to minimum or zero, every time I connect to the Icecast server Winamp sits and buffers some amount before playing. Since I've reduced the audio to 5kHz mono, that delay works out to about 45 seconds!

Anyone know of a Windows media player (for my work laptop) that has minimal or no buffering? I see on the Icecast page a couple other programs that are known to work: foobar2000 and Zinf. Never heard of either, will have to try them this weekend, anyone used them? Or know of any others?

As an alternate question, what sort of delay is common with streaming? I would rather have very little - indeed I was using the Win500 software to listen to my PSR-600 which does this nicely, but it keeps losing the audio after a while, not sure why, and requires I restart Windows on the server to get it back. (That is a less-than-ideal setup, Win2K inside a VMWare session on my Linux system, so plenty of opportunity for problems.) Thus why I'm working on a Linux-based alternative now.
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 12-13-2008, 12:15 PM
ICP963's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: May 2003
Location: Chandler, AZ
Posts: 271
Send a message via AIM to ICP963
Default

Check with Gordon, the site owner of www.ScanAmerica.us. His icecast feed have very little lagtime and winamp connects and starts playing in seconds.
__________________
Roy Schahrer ICP963
e-mail k8x815@cox.net
http://www.incidentcommandpage.com
Reply With Quote
  #3 (permalink)  
Old 12-13-2008, 12:22 PM
EdmontonFireRadio's Avatar
Member
  Shack Photos
Shack photos
Amateur Radio Operator
Amateur Radio
 
Join Date: Jul 2007
Location: Edmonton, AB
Posts: 398
Send a message via MSN to EdmontonFireRadio
Default

/Edit - never mind. I reread the initial post and I see that they are trying to reduce the playing delay for the end user.

Does it make a difference if you run the feed at 24k? Or does it still have a long delay before it starts to play for the end user?
__________________
Tune in now: Fire - Winamp/iTunes Windows Media Player Quicktime - EMS/STARS - Winamp/iTunes Windows Media Player Quicktime

Last edited by EdmontonFireRadio; 12-13-2008 at 12:26 PM..
Reply With Quote
  #4 (permalink)  
Old 12-13-2008, 05:18 PM
n5usr's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2007
Location: Bethany, OK
Posts: 581
Default

If I run at a higher sample rate, the bitrate goes up of course, so whatever buffer Winamp is filling gets filled faster thus it starts sooner. However, even at 5kHz sample rate the audio sounds just fine and I'm trying to make the stream bandwidth as low as possible.

I played with things a bit today, and found Zinf has few options, buffers a lot, and CRASHES a lot. Foobar2000 actually came close - I was able to get it down to 5 seconds delay. At first. While it ran, the delay gradually grew until a half hour later or so it was a good 3-4 minutes behind!

On more research, it appears this sort of streaming isn't what I want to use for my application. I'd probably be better suited to something using RTP or another real-time VoIP type protocol. Of course, most of the packages I found are centered around phone calls thus adding a lot of unnecessary complexity.

What I'm really after is basically the Win500 remote access server but running on Linux! Making a control panel applet isn't an issue, I've already cobbled together a Python script to grab the data from the scanner and (text) format it to look like the display. Sending data to the scanner is easy enough too. Getting the audio close enough to real-time that I'm not operating the scanner well after-the-fact is apparently the nifty trick...! (Doesn't do much good to hit "pause" to hold an interesting call channel if you're hearing the audio 30 seconds or more after it happened.)

I'll also check on what Scanamerica is doing, thanks!
Reply With Quote
  #5 (permalink)  
Old 12-13-2008, 07:18 PM
EdmontonFireRadio's Avatar
Member
  Shack Photos
Shack photos
Amateur Radio Operator
Amateur Radio
 
Join Date: Jul 2007
Location: Edmonton, AB
Posts: 398
Send a message via MSN to EdmontonFireRadio
Default

I think I am starting to understand what you are trying to do. You are sitting at your computer and listening to your feed via the icecast server. But if you are sitting at your keyboard, why not just listen to the scanner audio thru your speakers instead of connecting to listen via the server? This way the delay that the end user would hear wouldn't change how you control your radio.
__________________
Tune in now: Fire - Winamp/iTunes Windows Media Player Quicktime - EMS/STARS - Winamp/iTunes Windows Media Player Quicktime
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 12-13-2008, 08:45 PM
n5usr's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2007
Location: Bethany, OK
Posts: 581
Default

Well, right now I'm sitting at the same desk as the scanner. But what I am doing this for (apart from just being bored and having something to play with) is so I can sit at the office, or wherever else, and do the same thing. Just listening to the stream is fine, and in most cases is all I care to do. But inevitably you have that one "hot call" that you really want to focus on and pause the scanner. Thus the remote control ability.

In order to easily make use of the remote control, though, I need near-real-time streaming. Otherwise, even if I do just note what frequency the call was on and manually set the scanner there, in the meantime I'll have 45 seconds or so of unrelated stuff where I may miss something.

The PSR-600 / PRO-197 allows for ridiculously easy remote control, the serial line protocol is even fairly decently described in the back of the manual. In an evening of hacking I had a rudimentary control program done, now I just need to get around to making it "pretty" and a little more user-friendly. I had hoped to use Icecast alongside my control app because it is easy to set up, and as a bonus I could let others listen in as well since the remote control wouldn't be part of the streaming app.

But the process of creating the system is a large part of the fun for me, more an excuse for something to keep my brain engaged. I'll come up with something that works eventually!
Reply With Quote
  #7 (permalink)  
Old 12-13-2008, 09:46 PM
Live Audio Administrator
  RadioReference Database Admininstrator
Database Admin
Audio Feed Provider
Audio Feed Provider
 
Join Date: Dec 2002
Location: Dacula, Georgia
Posts: 426
Default

Quote:
Originally Posted by n5usr View Post
I'm playing with Icecast / IceS (running on Linux) and my scanners. While doing this I was trying to reduce the delay imposed, and after much frustration finally realized my problem was Winamp, not Icecast. It seems in spite of turning off burst mode in Icecast, and running every buffer option I can find anywhere in Winamp to minimum or zero, every time I connect to the Icecast server Winamp sits and buffers some amount before playing. Since I've reduced the audio to 5kHz mono, that delay works out to about 45 seconds!
Try running your Icecast server with:

<burst-on-connect>1</burst-on-connect>
<burst-size>16384</burst-size>

specified in the <limits> section of the configuration file.

I use these values for the ScanAmerica.us Icecast servers and (for me) Winamp starts playing immediately (as do other players).

The majority of my feeds are encoded at a bitrate of 16kbps with a sample rate of 22050Hz. You should choose a sample rate that is a multiple of 11025Hz to ensure the encoding of your feed is compatible with most media players. If you want a higher bitrate than 16kbps, 24kbps is a good choice.
__________________
Listen to RadioReference.com's online scanner feeds on your iPhone or iPad using Scanner Radio Deluxe or on your Android phone or tablet using Scanner Radio.
Reply With Quote
  #8 (permalink)  
Old 12-13-2008, 10:44 PM
n5usr's Avatar
Member
  Amateur Radio Operator
Amateur Radio
 
Join Date: Aug 2007
Location: Bethany, OK
Posts: 581
Default

Quote:
Originally Posted by scanamerica View Post
Try running your Icecast server with:

<burst-on-connect>1</burst-on-connect>
<burst-size>16384</burst-size>

specified in the <limits> section of the configuration file.

I use these values for the ScanAmerica.us Icecast servers and (for me) Winamp starts playing immediately (as do other players).
Okay, I'll try that. I had turned it off completely, but perhaps that doesn't work well with Winamp for some reason.

Quote:
The majority of my feeds are encoded at a bitrate of 16kbps with a sample rate of 22050Hz. You should choose a sample rate that is a multiple of 11025Hz to ensure the encoding of your feed is compatible with most media players. If you want a higher bitrate than 16kbps, 24kbps is a good choice.
I was actually trying for a *smaller* stream than that! I'm currently running 5kHz (actually 5512) sampling rate which gives me a bitrate of 11k or so according to Winamp. Perhaps using a more "standard" sampling rate will help too.

I'm also now wondering if perhaps Winamp doesn't support Ogg quite as well as they do MP3 - are you using MP3 format streams? I "defaulted" to Ogg since the IceS version I installed is 2, which only does Ogg. Perhaps I'd have better luck with MP3...

More playing to do!
Reply With Quote
  #9 (permalink)  
Old 12-14-2008, 12:41 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2003
Location: Earth Sector 001
Posts: 456
Default

Quote:
Originally Posted by scanamerica View Post
Try running your Icecast server with:

<burst-on-connect>1</burst-on-connect>
<burst-size>16384</burst-size>

specified in the <limits> section of the configuration file.

I use these values for the ScanAmerica.us Icecast servers and (for me) Winamp starts playing immediately (as do other players).

The majority of my feeds are encoded at a bitrate of 16kbps with a sample rate of 22050Hz. You should choose a sample rate that is a multiple of 11025Hz to ensure the encoding of your feed is compatible with most media players. If you want a higher bitrate than 16kbps, 24kbps is a good choice.
These are the settings I use also.

If you don't have a burst size setup on the server Winamp will use it's default which I think may be 64k but not 100% sure.
Reply With Quote
Sponsored links
        
  #10 (permalink)  
Old 12-14-2008, 09:11 AM
Live Audio Administrator
  RadioReference Database Admininstrator
Database Admin
Audio Feed Provider
Audio Feed Provider
 
Join Date: Dec 2002
Location: Dacula, Georgia
Posts: 426
Default

Quote:
Originally Posted by n5usr View Post
are you using MP3 format streams? I "defaulted" to Ogg since the IceS version I installed is 2, which only does Ogg. Perhaps I'd have better luck with MP3...
I use MP3 only since many players don't support Ogg.
__________________
Listen to RadioReference.com's online scanner feeds on your iPhone or iPad using Scanner Radio Deluxe or on your Android phone or tablet using Scanner Radio.
Reply With Quote
  #11 (permalink)  
Old 01-30-2009, 08:52 PM
Member
   
Join Date: Feb 2007
Posts: 5
Default

Quote:
Originally Posted by n5usr View Post
What I'm really after is basically the Win500 remote access server but running on Linux! Making a control panel applet isn't an issue, I've already cobbled together a Python script to grab the data from the scanner and (text) format it to look like the display. Sending data to the scanner is easy enough too.
any luck with this?
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:39 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All information here is Copyright 2010 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2011 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions