Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


More info? | 19 comments | Create New Account
Click here to return to the 'More info?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
More info?
Authored by: yvesvdb on Jul 05, '02 06:20:07AM

I admit that the notes are a bear minimum, but I'm leaving on vacation, and I only did get it working yesterday so thats why.

OK if you have compilled and installed the packages in step 1, you still need to compile one example application which resides in the libshout/example directory and it is called example. The file itself is called example.c an looks like this :

#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <shout/shout.h>

int main()

{
shout_conn_t conn;
char buff[4096];
long read, ret, total;
shout_init_connection(&conn);
conn.ip = "127.0.0.1";
conn.port = 8000;
conn.password = "letmein";
...


Modify the part conn.ip, port password like:

conn.ip = "xx.xx.xx.xx"; <- give the IP address of your icecast server !!!
conn.port = 8000;
conn.password = "hackme"; <- give the password of your icecast server !!!
conn.mount = "test"; <- this is the mount point
conn.bitrate = 128; <- bitrate of the stream

save the file and type
# make
(be sure you are in the example directory)
now follow the other steps and you should be ok


remark about setting up the icecast server, the easiest thing to do this is that you rename or copy the example configuration file which is located /usr/local/icecast/conf/icecast.conf.dist to icecast.conf in that same directory ... this way the server will work but mountpoints will not work, if you are doing one stream live stream to it it doesn't matter because it defaults to the first one ... I know this is again a weak explanation ... but setting up an icecast server is not the topic here ...

I'm leaving know on vacation, I`ll be back on the 23th ...

Agian I know that the explanation is not that great but believe me it is the only LIVE MP3 streaming solution under Mac OS X I know of.

Yves.



[ Reply to This | # ]
More info?
Authored by: vonleigh on Jul 05, '02 05:16:52PM

Hello,

Thanks for the info. I had also been looking for a _live_ streaming solution for a while. I appreciate you sharing the info, sorry if last message seemed a bit terse, was a bit frustrated.

Anyway, I've followed your directions but for some reason the source (libshout) is not connecting to the icecast server. I don't get an error or anything, it just says:

% esdrec | lame -b 128 - - | ./example
opening socket, format = 0x00002021 at 44100 Hz
Connected to server...

In my other terminal window I have:

[Bandwidth: 0.000000MB/s] [Sources: 0] [Clients: 0] [Admins: 1] [Uptime: 4 minutes and 1 seconds]

The odd thing is that if I close my encoder (^C for lack of knowing a better way of doing it), I get this in the server:

-> [05/Jul/2002:14:16:26] Accepted encoder on mountpoint /test from mydomain.net. 1 sources connected
-> [05/Jul/2002:14:16:26] Lost connection to source on mount /test, waiting 30 seconds for timeout

So I guess it does know it's there, but only when I close it, quite odd.

Have a great vacation :)


Vonleigh



[ Reply to This | # ]
More info?
Authored by: dkheger on Aug 13, '02 12:15:59PM
Hey!
I had the same problem. I found out that if I don't start esd (in step 3 of the instuctions) it fixes the problem.

Now the problem that I have is that I can't figure out how to change the default built-in mircophone input to the microphone (line-in) input.

Any ideas?

thanks!

Dal.
A UNIX (OS X) newbie.


[ Reply to This | # ]
More info?
Authored by: tmerritt on Aug 15, '02 04:38:01PM

I think you need to have a source plugged in to the line in for it to show up in the selection dialog.

Where can a rank CLI newbie find some help for installing the apps at the start of this thread? Compiling things, using fink... where can I find a friendly how-to? I use Final Cut Pro and QuickTime authoring stuff all the time, but I would like help getting started with the command line. If I could stream MP3 audio on my network, record in MP3 format the audio direct from my internal PowerBook mic... these are tools I could use and maybe a good introduction to this aspect of OS X.



[ Reply to This | # ]