Annuler plein écran
En train de charger...

 


Video Stream on Debian64 


 


Install packages


alibalo#apt-get install libogg-dev libvorbis-dev icecast2 libtag1-dev  libshout3-dev libtheora-dev

alibalo# apt-get install oggfwd

alibalo#mkdir -p /home/video

alibalo#cd /home/video

alibalo#wget http://thiscow.eu/veejay/demo-pd-trollparty.ogg

alibalo#wget http://amnesia.neurd.net/trollparty/trollparty-lastrender.ogg

alibalo#wget http://downloads.xiph.org/releases/ezstream/ezstream-0.4.0.tar.gz

alibalo# tar -xzvf ezstream-0.4.0.tar.gz 

alibalo#cd ezstream-0.4.0

alibalo# ./configure                                       

alibalo# make && make install


Configure Ezstream


alibalo# mkdir -p /etc/ezstream
alibalo# vim /etc/ezstream/config.xml

<ezstream>
<url>http://localhost:8000/channel.ogg</url>
<sourcepassword>hackme</sourcepassword>
<format>THEORA</format>
<filename>/home/video/trollparty-lastrender.ogg</filename>
<reencode>
<enable>0</enable>
</reencode>
</ezstream>


Configure ICECAST2


vim /etc/icecast2/icecast.xml
 <icecast>
    <limits>
        <clients>100</clients>
        <sources>2</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-on-connect>1</burst-on-connect>

        </limits>

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>hackme</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>hackme</relay-password>

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>hackme</admin-password>
    </authentication>
    <hostname>localhost</hostname>
 <listen-socket>
        <port>8000</port>

</listen-socket>
<fileserve>1</fileserve>

<mount>
        <mount-name>/channel.ogg</mount-name>
        <username>source</username>
        <password>hackme</password>
        <shoutcast-mount>/channel.ogg</shoutcast-mount>
        <on-demand>1</on-demand>
        <max-listeners>10</max-listeners>
        <dump-file>/tmp/channel.ogg</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/home/video/trollparty-lastrender.ogg</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <intro>/home/video/demo-pd-trollparty.ogg</intro>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
    </mount>

<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>
        <!-- <playlistlog>playlist.log</playlistlog> -->
        <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
        <logsize>10000</logsize> <!-- Max size of a logfile -->
        <!-- If logarchive is enabled (1), then when logsize is reached
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
             otherwise it will be moved to [error|access|playlist].log.old.
             Default is non-archive mode (i.e. overwrite)
        -->
        <!-- <logarchive>1</logarchive> -->
    </logging>
<security>
        <chroot>0</chroot>
        <changeowner>
            <user>icecast</user>
            <group>nogroup</group>
        </changeowner>
    </security>
</icecast>


&#160;


Lauch ezstream and icecast2


alibalo# /etc/init.d/icecast2 start

alibalo# ezstream -c /etc/ezstream/config.xml
ezstream: Connected to http://localhost:8000/channel.ogg
ezstream: ov_open(): /home/video/trollparty-lastrender.ogg: Invalid Vorbis bitstream
ezstream: ov_open(): /home/video/trollparty-lastrender.ogg: Invalid Vorbis bitstream
ezstream: Streaming ``trollparty-lastrender''



Check on live


&#160;


To send webcam video to the channel


ffmpeg2theora ma_video.mpeg -o - | oggfwd icecast.mondomaine.org 8000 hackme /channel.ogg


Sourceexternal link



Collaborateur(s) de cette page: tom bouillut .
Page modifiée dernièrement le mardi 03 juillet, 2007 21:03:53 CEST par tom bouillut.


Source