HydrogenAudio

Lossy Audio Compression => Ogg Vorbis => Ogg Vorbis - General => Topic started by: MINz on 2002-07-29 19:20:43

Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-29 19:20:43
I've been trying for days to get this setup to work.  I can get winamp via oddcast to connect and send information to the icecast 2 server.  I have the mountpoint setup as "/32.ogg" and it shows up in the stats window just fine.  At this point everything is going as planned.  Now it's time to connect a client.  This is where I get no action.  On another machine in the winamp player I go to play location and type in "http://xxx.xxx.xxx.xxx:8000/32.ogg" this should open the stream and start playing it, but it doesn't.  I'm not sure if anyone is able to stream ogg with Icecast.  I haven't found anyone who has done this succesfully yet.  If you have done this successfully please tell me how.

My setup is as follows;
Windows XP Pro
WinAmp 2.80
Oddcast RC1
Icecast 2

Thanks,

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Benjamin Lebsanft on 2002-07-29 19:22:59
1. Oddcast RC5 is available but thats not the point! Are u using the MAD plugin ?
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-29 19:59:45
Quote
1. Oddcast RC5 is available but thats not the point! Are u using the MAD plugin ?


MAD?  I'm not familiar with it.
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Benjamin Lebsanft on 2002-07-29 20:09:55
what plugin do you use for decoding your mp3s ? The standard one ? Then my idea doesn't help you
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-29 20:14:09
I researched this MAD plug-in and it's not something I'm using now.
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-29 20:26:53
thanx anyway
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Artemis3 on 2002-07-29 23:25:30
Have you tried the stream on the same machine?

http://127.0.0.1:8000 (http://127.0.0.1:8000)
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-30 00:07:51
Quote
Have you tried the stream on the same machine?


Quote
http://127.0.0.1:8000 (http://127.0.0.1:8000)


Since I can't have 2 instances of WinAmp 2.80 open I have tried this using WinAmp 3 RC and it doesn't work.




MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: gnoshi on 2002-07-30 01:05:13
You can have more than 1 winamp running; you just need to change the property in Winamp Preferences, Options, Allow Multiple Instances.

Then you can happily run lots and lots of winamps; hell, if you are using directsound you can even play a bunch of them at once. Just what everybody needs =)

gnoshi
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Sawg on 2002-07-30 04:50:29
Quote
Originally posted by MINz
Since I can't have 2 instances of WinAmp 2.80 open 


Ctrl+Alt+N
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-30 05:59:04
Thanks for the help.  Now I'm to the point where I can stream ogg from one instance of winamp 2.80 to the other using "127.0.0.1:8000/32.ogg".  When I go and use my DSL IP address I keep getting repeated prebuffering.  But it seems to work other than the constant buffering.  I shouldn't be buffering it's only a 64kbps stream.

Any ideas?

Thanks for the info that has got me this far!

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: mpcfiend on 2002-07-30 07:27:49
Ya got DSL, are you behind a firewall?
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-30 07:51:20
Quote
Ya got DSL, are you behind a firewall?


Yes, I'm using a firewall, but it still keeps prebuffering even if I disable it.
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: [JAZ] on 2002-07-30 12:36:45
Trying to stream from yourself via your real ip address might not work in DSL, especially if you use a router or anything similar.

I haven't tried to run the server, but I have a 3Com 812 DSL modem-router (allows up to 4 machines connected to it) and I have to open and redirect ports when I have to put servers on my side.
You will know if you need to, if you cannot open DCC chats/filesends in IRC or if you had to reconfigure those ports.
This might not be your case, since using firewalls in this type of configuration is useless, since the router already works as such. (with more or less effectively)
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-30 17:32:38
Quote
Trying to stream from yourself via your real ip address might not work in DSL, especially if you use a router or anything similar.


I'm not using a router.  Though I may in the near future so thanks for the heads up.

I'm getting ready to test my stream with a friend.  I think trying to be the server and client is a bit too much for Icecast.  I'll post my results when I'm done.

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-30 19:07:26
It all works great now!

Basically it was trouble with trying to be both the server & client.  It's just not really reliable.  So I had some people test my stream and all is working great.  Thanks to everyone that helped.

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Moguta on 2002-07-31 02:29:15
Oooo!  I'm really interested in doing this (streaming OGG), but I need some help myself.

I can't find any real detailed explanations of the workings of IceCast... so how does it?  =p
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: rexit2 on 2002-07-31 02:57:33
Quote
Originally posted by Moguta
Oooo!  I'm really interested in doing this (streaming OGG), but I need some help myself.

I can't find any real detailed explanations of the workings of IceCast... so how does it?  =p


All the tools you need are here (http://www.oddsock.org)
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: gearbox on 2002-07-31 05:25:36
What does Adv Rec button do in Oddcast DSP?
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-07-31 17:38:28
Quote
What does Adv Rec button do in Oddcast DSP?


I believe it has to do with DJ'ing.  You play your songs and when you want to talk on the mic you hit the 'Adv Rec' button.

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: MINz on 2002-08-05 18:13:09
I have everything working great!  Let me share what I learned.

First you need the proper programs.  Grab these if you don't already have them.

WinAMP 2.80 (http://www.winamp.com/)
Oddcast RC5 (http://www.oddsock.org/tools/dsp_oddcast/dsp_oddcast_rc5.exe)<----uses the 1.0 release of the vorbis libraries
Icecast 2 Beta 5 (http://www.oddsock.org/tools/icecast2/Icecast2_win32_beta5_setup.exe) 

Now for the Setup:

WinAMP 2.80 Setup:
Go to preferences then to DSP/Effect.  Select Oddcast as your DSP effect.

Oddcast Setup:
Click Config Button ;-)
Choose Use Ogg Vorbis!
Use the Quality Settings as they are much better than the bitrate management option.
Quality = -1 ~ 32kbps, 0 ~64kbps, 1 ~ 80kbps....ect.
Server (Host name or IP) = your IP address
Port = Any unused Port Number eg. 6969
Password = Whatever you want
Mountpoint = /StreamName.ogg <----don't forget the"/".

If you are going to use "-1" quality setting they you should make the stream mono or reduce the sample rate to 22khz.

IceCast 2 Setup:
<icecast>
   <location>MINz Radio</location>
   <admin>MINz</admin>
   <limits>
      <clients>SET TO YOUR BANDWIDTH USUALLY UNDER '5' </clients>
      <sources>USUALLY ONLY '1' SOURCE </sources>
      <threadpool>5</threadpool>
      <client-timeout>15</client-timeout>
   </limits>
   <source-password>CHOOSE THE SAME AS IN ODDCAST</source-password>
   <directory>
      <touch-freq>5</touch-freq>
      <server>
         <host>yp.icecast.org</host>
         <touch-freq>15</touch-freq>
      </server>
   </directory>
   <bind-address>YOUR IP ADDRESS </bind-address>
   <port>] ANY UNUSED PORT </port>
        <paths>
                <basedir>./</basedir>
                <logdir>./</logdir>
        </paths>
   <logging>
      <accesslog>access.log</accesslog>
      <errorlog>error.log</errorlog>
   </logging>
</icecast>


Then give out the ip of your stream (eg. http://yourip:6969/oggstream.ogg (http://yourip:6969/oggstream.ogg)) and see if it works.

I really made this whole experience harder than it was by trying to test the stream from my computer.  Remember it doesn't work or won't work well if you try to stream and listen to the stream with the same computer.

Have fun!

MINz
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Messer on 2002-08-05 20:53:00
Quote
Originally posted by MINz

IceCast 2 Setup:
<icecast>
  <location>MINz Radio</location>
   <admin>MINz</admin>


Sorry for lame question

Anyone knows where can I get linux sources for Icecast2? Those avialable at http://www.icecast.org/ (http://www.icecast.org/) seems to be for icecast1 only (at least there's no such fancy XML config file).

I found some article at linux.oreilynet.com pointing out to BitKeeper  (www.bkbits.net (http://www.bkbits.net)) as the only source for Icecast2, but couldn't find it on their list either...

???

Thanks in advance,
Messer
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: gloval on 2002-08-05 21:10:02
You can get the latest out of CVS from xiph.org. 
you'll need the modules icecast, net, httpp,avl,libshout,log,thread,timing (IIRC)

ices also seems to be working better now, am still waiting for clarifying an issue with live input which I mentioned to Michael.
Title: Streaming OGG with Oddcast, Icecast 2 & Winamp
Post by: Messer on 2002-08-05 23:08:35
Quote
Originally posted by gloval
You can get the latest out of CVS from xiph.org.   
you'll need the modules icecast, net, httpp,avl,libshout,log,thread,timing (IIRC)


Thanks Gloval, that works!

Marvellous, at last reasonable quality for streaming music at  low bitrates. Even -q -1, mono sounds good!