• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Internet Radio and IceCAST servers?

Started by sXwamp, 2010.06.01, 04:50:54

Previous topic - Next topic

sXwamp

I was playing around with eCom 2.0 and found the 'Internet streams' template.

http://www.os2notes.com/os2radio.html

Does anyone have a IceCAST server setup on eCS with VLC.

And what about using Z to records the streams???


Fahrvenugen

#1
Hi,

I actually have Icecast Server running on OS/2 in an FM radio station where I'm responsible for IT.  At one time it was providing the online stream for the station and also providing us with the ability to do remote broadcasts (I have multiple instances of icecast running on  different ports, one I'd use for remote broadcasting from sites back to the station via a laptop).  

At the moment Icecast on OS/2 isn't doing much.  We've purchased different gear for remote broadcasting and I ended up switching the online stream over to a Windows box (the reasons of the switch had nothing to do with the OS/2 Icecast port - in fact OS/2 is equally reliable with Icecast as windows is.)  The one thing that I could do with Windows which I could not figure out how to get OS/2 to do (and if someone can help out with this here, I'll consider switching it back to Warp) is generate multiple different quality streams (different encoded bitrates) coming from the same sound card input.  I have no problem grabbing the input from the sound card and creating 1 stream to send to Icecast in OS/2,  but generating multiple streams at different bitrates just didn't work, and doing that in Windows is easy.  So to generate the multiple streams for the website (hi-quality, low-quality, etc) it was easier to encode the stream in Windows, and rather then putting the server on a different machine, I put the entire stream (encoder and server) all on 1 windows machine.

But I still have Icecast installed on the OS/2 servers I have at the station, and on one of them it is still running in the background (even though currently doing nothing other then using up some resources).

As for Z!, I have used it to both listen to and record online streams.  There's an option for a URL (I think it is option G but I can't recall for sure... hit F1 and read the help screen) - just enter the URL of your stream and Z will do the rest.  You can also set up Firefox to call Z in the event of an M3U file type.

Z! can write streams to disk with the "write to disk" option (W I think).  Again - check the application help.


Saijin_Naib

Hate to barge in, but anyone know what happened to DINK and his Z! page? I can't seem to reach it.

sXwamp

What do you use to encode the stream on eCS.  I was going to check out the new VLC beta1 that was just ported.

Greggory

Fahrvenugen

Greggory,

What I did is had my audio source plugged into a sound card's LineIN (a PCI based card using Uniaudio drivers), and used a mixer (lbmix) to select the input source and adjust the audio level.

I put Paul Ratcliffe's drecord.exe into my path (from dtape):

http://home.clara.net/orac/os2.htm#dtape

You'll need to chose if you want to encode in OGG or in MP3.  Both work, it all depends on what type of stream you want to run.  If OGG, grab Oggvorbis from Hobbes, if MP3 grab Lame from Hobbes.

If MP3 you'll also need  an older version of Shout - newer versions don't work with MP3 if I recall correctly (the OS/2 build version 0.2.5.2 works with MP3 streaming).  OGG isn't an issue.

Then you'll  just need to pipe drecord to oggenc (or lame) to shout (and direct shout to go to your icecast server).

Here's a sample of a command line:

drecord /S CON | oggenc -r - | shout 127.0.0.1 -a -x -P Password

or with Lame:

drecord /S CON | lame -b 64 -r -x - | shout 127.0.0.1 -a -x -P Password

I dumped that into a .cmd file and put it in my startup script after Icecast was launched.

If you just want to play pre-recorded MP3's or OGG files to a stream, you can bypass the drecord / LAME / OGGENC stuff and just use shout to send the files.  Check the Shout.exe documentation for that.

I'm sure there are other ways to send a stream to icecast with OS/2.  For what I was doing I needed something completely command line based that just grabbed the audio input from the sound card, encoded it, and dumped it to Icecast - without any user intervention.  The drecord - ogg (or lame) - shout just plain works for that.


sXwamp

Thank you, Fahrvenugen for all the tips.  I wasn't even thinking about a direct line input, will have to try that out.

I'm going to see if the new VLC works for encoding too.

Thanks,

Greggory 

The Blue Warper

Hi!
When I first read this thread, I thought it was about Firecast, an Ices port by Andrey Vasilkin, but I didn't find any mention to it here, so I think you might be interested to know this app.
I never tried it myself, but I think it has the very features you guys were discussing above.  This is the URL:
http://digi.os2.snc.ru/eng/firecast

where you can download the app.

Regards

sXwamp

Quote from: The Blue Warper on 2010.06.07, 17:24:53
Hi!
When I first read this thread, I thought it was about Firecast, an Ices port by Andrey Vasilkin, but I didn't find any mention to it here, so I think you might be interested to know this app.
I never tried it myself, but I think it has the very features you guys were discussing above.  This is the URL:
http://digi.os2.snc.ru/eng/firecast

where you can download the app.

Regards


Thanks, Blue Warper,  I'll add it to my page when I get a chance.

Quick and easy Internet radio on eCS
http://www.os2notes.com/os2radio.html


Greggory