Reproduce RSTP stream from iceCast server

时间:2019-01-07 13:54:20

标签: streaming

Hello I am trying to reproduce a rstp stream with the following icecast server : https://github.com/moul/docker-icecast .When i execute the following link in the explorer/chrome navigator. I execute the following link in the browser:

http://*************:8000/test.ogg

and I obtain the following message :

404 - The file you requested could not be found

I have checked that the icecast server is started with the following comand:

docker run -p 8000:8000 -v /*********************/icecast2/icecast.xml:/etc/icecast2/icecast.xml moul/icecast

I have configured the following icecast.xml: the following icecast.xml :

<icecast>
    <limits>
        <clients>1000</clients>
        <sources>42</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>
    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>hackme</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>hackme</relay-password>

        <admin-user>admin</admin-user>
        <admin-password>hackme</admin-password>
    </authentication>
    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->
    <hostname>localhost</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <mount>
        <mount-name>/test.ogg</mount-name>
        <username>othersource</username>
        <password>hackmemore</password>
        <max-listeners>1</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/example2.ogg</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <intro>/example_intro.ogg</intro>
        <stream-url>rtsp://************/axis-media/media.amp</stream-url>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <on-connect>*********/test.sh</on-connect> 
    </mount>
    <fileserve>1</fileserve>
    <paths>
        <basedir>/usr/share/icecast2</basedir>
        <logdir>/var/log/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 -->
        <logsize>10000</logsize> <!-- Max size of a logfile -->
    </logging>
    <security>
        <chroot>0</chroot>
    </security>
</icecast>

Any idea on what is happening and how to solve it ?

0 个答案:

没有答案