PDA

View Full Version : Internet Radio over PPP



Ron F.
2007-04-28, 03:12
I am trying to do something a bit odd, and my lack of knowledge is once again getting in my way...

Let me describe my setup:
I have Slimserver 6.5.1 running on my Win2K computer that is driving my SB3 via a wireless access point. My computer's Ethernet adapter is connected to the wireless access point via a cable, so only the SB3 is wireless.

I don't have web access via the WAN port on the access point, as I don't have DSL, cable modem, or anything as such. Instead, I have a wireless cell phone modem connected to my computer that appears as a PPP adapter.

The Ethernet adapter and the PPP adapter have different IP addresses of course, and both are working: Slimserver is streaming music off my hard drive to the Ethernet adapter, and I can surf the web through the PPP adapter at the same time - and submit this post.

What I cannot do of course is get the SB3 to connect to an internet URL.

Any suggestions would be greatly appreciated.

mherger
2007-04-28, 03:34
> What I cannot do of course is get the SB3 to connect to an internet
> URL.

What you need is some kind of router or proxy software for your computer.
Probably something like
http://www.janaserver.de/start.php?lang=en

This piece of software will take your network's requests and redirect them
to the secondary interface (your mobile phone).

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Ron F.
2007-04-28, 07:47
Hi Michael

I downloaded Jana sever and am trying to get it to work. It seems there is something else that is in the way. It appears I might have to turn on internet connection sharing for the PPP adapter, but that forces my Win2K machine into a different subnet, and then I lose access to the wireless access point on the Ethernet adapter!

So, I probably need to change the IP address of the access point, and so forth.

I will post again if I get it to work...

-Ron

mherger
2007-04-28, 07:57
> So, I probably need to change the IP address of the access point, and
> so forth.

That's probably true, but shouldn't be a big issue if on the other hand
you'll be able to use internet radio ;-).

BTW: I think you don't even need any additional software. Windows' routing
services should do the job (don't know about the connection sharing
stuff). Just google around for routing and Windows.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Ron F.
2007-04-30, 08:11
Well, I have not been able to get this to work.

I have set resource sharing for the PPP connection, (for my LAN adapter.)

I don't know what to try next. Here is a partial dump from Slimserver when I attempt to stream the Radio Paradise 128K MP3 stream to my SB3:

2007-04-30 07:36:22.0972 Found command: -
2007-04-30 07:36:22.0977 Matched Format: mp3 Type: mp3 Command: -
2007-04-30 07:36:22.0985 cracked: http://scfire-ntc0l-1.stream.aol.com/stream/10
48 with [scfire-ntc0l-1.stream.aol.com],[80],[/stream/1048]
2007-04-30 07:36:22.1000 cracked: http://scfire-ntc0l-1.stream.aol.com/stream/10
48 with [scfire-ntc0l-1.stream.aol.com],[80],[/stream/1048]
2007-04-30 07:36:22.1040 00:04:20:06:82:26: Current playmode: play
2007-04-30 07:36:22.2189 Buffering... 0 / 49152
2007-04-30 07:36:22.3488 Buffering... 0 / 49152
2007-04-30 07:36:22.4790 Buffering... 0 / 49152
2007-04-30 07:36:22.6093 Buffering... 0 / 49152
2007-04-30 07:36:22.7395 Buffering... 0 / 49152
2007-04-30 07:36:22.8698 Buffering... 0 / 49152
2007-04-30 07:36:22.0006 Buffering... 0 / 49152
2007-04-30 07:36:23.1405 Buffering... 0 / 49152
2007-04-30 07:36:23.2702 Buffering... 0 / 49152
2007-04-30 07:36:23.4006 Buffering... 0 / 49152
2007-04-30 07:36:23.5306 Buffering... 0 / 49152
2007-04-30 07:36:23.6608 Buffering... 0 / 49152
2007-04-30 07:36:23.7910 Buffering... 0 / 49152
2007-04-30 07:36:23.9213 Buffering... 0 / 49152
2007-04-30 07:36:24.0514 Buffering... 0 / 49152
2007-04-30 07:36:24.1815 Buffering... 0 / 49152
2007-04-30 07:36:24.3117 Buffering... 0 / 49152
2007-04-30 07:36:24.4420 Buffering... 0 / 49152
2007-04-30 07:36:24.5721 Buffering... 0 / 49152
2007-04-30 07:36:24.7026 Buffering... 0 / 49152
2007-04-30 07:36:24.8325 Buffering... 0 / 49152
2007-04-30 07:36:24.9628 Buffering... 0 / 49152
2007-04-30 07:36:25.0928 Buffering... 0 / 49152
2007-04-30 07:36:25.2231 Buffering... 0 / 49152
2007-04-30 07:36:25.3533 Buffering... 0 / 49152
2007-04-30 07:36:25.4834 Buffering... 0 / 49152
2007-04-30 07:36:25.6136 Buffering... 0 / 49152
2007-04-30 07:36:25.7438 Buffering... 0 / 49152
2007-04-30 07:36:25.8741 Buffering... 0 / 49152
2007-04-30 07:36:26.0048 Buffering... 0 / 49152
2007-04-30 07:36:26.1448 Buffering... 0 / 49152
2007-04-30 07:36:26.2746 Buffering... 0 / 49152
2007-04-30 07:36:26.4167 Buffering... 0 / 49152
2007-04-30 07:36:26.5816 00:04:20:06:82:26: Switching to mode pause from playout
-play
2007-04-30 07:36:26.5832 00:04:20:06:82:26 New play mode: pause
2007-04-30 07:36:26.5864 00:04:20:06:82:26: Current playmode: pause
2007-04-30 07:36:32.1106 Error opening current track, so mark it as already play
ed
2007-04-30 07:36:32.1118 Backtrace:

frame 0: Slim::Player::Source::errorOpening (/PerlApp/Slim/Player/Squeezebox2
.pm line 579)
frame 1: Slim::Player::Squeezebox2::failedDirectStream (/PerlApp/Slim/Network
ing/Slimproto.pm line 527)
frame 2: Slim::Networking::Slimproto::_disco_handler (/PerlApp/Slim/Networkin
g/Slimproto.pm line 387)
frame 3: Slim::Networking::Slimproto::client_readable (/PerlApp/Slim/Networki
ng/Select.pm line 238)
frame 4: (eval) (/PerlApp/Slim/Networking/Select.pm line 238)
frame 5: Slim::Networking::Select::select (slimserver.pl line 492)
frame 6: main::idle (slimserver.pl line 445)
frame 7: main::main (slimserver.pl line 58)
frame 8: PerlSvc::Interactive (perlsvc.pl line 1486)
frame 9: PerlSvc::_interactive (slimserver.pl line 0)
frame 10: (eval) (slimserver.pl line 0)

2007-04-30 07:36:32.1196 00:04:20:06:82:26: Switching to mode stop from pause
2007-04-30 07:36:32.1208 00:04:20:06:82:26 New play mode: stop
2007-04-30 07:36:32.1214 Stopping and clearing out old chunks for client 00:04:2
0:06:82:26
2007-04-30 07:36:32.1257 Resetting song queue
2007-04-30 07:36:32.1264 Song queue is now 0
2007-04-30 07:36:32.1278 00:04:20:06:82:26: Current playmode: stop

Any suggestions?

-Ron

mherger
2007-04-30, 08:27
> I don't know what to try next. Here is a partial dump from Slimserver
> when I attempt to stream the Radio Paradise 128K MP3 stream to my SB3:

Can your mobile phone handle 128kbps streams?

Apart this: try enabling the proxied internet radio option in the server
settings. It will then be your computer who connects to the streaming
server, proxying the stream to your player.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Ron F.
2007-04-30, 09:03
Michael,

My phone has EvDO capability, and it should be able stream 128K to my SB3 easily. It should be able to stream up to 384K without too much difficulty. I can stream Radio Paradise using pTunes to my bluetooth stereo headset for hours without a glitch - so it should work!

I tried selecting some lower bit rates in Slimserver, including the Radio Paradise 32K stream, with the same result.

I did some googling of "routing windows" as you suggested, and found a suggestion that I turn the Windows routing function on via Regedit:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters

Select the "IPEnableRouter" entry (by defining as value : 1)

I did that, rebooted, and still no change in behavior.

How do I turn on the "proxied internet radio option?" Is that "web proxy" under internet settings? Don't I need a port number to make that work? I don't have a port number for my PPP connection.

-Ron

Ron F.
2007-04-30, 09:29
As an addendum - Using Winamp, I can listen to internet radio via this PPP connection. When I paste the URL into Slimserver, it fails.

-Ron

Ron F.
2007-04-30, 10:22
Ok, the problem here is a bit stranger than I thought.

I can browse the Shoutcast selection from my SB3, and when I try to play them, I get messages on the SB3 display that it is checking the stream, then connecting... and that is when it fails with a timeout message.

So, I think I can get all the way to starting the stream, which for some reason does not happen.

-Ron

Ben Sandee
2007-04-30, 10:55
On 4/30/07, Ron F. <"Ron.F..2pv5fn1177953901"@no-mx.forums.slimdevices.com>
wrote:
>
>
> Ok, the problem here is a bit stranger than I thought.
>
> I can browse the Shoutcast selection from my SB3, and when I try to
> play them, I get messages on the SB3 display that it is checking the
> stream, then connecting... and that is when it fails with a timeout
> message.


First, make sure you're using a 6.5.2 nightly build and not vanilla 6.5.1 (
6.5.1 doesn't support proxied streaming).

Second, go to your Player Settings from the web interface and choose the
'Audio' option. At the very bottom, you should see a box that allows you to
choose between "Direct Streaming" and "Proxied Streaming". You want the
latter (proxied).

HTH,

Ben

Ron F.
2007-04-30, 23:27
I like it when my gadgets work.

Installing 6.5.2, and setting the new "proxied streaming" option got it working: I am now streaming the Radio Paradise 128K mp3 stream via my PPP connection provided by Sprint! Slimserver then sends it on to my SB3 over my LAN.

In my opinion: this is an essential feature in Slimserver.

Ok, can ask Logitech and the Slim community to extend this feature so that we can stream other formats as well, such as AAC and WMA? It does not seem to work for anything other than mp3. I tried streaming a 128K AAC+ stream, and the Slimserver browser interface went nuts with what looked like garbled html written directly into the browser display.

Still - I am quite thankful for what I got:) because before I could not stream anything at all.

Now for some internet radio listening...

-Ron

bpa
2007-05-01, 00:46
A couple of points.

The Bug.
I am trying to track down that "garbled html" bug but can't reproduced reliably
- can you give the URL you're trying ?
- Is it from Tune-in or from a playlist ?
- what browser are you using ?

Your main points.

You can get a similar effect to proxied for WMA by disabling under FileTypes "Windows media (built-in)". This means stream ends in Slimserver and it is transcoded into Flac or MP3 before being sent to SB.

AAC+ (AACplus) is not supported by Slimdevices but you can install changes to provide support. The AACplus stream will be transcoded by Slimserver and then sent as MP3 or Flac to SB. The instruction here need to be updated so that 6.5.x is the main and not 6.3.x

If your system has not added many plugins, it could be as simple as installing 4 files.

http://wiki.slimdevices.com/index.cgi?AACplus

Ron F.
2007-05-01, 08:35
Thank you bpa, I am now streaming AACplus!

I have tested 48k and 64k bps aacplus streams and they work nicely. I cannot play the Radio Paradise 128k stream however, it apppears that the mplayer decoder does not support that. The playlist comes up empty on the Squeezebox, but it plays on my Treo using pTunes, so I think the stream itself is probably ok.

Anyway, I like this! Thank you very much for your help.

As to the bug:
I see pretty much the same thing with 6.5.2 that I was seeing with the official release of 6.5.1 - my browser display frequently goes nuts when streaming internet radio with weird stuff being written all over inside the browser window.

I am using Firefox, version 2.0.0.3. My system is Windows 2000, service pack 3. It is not service pack 4 - I reverted to service pack 3 as I found that SP 4 broke stuff that they never fixed in Win2K after that.

I have been playing the various Radio Paradise streams, and this problem seems more likely to happen if I try to stream something that Slimserver cannot decode, like their 128K aacplus stream. It happens with other streams too - I saw it occur with the 48k Soma Groovesalad stream as well. I copy/paste these URLs into the Tune-in field in the Slimserver web interface.

By the way, I should say what a cool program Slimserver is. I feel sorry for people who don't know yet they can play music like this.

-Ron

bpa
2007-05-01, 08:59
mplayer 1.0rc1 can handle the Radio paradise 128k stream. I can play it ok on my system using the following URL (from inside the m3u playlist)

http://radioparadise.steadyhost.com:8012

What version of mplayer is on your systems.

Ron F.
2007-05-01, 09:38
I downloaded from here:
http://www3.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc1.zip

You are right and I had not thought of trying that yet. When I copy/pasted the url you listed into the Tune-in field - then it began playing. Strange, for some reason it would not play as a playlist. Anyway, now I can play it!

By the way, I noticed as I play with Slimserver this morning, that the my browser display was getting worse and worse:) Eventually I could not get it to render correctly no matter how many times I hit the "Reload current page" button. I found that clearing out the cache has temporarily fixed the problem.

I was getting what looked like CSS code loading into the left-hand-side panel.

-Ron

bpa
2007-05-01, 10:02
OK radio paradise not working was related to playlist - I've seen that a few times - I may check it out as it may be related to using the AACplus additions.

The garbled html problem (bug #4110) does seem to be aggravated by cache but I can't get it to happen on demand so it is hard to debug.

A common thing that seems to be make it happen more often is playing internet radio from playlist or stations which don't connect.

Doing a screen refresh quickly after the request can provoke it. I think the speed of your dialup link may be making your setup more prone to it.

Ben Sandee
2007-05-01, 11:20
On 5/1/07, Ron F. <"Ron.F..2pwy0n1178037601"@no-mx.forums.slimdevices.com>
wrote:
>
>
> I downloaded from here:
> http://www3.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc1.zip
>
> You are right and I had not thought of trying that yet. When I
> copy/pasted the url you listed into the Tune-in field - then it began
> playing. Strange, for some reason it would not play as a playlist.
> Anyway, now I can play it!


That particular server is running at near capacity and is sometimes full
which causes an error like this from mplayer:

Error: ICY-Server is full, skipping!
No stream found to handle url http://radioparadise.steadyhost.com:8012

That may have been why it failed the first time you tried. I've been
successful using the m3u playlist before.

I'm pretty happy with the RP 128K MP3 stream though; for me it's not worth
the headache to move to the AAC one yet. I'm not an audiophile though.

Ben

Ron F.
2007-05-01, 12:07
bpa, if there is any debug info you would like me to try to capture let me know.

Now that I can stream AACplus via a PPP connection to my SB3, I think next I am going to attempt to get this all to work with SlimCD currently running on my Nano-ITX board - sorry Michael:)

Ben,
I am not exactly an audiophile, but my SB3 is driving a CI Audio VDA-2 DAC. I guess I am an audiophile wannabe.

-Ron

mherger
2007-05-02, 00:45
> Now that I can stream AACplus via a PPP connection to my SB3, I think
> next I am going to attempt to get this all to work with SlimCD
> currently running on my Nano-ITX board - sorry Michael:)

Why would you be sorry?

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Ron F.
2007-05-02, 06:31
Michael, due to my lingering lack of knowledge of Linux (slowly getting better with reading,) I will probably get stuck and wind up bothering you with more questions:)

Ron F.
2007-05-03, 10:32
Stuck again...

I tried switching to the Squeeze Network using my PPP connection to the internet, and of course that did not work. The SB3 attempts to leave Slimserver running on my PC, and switch directly to the internet, and Slimserver can no longer provide the proxied connection it was when I was simply entering a URL into Slimserver's Tune-in field!

So, if I am interested in streaming Live365 to my Squeezebox, it looks like I still have to solve the original problem: How do I connect to SqueezeNetwork from my SB3 when my Win2K machine is connected to the internet via a PPP connection?

I tried installing Jana, as Michael recommended as a possible solution, but I could not get that to work.

Any suggestions?

Ron F.
2007-05-03, 21:53
I got it working: I am now streaming SqueezeNetwork material, such as Live365 to my SB3, over my PPP connection to the web.

It works like this: My connection to the web is via an EvDO cell phone modem, (I have an unlimited data plan:) The modem is attached to my Win2K machine, connected to www.squeezenetwork.com. I have this wired to an access point, (my SB3 is wireless.)

The trick is to not allow the Squeezebox to attach to the access point using DHCP. The reason for this is that doing so sets the SB3's default gateway to the access point! Obviously, that won't work when running PPP as there is nothing connected to the WAN port on the access point! The SB3 needs to have its default gateway set to the IP address of the machine that is hosting the PPP adapter! So, setting up networking manually on the SB3, rather than letting DHCP do it fixed everything.

I also have internet connection sharing turned on for the PPP adapter on the Win2K platform.

-Ron

mherger
2007-05-03, 22:33
> I got it working: I am now streaming SqueezeNetwork material, such as
> Live365 to my SB3, over my PPP connection to the web.

While this is good news, I don't understand why you need this at all: as
you have to run a computer to access the internet, why not simply use it
to run SlimServer? All the radio station except Pandora should be
available from SlimServer as well.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Ron F.
2007-05-04, 07:52
You are correct Michael. Slimserver 6.5.2 can do proxied streaming for Live365. I was so interested in being able to switch my SB3 to the Squeeze Network via PPP over a cell phone, that I didn't even try that. Good point.

Anyway, I think it is cool that I can run Squeeze Network now:) I guess I am easily amused.

-Ron