You are not logged in.

#1 2007-01-25 00:50:56

Faust-C
Member
Registered: 2007-01-24
Posts: 4

MPD + Icecast Running But Not Streaming

Ok I seem to have the configs correct but for some reason I still cant get music streaming. Meaning the /etc/rc.d/mpd, icecast start without fail. I think it has to do with that I have the music on another hard drive (not another computer) Maybe I need to change /media/disk/ to a regular mount point ?
Anyways here are the configs. Note yes the passwords are blank cause duh im posting them here.
mpd.conf

db_file                 "~/.mpd.db"
port            "6600"
music_directory        "/media/disk/Music"
playlist_directory    "/media/disk/Music/playlists"
log_file        "~/.mpdlog"
error_file        "~/.mpderror"
 
##################HOUT STREAMING ########
#
# Set this to allow mpd to stream its output to icecast2
# (i.e. mpd is a icecast2 source)
#
audio_output {
        type              "shout"
        name              "test"
        host              "localhost"
        port              "8000"
        mount             "/mpd.ogg"
        password          "blank"
        quality           "5.0"   
#       bitrate           "64"
        format            "44100:16:1"
 
# Optional Paramters
       user            "source"
#       description     "here's my long description"
#       genre           "jazz"
} # end of audio_output
#################################

icecast.xml

<icecast>
    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue>524288</queue>
        <client>30</client>
        <header>15</header>
        <source>10</source>
        <If>
        <burst>1</burst>
        <!-- same as burst-on-connect, but this allows for being more
             specific on how much to burst. Most people won't need to
             change from the default 64k. Applies to all mountpoints  -->
        <burst>65535</burst>
    </limits>
 
    <authentication>
        <Sources>
        <source>blank</source>
        <Relays>
        <relay>blank</relay>
 
        <Admin>
        <admin>admin</admin>
        <admin>blank</admin>
    </authentication>
 
    <Uncomment>
    <!--
    <directory>
        <yp>15</yp>
        <yp>http://dir.xiph.org/cgi-bin/yp-cgi</yp>
    </directory>
    <directory>
        <yp>15</yp>
        <yp>http://www.oddsock.org/cgi-bin/yp-cgi</yp>
    </directory>
     -->
 
    <This>
    <hostname>localhost</hostname>
 
    <You>
    <!--<port>8000</port> -->
    <!--<bind>127.0.0.1</bind>-->
 
    <!-- You may have multiple <listener> elements -->
    <listen>
        <port>8000</port>
        <!-- <bind>127.0.0.1</bind> -->
    </listen>
    <!--
    <listen>
        <port>8001</port>
    </listen>
    -->
 
    <!--<master>127.0.0.1</master>-->
    <!--<master>8001</master>-->
    <!--<master>120</master>-->
    <!--<master>hackme</master>-->
 
    <!-- setting this makes all relays on-demand unless overridden, this is
         useful for master relays which do not have <relay> definitions here.
         The default is 0 -->
    <!--<relays>1</relays>-->
 
    <!--
    <relay>
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local>/different.ogg</local>
        <on>0</on>
 
        <relay>0</relay>
    </relay>
    -->
 
    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
    <mount>
        <mount>/example-complex.ogg</mount>
 
        <username>othersource</username>
        <password>hackmemore</password>
 
        <max>1</max>
        <dump>/tmp/dump-example1.ogg</dump>
        <burst>65536</burst>
        <fallback>/example2.ogg</fallback>
        <fallback>1</fallback>
        <fallback>1</fallback>
        <intro>/example_intro.ogg</intro>
        <hidden>1</hidden>
        <no>1</no>
        <authentication>
                <option>
                <option>
        </authentication>
        <on>/home/icecast/bin/stream-start</on>
        <on>/home/icecast/bin/stream-stop</on>
    </mount>
 
    <mount>
        <mount>/auth_example.ogg</mount>
        <authentication>
            <option>
            <option>
            <option>
            <option>
        </authentication>
    </mount>
 
    -->
 
    <fileserve>1</fileserve>
 
    <!-- set the mountpoint for a shoutcast source to use, the default if not
         specified is /stream but you can change it here if an alternative is
         wanted or an extension is required
    <shoutcast>/live.nsv</shoutcast>
    -->
 
    <paths>
        <basedir>
        <basedir>/usr/share/icecast</basedir>
 
        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
         <logdir>/media/disk/icecast</logdir>
        <webroot>/usr/share/icecast/web</webroot>
        <adminroot>/usr/share/icecast/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->
 
        <Aliases>
        <!--
        <alias>
          -->
        <Aliases>
        <alias>
    </paths>
 
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
          <loglevel>4</loglevel> <4>
          <logsize>10000</logsize> <Max>
        <If>
        <!-- <logarchive>1</logarchive> -->
    </logging>
 
    <security>
        <chroot>0</chroot>
 
        <changeowner>
            <user>user</user>
            <group>user</group>
        </changeowner>
 
    </security>
</icecast>

And like I said I can run the daemons with no errors, but I dont know exactly what to do when its on another hard disk. Also the arch wiki didnt have any good info.(I wanted to say that before someone said check the wiki)
Also is it possible to maybe link a dir in my ~/ to the /media/disk/ ? Thanks ahead of time guys!!!

Offline

#2 2007-01-25 12:51:20

Faust-C
Member
Registered: 2007-01-24
Posts: 4

Re: MPD + Icecast Running But Not Streaming

Well seeing that I cant get it to working at the moment and no one has given a response Ill just let this oen go for now. I think its due to the fact that my source is on another mount point that I cant get it to function correctly. Just that I know there is someone who has delt with this problem. I highly doubt I am the only one to have tried to do this before. Anyways thanks for ....

Offline

#3 2007-01-25 14:49:08

cdhotfire
Member
From: Ocala, Florida
Registered: 2006-02-13
Posts: 151

Re: MPD + Icecast Running But Not Streaming

Where did you get this icecast.xml? Almost all the options are commented.

audio_output {
type    "shout"
name    "..."
host    "box"
port    "4545"
mount    "/mpd.ogg"
password    ""
quality    "7.0"
format    "48000:16:1"
}
<icecast>
    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue>524288</queue>
        <client>30</client>
        <header>15</header>
        <source>10</source>

        <burst>1</burst>

        <burst>65535</burst>
    </limits>

    <authentication>

        <source>isidro</source>

        <relay>isidro</relay>

        <admin></admin>
        <admin></admin>
    </authentication>

    <hostname>box</hostname>

    <listen>
        <port>4545</port>
    </listen>

    <fileserve>1</fileserve>


    <paths>
        <basedir>/usr/share/icecast</basedir>
        <logdir>/var/log/icecast</logdir>
        <webroot>/usr/share/icecast/web</webroot>
        <adminroot>/usr/share/icecast/admin</adminroot>
        <alias>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>

          <loglevel>4</loglevel> <4>
          <logsize>10000</logsize> <Max>

    </logging>

    <security>
        <chroot>0</chroot>
        <changeowner>
            <user></user>
        <group></group>
        </changeowner>
    </security>
</icecast>

If you want you can use my icecast.xml and change the port and add your user and stuff.


[img]http://www.barbarawood.com/guestbook/images/smilies/koolaid.gif[/img]
"Ooooh Yaaaa!"

Offline

#4 2007-01-25 23:55:24

Faust-C
Member
Registered: 2007-01-24
Posts: 4

Re: MPD + Icecast Running But Not Streaming

Hey Thanks Man ill have to try this out !!!! i hope it works if not thanks anyway!
I knew someone could give some insight... and btw ive never messed w/ xml so i didnt know how to edit the files correctly

Offline

Board footer

Powered by FluxBB