Тема: Icecast2 and sc_trans 2.5 вещание на нескольких потоках.
Я не могу понять почему у меня формат aac идёт на оба порта , а mp3 никуда. Настройки такие.
sc_trans:
;; VU Images
;vuimagedirectory=C:\Documents and Settings\nradisch\My Documents\programming\shoutcast\current\sc_trans\vuimages\
;; ENCODER OPTIONS 0
encoder_0=aacp
bitrate_0=64000
samplerate_0=44100
channels_0=2
;; ENCODER OPTIONS 1
encoder_1=mp3
bitrate_1=128000
samplerate_1=44100
channels_1=2
;;; NETWORK OPTIONS 0
outprotocol_0=1
serverip_0=fm.asterios.tm
serverport_0=8700
password_0=******
;;; NETWORK OPTIONS 1
outprotocol_1=1
serverip_1=fm.asterios.tm
serverport_1=9000
password_1=******
;;;; LOGGING OPTIONS:
;where does the log file go
logfile=/root/radio/sc/sc_trans.log
; 1 to do screen logging else 0
screenlog=1
;;;;;; METADATA CONTROL
; my stream name
streamtitle=Radio Asterios
; url related to my stream
streamurl=http://radio.asterios.tm
; my genre
genre=game
; other assorted stuff
;aim=myaimaddr
;irc=myirc
;icq=myicq
; register with yp
public=1
;;;; PLAYLIST CONTROL
; your playlist
playlistfile=/root/radio/playlist.txt
; by default we shuffle the playlist. Lets turn that off
shuffle = 1
; set our crossfade time to 2 seconds. zero means no xfade
xfade=2
; file must be at least 20 seconds or we don't crossfade
xfadethreshold=20
; drop folder for priority playlists
playlists=/root/radio/non/
; where finished priority playlists get copied
;archive=/root/radio/sc/archive
;;; LIVE CAPTURE:
; don't capture
capture=0
; set capture parameters
;capturedevice=Sound Blaster
;captureinput=Line-In
;capturesamplerate=44100
;capturechannels=2
calendarfile=/root/radio/sc/calendar.xml
calendarrewrite=0
;;;; DJ SUPPORT:
; dj listen port
djport=8900
; dj password
djlogin=оо
djpassword=****
djpriority=1
djcapture=0
; idle time until auto-dump
autodumpsourcetime=30
; record dj broadcasts here
;djbroadcasts=c:\sc_trans\recorded\
;; REPLAY GAIN CONTROL:
applyreplaygain=0
calculatereplaygain=0
;;; OTHER:
adminport=5555
adminuser=admin
adminpassword=448355
icecast2:
<icecast>
<limits>
<clients>700</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>10</client-timeout>
<header-timeout>10</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- 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-size>20535</burst-size>
</limits>
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>*******</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>*******</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>oo</admin-user>
<admin-password>*******</admin-password>
</authentication>
<!-- 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-mount>//Asterios</shoutcast-mount>
-->
<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->
<!-- 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>fm.asterios.tm</hostname>
<!-- You may have multiple <listener> elements -->
<!-- <bind-address>fm.asterios.tm</bind-address> -->
<listen-socket>
<port>8700</port>
<shoutcast-mount>/128</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8701</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<listen-socket>
<port>9000</port>.
<shoutcast-mount>/64</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>9001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
-->
<!--<master-server></master-server>-->
<!--<master-server-port></master-server-port>-->
<!--<master-update-interval></master-update-interval>-->
<!--<master-password></master-password>-->
<!-- 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-on-demand>1</relays-on-demand>-->
<!--
<relay>
<server>fm.asterios.tm</server>
<port>8700</port>
<mount>/64</mount>
<local-mount>/64</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.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>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>
-->
<fileserve>1</fileserve>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>1000</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>root</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
Отредактировано MonoLog (14-09-2010 03:46:08)