ices2, darkice + alsa + meta (Как настроить)

Разные проблемы звука, видео, обсуждение разных устройств и т.д.

Модератор: Модераторы разделов

Ответить
Аватара пользователя
denel
Сообщения: 497
ОС: Gentoo Linux
Контактная информация:

ices2, darkice + alsa + meta

Сообщение denel »

Собственно сабж, как настроить чтоб ices2, darkice периодически читали метаинформацию из файла? Вроде сделал ices2 но читать он не стал.... darkice пока еще не пытался

Код: Выделить всё

<?xml version="1.0"?>
<ices>
        <!-- run in background  -->
        <background>1</background>
        <!-- where logs go. -->
        <logpath>/var/log/ices</logpath>
        <logfile>ices2.log</logfile>
        <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>/var/run/ices2.pid</pidfile>
        <stream>
                <!-- metadata used for stream listing -->
                <metadata>
                        <name>Radio</name>
                        <genre></genre>
                        <description>dynalias.org</description>
                        <url>http://dynalias.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">44100</param>
                        <param name="channels">2</param>
                        <param name="device">default: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">/Export/Metadata.txt</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>hackme</password>
                        <mount>/sound.ogg</mount>
                        <yp>0</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>4</quality>
                                <samplerate>44100</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>44100</in-rate>
                                <out-rate>44100</out-rate>
                        </resample> -->
                </instance>
        </stream>
</ices>
Спасибо сказали:
Ответить