Воспроизвести поток RSTP с сервера iceCast - PullRequest
0 голосов
/ 07 января 2019

Здравствуйте. Я пытаюсь воспроизвести поток rstp со следующим сервером icecast: https://github.com/moul/docker-icecast. Когда я выполняю следующую ссылку в навигаторе explorer / chrome. Я выполняю следующую ссылку в браузере:

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

и я получаю следующее сообщение:

404 - The file you requested could not be found

Я проверил, что сервер icecast запущен со следующей командой:

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

Я настроил следующий файл icecast.xml: следующий 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 ?
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...