LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2006, 07:12 AM   #1
Hitty
Member
 
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Rep: Reputation: 15
The source you requested could not be found - Icecast


Hi,

I'm trying to set up a radio station for a game I play, and I got some advice from someone off a different forum.

After I decided to use Icecast (like they recommended) I did a little googling around, and found this guide!

http://www.pcmech.com/show/os/917/9/


I did everything step by step, and double checked everything as I went along, and once again at the very end.

I try accessing it while I have something playing in xmms, and I just get:

"The source you requested could not be found." (feel free to check for yourselves, you might have an idea why: http://something.homelinux.org:8000/music.ogg )

I assumed it had something to do with the 'music.ogg', so I tried it without it and just left it as :8000.

That gave me a different error:

"The file you requested could not be found"

Any suggestions why I'm getting this error would be greatly appreciated.

Many Thanks in Advance
--Hitty
 
Old 06-12-2006, 09:33 PM   #2
sonnik
Member
 
Registered: May 2001
Posts: 149

Rep: Reputation: 17
Posting your icecast conf and your ices conf files would help.

Also, ices is pretty verbose when you start it up. For example, here's what I see when I start it up at the console...

Code:
[2006-06-12  19:32:16] INFO ices-core/main IceS 2.0.1 started...
[2006-06-12  19:32:16] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2 channel(s), 44100 Hz
[2006-06-12  19:32:16] INFO input-oss/oss_open_module Starting metadata update thread
[2006-06-12  19:32:16] INFO signals/signal_usr1_handler Metadata update requested
[root@reznor conf]# [2006-06-12  19:32:16] DBUG metadata/metadata_thread_signal reading metadata from "/usr/local/share/icecast/conf/test_meta.txt"
[2006-06-12  19:32:16] INFO metadata/metadata_thread_signal tag 1 is TITLE=TEST RADIO (NEW BUILD)
[2006-06-12  19:32:16] INFO metadata/metadata_thread_signal Updating metadata
[2006-06-12  19:32:16] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channel(s), 44100 Hz, quality 2.000000
[2006-06-12  19:32:16] INFO stream/ices_instance_stream Connected to server: localhost:8000/testradio.ogg
[2006-06-12  19:32:16] DBUG encode/encode_clear Clearing encoder engine
[2006-06-12  19:32:16] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channel(s), 44100 Hz, quality 2.000000
Do you see any output that confirms anything like this?
 
Old 06-13-2006, 11:29 AM   #3
Hitty
Member
 
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Original Poster
Rep: Reputation: 15
I'll post everything from starting ices and icecast then.

Code:
tony@beng:~$ ices2 ~/.ices2/ices
ices2_config.xml   ices2_config.xml~  ices.log
tony@beng:~$ ices2 ~/.ices2/ices2_config.xml
unable to open log /home/tony/.ices2/ices.log

Code:
tony@beng:~$ icecast2 ~/.icecast2/icecast2_config.xml
Icecast 2.2.0

usage: icecast [-h -b -v] -c <file>
options:
        -c <file>       Specify configuration file
        -h              Display usage
        -v              Display version info
        -b              Run icecast in the background

tony@beng:~$ icecast2 -c ~/.icecast2/icecast2_config.xml

And in my configuration files (I wont edit any passwords or anything out unless you think I should do)

Icecast2 Configuration
Code:
<!-- This config file contains a minimal set of configurable parameters,
     and mostly just contains the things you need to change.  We created
     this for those who got scared away from the rather large and heavily
     commented icecast.xml.dist file. -->
<icecast>
    <limits>
        <sources>2</sources>
    </limits>
    <authentication>
        <source-password>123abc123</source-password>
        <relay-password>123abc123</relay-password>
        <admin-user>admin</admin-user>
        <admin-password>123abc123</admin-password>
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <hostname>localhost</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <logdir>/home/tony/.icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
      	<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
	<security>
 		<chroot>0</chroot>
		<changeowner>
		<user>icecast2</user>
		<group>icecast</group>
  		</changeowner>
	</security>
    </logging>
</icecast>

Ices2 Configuration
Code:
<?xml version="1.0"?>
<ices>

    <!-- run in background  -->
    <background>0</background>
    <!-- where logs go. -->
    <logpath>/home/tony/.ices2</logpath>
    <logfile>ices.log</logfile>
    <!-- size in kilobytes -->
    <logsize>2048</logsize>
    <!-- 1=error, 2=warn, 3=infoa ,4=debug -->
    <loglevel>4</loglevel>
    <!-- logfile is ignored if this is set to 1 -->
    <consolelog>0</consolelog>

    <!-- optional filename to write process id to -->
    <!-- <pidfile>/home/ices/ices.pid</pidfile> -->

    <stream>
        <!-- metadata used for stream listing -->
        <metadata>
            <name>Shards >> Radio</name>
            <genre>Shards -- of -- War</genre>
            <description></description>
            <url>http://something.homelinux.org</url>
        </metadata>

        <!--    Input module.

            This example uses the 'oss' module. It takes input from the
            OSS audio device (e.g. line-in), and processes it for live
            encoding.  -->
        <input>
            <module>alsa</module>
            <param name="rate">48000</param>
            <param name="channels">2</param>
            <param name="device">hw:0,0</param>
            <!-- Read metadata (from stdin by default, or -->
            <!-- filename defined below (if the latter, only on SIGUSR1) -->
            <param name="metadata">1</param>
            <param name="metadatafilename">test</param>
        </input>

        <!--    Stream instance.

            You may have one or more instances here.  This allows you to
            send the same input data to one or more servers (or to different
            mountpoints on the same server). Each of them can have different
            parameters. This is primarily useful for a) relaying to multiple
            independent servers, and b) encoding/reencoding to multiple
            bitrates.

            If one instance fails (for example, the associated server goes
            down, etc), the others will continue to function correctly.
            This example defines a single instance doing live encoding at
            low bitrate.  -->

        <instance>
            <!--    Server details.

                You define hostname and port for the server here, along
                with the source password and mountpoint.  -->

            <hostname>localhost</hostname>
            <port>8000</port>
            <password>123abc123</password>
            <mount>/music.ogg</mount>
            <yp>1</yp>   <!-- allow stream to be advertised on YP, default 0 -->

            <!--    Live encoding/reencoding:

                channels and samplerate currently MUST match the channels
                and samplerate given in the parameters to the oss input
                module above or the remsaple/downmix section below.  -->

            <encode>  
                <quality>0</quality>
                <samplerate>48000</samplerate>
                <channels>2</channels>
            </encode>

            <!-- stereo->mono downmixing, enabled by setting this to 1 -->
            <downmix>0</downmix>

            <!-- resampling.
            
                Set to the frequency (in Hz) you wish to resample to, -->
             
            <resample>
                <in-rate>48000</in-rate>
                <out-rate>48000</out-rate>
            </resample>
        </instance>

    </stream>
</ices>

I just checked this as I was posting, to make sure it was still doing what it was before, and for some reason, I can open :8000/music.ogg. I know this will most likely make this post 'pointless' now, but I wondered if anyone could give me an idea what could make it do that in the first place.

Many Thanks
--Hitty
 
Old 06-13-2006, 12:04 PM   #4
sonnik
Member
 
Registered: May 2001
Posts: 149

Rep: Reputation: 17
It doesn't look like you're getting ices to start...

Just to be certain, you're starting the icecast server first, then starting ices - correct?

Try these commands:

Code:
icecast2 -c ~/.icecast2/icecast2_config.xml &
ices2 ~/.ices2/ices2_config.xml &
You should see a good deal of output as I posted above, confirming initialization and mountpoints. If you don't, do a

Code:
ps aux | grep ices
Make sure one instance (and only one) of ices2 is running. If not, it may be a iptables issue.
 
Old 06-14-2006, 09:33 AM   #5
Hitty
Member
 
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Original Poster
Rep: Reputation: 15
Code:
tony@beng:~$ ps aux | grep ices
tony      9252 16.3  0.4  22564  3164 pts/1    Rl+  11:01  44:05 ices2 /home/tony/.ices2/ices2_config.xml
tony@beng:~$
I can open it from another computer now, so it looks like it's working, although the amount of time it takes to open it on another computer is a while (I'm assuming thats because it's running off a pretty crowded network).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: Host found but no data record of requested type alex r Linux - Networking 4 06-26-2014 07:01 AM
Kernel Source not Found? prh MEPIS 4 10-01-2005 12:18 PM
Kernel Source not found Echo Kilo Linux - Software 10 12-29-2004 09:47 PM
Rox Source not found? Nz_Boy_2004 Linux - Software 24 05-31-2004 12:19 PM
Incorrect source drive requested when trying to install packages/components cluelessblues Mandriva 5 01-12-2004 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration