Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Status
Für weitere Antworten geschlossen.

privat

Benutzer
Ich habe Shoutcast 1.9.8 mit dem Transcoder 2 beta6.

Ich möchte das der Transcoder jede halbe Stunden eine Jingle spielt, mein ansatzt sieht so aus

Ordner songs ## hier liegen die MP3 Files
Ordner jingles ## hier ligene die jingels

Meine sc_trans.conf
Code:
adminpassword=xpass12
adminuser=admin
aim= 

djlogin=dj
djpassword=xpass12

encoder=mp3

genre=Classical

icq= 
irc= 

outprotocol=1

password=xpass12
public=1

samplerate=44100
shuffle=1
streamtitle=Radio
streamurl=http://foobar.com

xfade=2
xfadethreshold=20

InputSampleRate=10025

applyreplaygain=0
archive=playlists/archive

calculatereplaygain=0
capture=0
channels=2

;djbroadcasts=20

logfile=sc_trans.log

playlistfile=playlist.lst
playlists=playlists
playlistfilepath_0=jingle.lst
playlistfilename_0=jingles
calendarrewrite=0

screenlog=0

bitrate=128000

InputChannels=20
serverip=meine IP
serverport=16000
adminport=16020
djport=16010
bitrate=64000


Meine calendar.xml
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">dj</dj>
<calendar  starttime="00:00:00" />
</event>
<event type="playlist">
<playlist loopatend="0" shuffle="0" priority="2" >jingles</playlist>
<calendar starttime="00:00:00"  duration="00:05:00 timeoffset="00:00:00" repeat="128" />
</event>

<event type="playlist">
<playlist loopatend="0" shuffle="0" priority="2" >jingles</playlist>
<calendar starttime="00:00:00"  duration="00:05:00 timeoffset="00:30:00" repeat="128" />
</event>

</eventlist>


Die Songs spielt er ab nur er spielt keine jingles zur halben oder zur vollen Stunden
Habe ich irgendow ein Denk fehler drin oder ist mein Weg schlichtweg falsch.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hi,

als erstest solltest du im Logfile von sc_trans schauen, ob die playlist wirklich geladen werden kann. Steht ziemlich am Anfang des Logifiles.

Um sicher zu gehen das die Liste gefunden wird solltest du ferner
Code:
playlistfilepath_0=jingle.lst
ändern in
Code:
playlistfilepath_0=/path/to/jingle.lst
also den kompletten Dateipfad zur jingles.lst angeben.

Dann ändere bitte die Einträge in der calendar.xml folgendermassen ab:
Code:
<event type="playlist">
    <playlist loopatend="0" shuffle="0" priority="2" >jingles</playlist>
    <calendar  starttime="01:00:00" timeoffset="00:00:00" duration="00:05:00" repeat="128" />
</event>

<event type="playlist">
    <playlist loopatend="0" shuffle="0" priority="2" >jingles</playlist>
    <calendar  starttime="01:00:00" timeoffset="00:30:00" duration="00:05:00" repeat="128" />
</event>
Also im Grunde nur die starttime von 0 auf 1 Uhr setzen, so funktioniert es bei mir problemlos.
sc_trans scheint ein problem zu haben, wenn bei periodic events die Startzeit auf 0 uhr steht. Hat bei mir 100% CPU Auslastung ergeben und sc_trans reagierte nichtmehr. Nachdem ich es wie oben auf 1 Uhr geändert hatte lief es problemlos.

Sollten sc_trans widererwarten trotzdem zur vollen und halben Stunde kein jingle spielen, trag in die config von sc_trans bitte mal folgendes ein:
Code:
calendardebug=1
Starte sc_trans neu und schau was sc_trans zur halben bzw. vollen Stunde ins Logfile schreibt und poste dies hier ggf.

Anmerkung: sc_trans wird dir nicht Punkt 14:00, 14:30, 15:00 usw. die Jingles spielen. Startet um z.B. 14:28 ein 5 minuten langer Song, wird der Jingle erst um 14:33 gespielt. Hierbei ist es auch egal, ob die Jingle-Playlist eine höhere Priorität hat, sc_trans unterbricht keine laufenden Songs. Einzige Ausnahme ist die Übernahme des Streams durch einen Moderator.
Hast du mehrere Jingles in der Playlist, wird dir sc_trans dann bis 14:35 nur die Jingles spielen (duration="00:05:00")

Wenn du also mehrere jingles verwenden willst, musst du in der Playlist statt der Jingles selber ein script aufrufen, welches nur einen einzigen Jingle zurück gibt.

-MAD
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ok habe es soweit geändert habe den Stream mit dem Transcoder neugestartet

das steht nun in der sc_trans.conf

Code:
2011-05-23 17:22:39	I	msg:<***>	Logger startup
2011-05-23 17:22:39	I	msg:<***>	version 0.2.0.0 build 0.0.25.0
2011-05-23 17:22:39	D	msg:<***>	
2011-05-23 17:22:39	W	msg:[conf] Invalid item on line 30
2011-05-23 17:22:39	W	msg:[conf] Invalid item on line 53
2011-05-23 17:22:39	E	msg:[calendarMgr] Could not load calendar file (calendar.xml) XML parser error: not well-formed (invalid token) at line 9
2011-05-23 17:22:39	I	msg:[VUPush] 0 VU images loaded
2011-05-23 17:22:39	I	msg:[VUPush] 0 VU images loaded
2011-05-23 17:22:39	I	msg:[playlistMgr] playlist load from file playlist.lst
2011-05-23 17:22:39	I	msg:[playlistMgr] Caching playlist playlist.lst
2011-05-23 17:22:39	I	msg:[playlistMgr] load complete
2011-05-23 17:22:39	I	msg:*******************************************************************************
2011-05-23 17:22:39	I	msg:** TRANScast Distributed Network Audio Content Provider
2011-05-23 17:22:39	I	msg:** Copyright (C) 2000 Nullsoft, Inc.  All Rights Reserved.
2011-05-23 17:22:39	I	msg:** Use "sc_trans filename.conf" to specify a config file.
2011-05-23 17:22:39	I	msg:*******************************************************************************
2011-05-23 17:22:39	I	msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.25.0  (Feb  3 2009) starting up...
2011-05-23 17:22:39	I	msg:[MAIN] PID: 18712
2011-05-23 17:22:39	I	msg:[MAIN] Loaded config from sc_trans.conf
2011-05-23 17:22:39	I	msg:[MAIN] Streaming thread starting
2011-05-23 17:22:39	I	msg:[resampler] deactivated 44100/2 == 44100/2
2011-05-23 17:22:39	I	msg:[MAIN] Encoder thread 0 starting
2011-05-23 17:22:39	I	msg:[MAIN] broadcast thread 0 starting
2011-05-23 17:22:39	I	msg:[mp3enc] 1775341732/44100/2/64000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2011-05-23 17:22:39	I	msg:Using internal encoder sample rate of 22050 Hz, bandwidth 10348 Hz, FIR low pass active

2011-05-23 17:22:39	I	msg:[mp3enc] 1775341732/44100/2/64000 mp3 setup complete
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 giving replay gain calculator a head start
2011-05-23 17:22:39	I	msg:[rgCalc] thread running
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 running
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 Creating stream socket
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 Connected to host server
2011-05-23 17:22:39	I	msg:[MAIN] Playlist decoder thread starting
2011-05-23 17:22:39	I	msg:[decode] giving replay gain calculator a head start
2011-05-23 17:22:39	I	msg:[decode] begin decoding
2011-05-23 17:22:39	I	msg:[decode] next file is /home/kd10424/streams/64/songs/01 Intro.mp3
2011-05-23 17:22:39	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-23 17:22:39	I	msg:[decode] 01 Intro.mp3::2806435::87.7011
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 Host server gave success (OK2)
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 Stream to 212.83.60.2 established
2011-05-23 17:22:39	I	msg:[STREAM] 1950434144 Sending stream information
2011-05-23 17:22:39	I	msg:[microServer] Listening for connection on port 16011
2011-05-23 17:22:39	I	msg:[MAIN] Broadcast Receiver thread starting
2011-05-23 17:22:43	I	msg:[shoutcastmetadata] Sending metadata
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hi,

kann er auch nicht, da die calendar.xml nicht geladen wird.
[...]
2011-05-23 17:22:39 W msg:[conf] Invalid item on line 30
2011-05-23 17:22:39 W msg:[conf] Invalid item on line 53
2011-05-23 17:22:39 E msg:[calendarMgr] Could not load calendar file (calendar.xml) XML parser error: not well-formed (invalid token) at line 9
[...]
Die ersten beiden Zeilen sagen dir, du hast einen Fehler in der config des sc_trans, genauer gesagt in den Zeilen 30 und 53
Die dritte Zeile sagt dir, das sc_trans die calendar.xml nicht geladen hat, da in Zeile 9 der calendar.xml ein Fehler vorliegt.

Wenn du die calendar.xml nutzt, die du im ersten Beitrag gepostet hast, is dieser Fehler auch klar.
... duration="00:05:00 timeoffset="00:00:00" ...
Du hast beide male die abschliessenden " hinter der Zeitangabe von duration vergessen ;)

-MAD
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ok danke habe es geändert nur trotzdem ladet er nur ein playlist die Kingle spielt er einfach nicht.

Logs einsicht
Code:
2011-05-24 09:28:03	I	msg:<***>	Logger startup
2011-05-24 09:28:03	I	msg:<***>	version 0.2.0.0 build 0.0.25.0
2011-05-24 09:28:03	D	msg:<***>	
2011-05-24 09:28:03	I	msg:[calendarMgr]  Adding DJ event  m_djName=dj  m_archive=0  m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:1414868563,mon:1432317541,mday:3681606,hour:1414868563,min:1432317541,sec:3681606,isdst:1414868563,wday:3681606,yday:1432317541 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
2011-05-24 09:28:03	I	msg:[calendarMgr]  Adding playlist event  m_playlist=jingles m_loopAtEnd=0 m_priority=2 m_shuffle=0  m_id=2 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:1432317541,mon:-1248852576,mday:-1248852588,hour:0,min:0,sec:0,isdst:1432317541,wday:1414868563,yday:3681606 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-24 09:28:03	I	msg:[calendarMgr]  Adding playlist event  m_playlist=jingles m_loopAtEnd=0 m_priority=2 m_shuffle=0  m_id=3 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:1432317541,mon:154564056,mday:154564044,hour:0,min:30,sec:0,isdst:1432317541,wday:1414868563,yday:3681606 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-24 09:28:03	I	msg:[VUPush] 0 VU images loaded
2011-05-24 09:28:03	I	msg:[VUPush] 0 VU images loaded
2011-05-24 09:28:03	I	msg:[playlistMgr] playlist load from file playlist.lst
2011-05-24 09:28:03	I	msg:[playlistMgr] Caching playlist playlist.lst
2011-05-24 09:28:03	I	msg:[playlistMgr] load complete
2011-05-24 09:28:03	I	msg:*******************************************************************************
2011-05-24 09:28:03	I	msg:** TRANScast Distributed Network Audio Content Provider
2011-05-24 09:28:03	I	msg:** Copyright (C) 2000 Nullsoft, Inc.  All Rights Reserved.
2011-05-24 09:28:03	I	msg:** Use "sc_trans filename.conf" to specify a config file.
2011-05-24 09:28:03	I	msg:*******************************************************************************
2011-05-24 09:28:03	I	msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.25.0  (Feb  3 2009) starting up...
2011-05-24 09:28:03	I	msg:[MAIN] PID: 8622
2011-05-24 09:28:03	I	msg:[MAIN] Loaded config from sc_trans.conf
2011-05-24 09:28:03	I	msg:[MAIN] Streaming thread starting
2011-05-24 09:28:03	I	msg:[resampler] deactivated 44100/2 == 44100/2
2011-05-24 09:28:03	I	msg:[MAIN] Encoder thread 0 starting
2011-05-24 09:28:03	I	msg:[mp3enc] 1770070599/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2011-05-24 09:28:03	I	msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, MDCT low pass active

mein sc_trans.conf

Code:
adminpassword=xpass12
adminuser=admin
aim= 
djlogin=dj
djpassword=xpass12
encoder=mp3
genre=Classical
icq= 
irc= 
outprotocol=1
password=xpass12
public=1
samplerate=44100
shuffle=1
streamtitle=Radio
streamurl=http://foobar.com
xfade=2
xfadethreshold=20
applyreplaygain=0
archive=playlists/archive
calculatereplaygain=0
capture=0
channels=2
;djbroadcasts=20
logfile=sc_trans.log
playlistfile_0=playlist.lst
playlists_0=playlists
playlistfilepath_0=/home/kd10424/streams/64/jingle.lst
playlistfilename_0=jingles
calendarrewrite=0
calendardebug=1
screenlog=0
bitrate=128000
serverip=meine IP
serverport=16000
adminport=16020
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Leider fehlt hier der entscheidende Punkt in Log, nämlich die Zeit ab 09:30:00. Da hätte man nämlich sehen können, warum der Jingle nicht gespielt wird.

So kann ich nur raten, warum der jingle nicht gespielt wird.
wie sieht denn die datei jingles.lst aus?

Zu deiner Konfig.
Du solltest dir mal anschauen, welche Paramater mulit- und welche einfache Konfigparameter sind.
playlists und playlistfile sind einfache
Code:
playlistfile=/path/to/playlist.lst
playlists=/path/to/playlists

encoder, serverip, serverport, password, bitrate, samplerate, channels usw. sind multi Paramaeter, die mehrfach vorkommen können. Diese sollten daher nummerriert werden.
Code:
encoder_0=...
serverip_0=...
serverport_0=...
usw.
Funktioniert zwar auch so, aber so ist es leichter, später einen zweiten encoder zuzufügen, z.B. ein lowquality stream für Modemuser.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ich weis net bin ich wirklich zu blöd :(

Ich bekomme es nicht hin er Spielt nur einer der Playlist entweder die jingle oder die playlist

hier meine sc_trans.conf
Code:
adminpassword=xpass12
adminuser=admin
aim= 
djlogin=dj
djpassword=xpass12
encoder_0=mp3
genre=Classical
icq= 
irc= 
outprotocol=1
password_0=xpass12
public=1
samplerate_0=44100
shuffle=1
streamtitle=Radio
streamurl=http://foobar.com
xfade=2
xfadethreshold=20
applyreplaygain=0
calculatereplaygain=0
capture=0
channels_0=2
;djbroadcasts=20
logfile=sc_trans.log


playlistfile_0=/home/kd10424/streams/64/playlists
playlistfile_0=/home/kd10424/streams/64/playlist.lst
playlistfile_1=/home/kd10424/streams/64/jingles
playlistfile_1=/home/kd10424/streams/64/jingles.lst
calendarrewrite=0
screenlog=0
bitrate_0=128000
serverip_0=meine ip
serverport_0=16000
adminport_0=16020

unlockkeyname=
unlockkeycode=

jetzt die log von der trans

Code:
2011-05-24 22:59:15	I	msg:<***>	Logger startup
2011-05-24 22:59:15	I	msg:<***>	version 0.2.0.0 build 0.0.40.0
2011-05-24 22:59:15	D	msg:<***>	
2011-05-24 22:59:15	I	msg:*******************************************************************************
2011-05-24 22:59:15	I	msg:** TRANScast Distributed Network Audio Content Provider
2011-05-24 22:59:15	I	msg:** Copyright (C) 2000-2010 Nullsoft, Inc.  All Rights Reserved.
2011-05-24 22:59:15	I	msg:** Use "sc_trans filename.conf" to specify a config file.
2011-05-24 22:59:15	I	msg:*******************************************************************************
2011-05-24 22:59:15	I	msg:[TRANSCast] DNAS/posix(linux) v 0.2.0.0 b 0.0.40.0  (Dec 12 2010) starting up...
2011-05-24 22:59:15	I	msg:[MAIN] PID: 25558
2011-05-24 22:59:15	I	msg:TimeMultiplier = 1  TimeShift = 0
2011-05-24 22:59:15	I	msg:[CALENDARMGR] Adding DJ event  m_djName=dj  m_archive=0  m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:138671968,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
2011-05-24 22:59:15	I	msg:[CALENDARMGR] Adding playlist event  m_playlist=jingles m_loopAtEnd=1 m_priority=2 m_shuffle=1  m_id=2 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:138670576,mon:138663960,mday:121,hour:0,min:0,sec:0,isdst:540097892,wday:-1,yday:1767861536 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-24 22:59:15	I	msg:[CALENDARMGR] Adding playlist event  m_playlist=jingles m_loopAtEnd=1 m_priority=2 m_shuffle=1  m_id=3 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:2037672306,mon:1869181552,mday:1600987185,hour:0,min:30,sec:0,isdst:1768762416,wday:1744843325,yday:980579695 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-24 22:59:15	I	msg:[VUPUSH] 0 VU images loaded
2011-05-24 22:59:15	I	msg:[VUPUSH] 0 VU images loaded
2011-05-24 22:59:15	I	msg:[PLAYLISTMGR] Playlist load from file /home/kd10424/streams/64/jingles.lst
2011-05-24 22:59:15	I	msg:[PLAYLISTMGR] Caching playlist /home/kd10424/streams/64/jingles.lst
2011-05-24 22:59:15	I	msg:[PLAYLISTMGR] Load complete
2011-05-24 22:59:15	I	msg:[SOURCERELAY] Thread starting
2011-05-24 22:59:15	I	msg:[MAIN] Loaded config from sc_trans.conf
2011-05-24 22:59:15	I	msg:[MAIN] Streaming thread starting
2011-05-24 22:59:15	I	msg:[resampler] deactivated 44100/2 == 44100/2
2011-05-24 22:59:15	I	msg:[SOURCEANDENDPOINTMANAGER] Encoder thread 0 starting
2011-05-24 22:59:15	I	msg:[MP3ENC] 812055361/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2011-05-24 22:59:15	I	msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, MDCT low pass active

2011-05-24 22:59:15	I	msg:[MP3ENC] 812055361/44100/2/128000 mp3 setup complete
2011-05-24 22:59:15	I	msg:[SOURCEANDENDPOINTMANAGER] Broadcast thread 0 starting
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 giving replay gain calculator a head start
2011-05-24 22:59:15	I	msg:[RGCALC] Thread running
2011-05-24 22:59:15	I	msg:[MAIN] Playlist decoder thread starting
2011-05-24 22:59:15	I	msg:[DECODE] Giving replay gain calculator a head start
2011-05-24 22:59:15	I	msg:[DECODE] Begin decoding
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 running
2011-05-24 22:59:15	I	msg:[DECODE] Next file is /home/kd10424/streams/64/songs/01 Intro.mp3
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 Creating stream socket
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 Connected to host server
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 Host server gave success (OK2)
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 Stream to 212.83.60.2 established
2011-05-24 22:59:15	I	msg:[STREAM] 1180344454 Sending stream information
2011-05-24 22:59:15	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 22:59:15	I	msg:[DECODE] 01 Intro.mp3::2806435::87.7011
2011-05-24 22:59:15	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 22:59:15	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 22:59:15	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 22:59:15	E	msg:Failure converting filename to metadata Premature end of data (*/%TIT2.*)
2011-05-24 22:59:16	I	msg:[SHOUTCASTMETADATA] Metadata string [Bushido - Jenseits Von Gut Und Böse - Intro]
2011-05-24 22:59:16	I	msg:[SHOUTCASTMETADATA] Sending metadata
2011-05-24 23:00:00	I	msg:[PLAYLISTMGR] Playlist load from file /home/kd10424/streams/64/jingles.lst
2011-05-24 23:00:00	I	msg:[PLAYLISTMGR] Loading playlist from cache
2011-05-24 23:00:24	I	msg:[MP3 DECODE] 2081651903 eof
2011-05-24 23:00:25	I	msg:[DECODE] Next file is /home/kd10424/streams/64/songs/01 Intro.mp3
2011-05-24 23:00:25	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:00:25	I	msg:[DECODE] 01 Intro.mp3::2806435::87.7011
2011-05-24 23:00:25	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:00:25	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:00:25	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:00:25	E	msg:Failure converting filename to metadata Premature end of data (*/%TIT2.*)
2011-05-24 23:00:44	I	msg:[SHOUTCASTMETADATA] Metadata string [Bushido - Jenseits Von Gut Und Böse - Intro]
2011-05-24 23:00:44	I	msg:[SHOUTCASTMETADATA] Sending metadata
2011-05-24 23:01:50	I	msg:[MP3 DECODE] 1412909204 eof
2011-05-24 23:01:50	I	msg:[DECODE] Next file is /home/kd10424/streams/64/songs/01 Intro.mp3
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:01:50	I	msg:[DECODE] 01 Intro.mp3::2806435::87.7011
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:01:50	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:02:09	I	msg:[SHOUTCASTMETADATA] Metadata string [Bushido - Jenseits Von Gut Und Böse - Intro]
2011-05-24 23:02:09	I	msg:[SHOUTCASTMETADATA] Sending metadata
2011-05-24 23:03:16	I	msg:[MP3 DECODE] 585774324 eof
2011-05-24 23:03:16	I	msg:[DECODE] Next file is /home/kd10424/streams/64/songs/01 Intro.mp3
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:16	I	msg:[DECODE] 01 Intro.mp3::2806435::87.7011
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:16	I	msg:[ID3V2] version 3.0 tagsize=2038 unsync=0 xheader=0
2011-05-24 23:03:36	I	msg:[SHOUTCASTMETADATA] Metadata string [Bushido - Jenseits Von Gut Und Böse - Intro]
2011-05-24 23:03:36	I	msg:[SHOUTCASTMETADATA] Sending metadata

hier die calendar.xml

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">dj</dj>
<calendar  starttime="00:00:00" />
</event>
<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="2" >jingles</playlist>
<calendar starttime="01:00:00"  duration="00:05:00" timeoffset="00:00:00" repeat="128" />
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="2" >jingles</playlist>
<calendar starttime="01:00:00"  duration="00:05:00" timeoffset="00:30:00" repeat="128" />
</event>

</eventlist>

kann mir jemand ein fertige config geben wurd das auch bezahlen.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hi,

irgendwie wirfst du ein paar parameter durcheinander

playlistfile=/path/to/mainlist.lst
Gibt den Pfad zur Standardplaylist an

playlists=/path/to/prio/playlist/
Pfad in dem Playlisten gespeichert werden die über das API erzeugt wurden

playlistfilename_x=jingles
Name der Playlist x (identisch mit dem namen der Playlist in calendar.xml)

playlistfilepath_x=/path/to/playlist_x.lst
Pfad zur Playlistdatei x

Pfade anpassen!!!! sc_trans muss Lese-/Schreibrechte für die Pfade haben
Code:
; API
;====================
adminuser=admin
adminpassword=xpass12
adminport_0=16020

; Logging / Filepath
;====================
screenlog=0
logfile=/path/to/logs/sc_trans.log
calendarfile=/path/to/calendar.xml
calendarrewrite=0

; MP3 License
;====================
unlockkeyname=
unlockkeycode= 

; Encoder 1
;====================
endpointname_0=Encoder_1
encoder_0=mp3
bitrate_0=128000
samplerate_0=44100
mp3quality_0=1
mp3mode_0=0

; Streamserver 1
;====================
outprotocol_0=1
password_0=xpass12
serverip_0=meine ip
serverport_0=16000

; Metadaten
;====================
streamtitle=Radio
streamurl=http://foobar.com
genre=Classical
aim=
icq=
irc=
public=1

; Playlists
;====================
playlists=/path/to/prio/playlists/
playlistfile=/home/kd10424/streams/64/playlist.lst
playlistfilename_0=jingles
playlistfilepath_0=/home/kd10424/streams/64/jingles.lst

shuffle=1
xfade=2
xfadethreshold=20
applyreplaygain=0
calculatereplaygain=0

; DJ Login
;====================
djlogin=dj
djpassword=xpass12

capture=0
djbroadcasts=/path/to/archive/

Dein sc_trans läd die jingel Playliste
2011-05-24 23:00:00 I msg:[PLAYLISTMGR] Playlist load from file /home/kd10424/streams/64/jingles.lst
2011-05-24 23:00:00 I msg:[PLAYLISTMGR] Loading playlist from cache
spielt den jingle jedoch nicht ab. Entweder ist die Datei jingles.lst leer, oder aber die mp3, die dort eingetragen ist, wird nicht gefunden.
Du kannst in der Konfig playlistdebug=1 eintragen, dann sollte er dir im Logfile sagen, warum der jingle nicht abgespielt wird.

Ein Playlistfile sollte so aussehen:
Code:
/path/to/music/erste.mp3
/path/to/music/zweite.mp3
[...]
/path/to/nth.mp3

Wenn nur eine einzige Datei in der Playliste steht, sollte eine Leerzeile folgen.
Code:
Zeile 1: /path/to/jingle.mp3
Zeile 2:
(Natürlich OHNE Zeile x:)
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ich drehe durch habe alles umgesetzt er spilt keine Jingles vorallem versucht er ein playlist zu laden die es einfach nicht gibt aber ich habe nirgend solche Pfade drin

Code:
2011-05-26 10:12:57	I	msg:<***>	Logger startup
2011-05-26 10:12:57	I	msg:<***>	version 0.2.0.0 build 0.0.39.0
2011-05-26 10:12:57	D	msg:<***>	
2011-05-26 10:12:57	I	msg:TimeMultiplier = 1  TimeShift = 0
2011-05-26 10:12:57	I	msg:[calendarMgr]  Adding DJ event  m_djName=dj  m_archive=0  m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:3681606,mon:1414868563,mday:1432317541,hour:3681606,min:1414868563,sec:1432317541,isdst:3681606,wday:1432317541,yday:1414868563 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
2011-05-26 10:12:57	I	msg:[calendarMgr]  Adding playlist event  m_playlist=jingles m_loopAtEnd=1 m_priority=2 m_shuffle=1  m_id=2 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:1432317541,mon:155325416,mday:155325404,hour:0,min:0,sec:0,isdst:1432317541,wday:1414868563,yday:3681606 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-26 10:12:57	I	msg:[calendarMgr]  Adding playlist event  m_playlist=jingles m_loopAtEnd=1 m_priority=2 m_shuffle=1  m_id=3 m_startDate=year:0,mon:0,mday:0,hour:1,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=300 m_timeOffset=year:1432317541,mon:155107248,mday:155107236,hour:0,min:30,sec:0,isdst:1432317541,wday:1414868563,yday:3681606 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=1 m_hasTimeOffset=1 m_repeat=128
2011-05-26 10:12:57	I	msg:[VUPush] 0 VU images loaded
2011-05-26 10:12:57	I	msg:[VUPush] 0 VU images loaded
2011-05-26 10:12:57	D	msg:[playlistMgr] Registering playlist playlist:/home/kd10424/streams/64/playlists/playlist.lst : 0
2011-05-26 10:12:57	D	msg:[playlistMgr] Playlist registry
name:playlist path:/home/kd10424/streams/64/playlists/playlist.lst

2011-05-26 10:12:57	D	msg:[playlistMgr] Activating playlist playlist id=-1 loop=1 prior=0 shuffle=1 dur=0 curt=0
2011-05-26 10:12:57	I	msg:[playlistMgr] playlist load from file /home/kd10424/streams/64/playlists/playlist.lst
2011-05-26 10:12:57	D	msg:[playlistMgr] root path is /home/kd10424/streams/64/playlists/
2011-05-26 10:12:57	D	msg:[playlistMgr] new entry /home/kd10424/streams/64/songs/101_darius_and_finlay_-_till_morning_(dan_winter_remix).mp3
2011-05-26 10:12:57	I	msg:[playlistMgr] Caching playlist /home/kd10424/streams/64/playlists/playlist.lst
2011-05-26 10:12:57	I	msg:[playlistMgr] load complete
2011-05-26 10:12:57	D	msg:[playlistMgr] Playlist queue:
 name:playlist priority:0 loop:1 shuffle:1 id:-1 stop:0

2011-05-26 10:12:57	I	msg:[sourceRelay] Thread starting
2011-05-26 10:12:57	I	msg:*******************************************************************************
2011-05-26 10:12:57	I	msg:** TRANScast Distributed Network Audio Content Provider
2011-05-26 10:12:57	I	msg:** Copyright (C) 2000 Nullsoft, Inc.  All Rights Reserved.
2011-05-26 10:12:57	I	msg:** Use "sc_trans filename.conf" to specify a config file.
2011-05-26 10:12:57	I	msg:*******************************************************************************
2011-05-26 10:12:57	I	msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.39.0  (Feb 22 2010) starting up...
2011-05-26 10:12:57	I	msg:[MAIN] PID: 13768
2011-05-26 10:12:57	I	msg:[MAIN] Loaded config from sc_trans.conf
2011-05-26 10:12:57	I	msg:[MAIN] Streaming thread starting
2011-05-26 10:12:57	I	msg:[resampler] deactivated 44100/2 == 44100/2
2011-05-26 10:12:57	I	msg:[sourceAndEndpointManager] Encoder thread 0 starting
2011-05-26 10:12:57	I	msg:[mp3enc] 1746252710/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2011-05-26 10:12:57	I	msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, FIR low pass active

2011-05-26 10:12:57	I	msg:[mp3enc] 1746252710/44100/2/128000 mp3 setup complete
2011-05-26 10:12:57	I	msg:[sourceAndEndpointManager] broadcast thread 0 starting
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 giving replay gain calculator a head start
2011-05-26 10:12:57	I	msg:[rgCalc] thread running
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 running
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 Creating stream socket
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 Connected to host server
2011-05-26 10:12:57	I	msg:[MAIN] Playlist decoder thread starting
2011-05-26 10:12:57	I	msg:[decode] giving replay gain calculator a head start
2011-05-26 10:12:57	I	msg:[decode] begin decoding
2011-05-26 10:12:57	D	msg:[playlistMgr] priority playlist found - /home/kd10424/streams/64/playlists/playlist.lst
2011-05-26 10:12:57	D	msg:[playlistMgr] installing priority playlist /export/home/friends/playlist/archived/playlist.lst
2011-05-26 10:12:57	D	msg:[playlistMgr] Registering playlist playlist_834345589:/export/home/friends/playlist/archived/playlist.lst : 0
2011-05-26 10:12:57	D	msg:[playlistMgr] Playlist registry
name:jingles path:/home/kd10424/streams/64/playlists/jingles.lst
name:playlist path:/home/kd10424/streams/64/playlists/playlist.lst
name:playlist_834345589 path:/export/home/friends/playlist/archived/playlist.lst

2011-05-26 10:12:57	D	msg:[playlistMgr] Activating playlist playlist_834345589 id=-2 loop=0 prior=101 shuffle=0 dur=0 curt=0
2011-05-26 10:12:57	I	msg:[playlistMgr] playlist load from file /export/home/friends/playlist/archived/playlist.lst
2011-05-26 10:12:57	D	msg:[playlistMgr] root path is /export/home/friends/playlist/archived/
2011-05-26 10:12:57	E	msg:[playlistMgr] Could not activate playlist playlist_834345589 because No playlist file found /export/home/friends/playlist/archived/playlist.lst
2011-05-26 10:12:57	D	msg:[playlistMgr] Playlist queue:
 name:playlist priority:0 loop:1 shuffle:1 id:-1 stop:0

2011-05-26 10:12:57	I	msg:[decode] next file is /home/kd10424/streams/64/songs/101_darius_and_finlay_-_till_morning_(dan_winter_remix).mp3
2011-05-26 10:12:57	I	msg:[ID3V2] version 3.0 tagsize=277 unsync=0 xheader=0
2011-05-26 10:12:57	I	msg:[decode] 101_darius_and_finlay_-_till_morning_(dan_winter_remix).mp3::9337335::233.433
2011-05-26 10:12:57	I	msg:[ID3V2] version 3.0 tagsize=277 unsync=0 xheader=0
2011-05-26 10:12:57	I	msg:[ID3V2] version 3.0 tagsize=277 unsync=0 xheader=0
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 Host server gave success (OK2)
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 Stream to 212.83.60.2 established
2011-05-26 10:12:57	I	msg:[STREAM] 306115001 Sending stream information
2011-05-26 10:12:57	I	msg:[ID3V2] version 3.0 tagsize=277 unsync=0 xheader=0
2011-05-26 10:12:57	E	msg:Failure converting filename to metadata Premature end of data (*/%TIT2.*)
2011-05-26 10:12:58	I	msg:[shoutcastmetadata]  metadata string [Darius & Finlay - Future Trance Vol. 55 - Till Morning (Dan Winter Remix)]
2011-05-26 10:12:58	I	msg:[shoutcastmetadata] Sending metadata

ich weis nicht woher er das hier nimmt

Code:
2011-05-26 09:51:07	I	msg:[playlistMgr] playlist load from file /export/home/friends/playlist/archived/playlist.lst
2011-05-26 09:51:07	D	msg:[playlistMgr] root path is /export/home/friends/playlist/archived/

das ist meine sc trans jetzt

Code:
; API
;====================
adminuser=admin
adminpassword=xpass12
adminport_0=16020

; Logging / Filepath
;====================
screenlog=0
logfile=/home/kd10424/streams/64/logs/sc_trans.log
calendarfile=/home/kd10424/streams/64/calendar/calendar.xml
calendarrewrite=0

; MP3 License
;====================
unlockkeyname=xxxxxxxxxxxxx
unlockkeycode=xxxxxxxxxxxx

; Encoder 1
;====================
endpointname_0=Encoder_1
encoder_0=mp3
bitrate_0=128000
samplerate_0=44100
mp3quality_0=1
mp3mode_0=0

; Streamserver 1
;====================
outprotocol_0=1
password_0=xpass12
serverip_0=212.83.60.2
serverport_0=16000

; Metadaten
;====================
streamtitle=Radio
streamurl=http://foobar.com
genre=Classical
aim=
icq=
irc=
public=1

; Playlists
;====================
playlists=/home/kd10424/streams/64/playlists/
playlistfile=/home/kd10424/streams/64/playlists/playlist.lst
playlistfilename_0=jingles
playlistfilepath_0=/home/kd10424/streams/64/playlists/jingles.lst
playlistdebug=1
shuffle=1
xfade=2
xfadethreshold=20
applyreplaygain=0
calculatereplaygain=0

; DJ Login
;====================
djlogin=dj
djpassword=xpass12

capture=0
djbroadcasts=/home/kd10424/streams/64/archive/


das ist meine jingles.Ist

Code:
/home/kd10424/streams/64/songs/01 Intro.mp3

das meine normale playlist.Ist

Code:
/home/kd10424/streams/64/songs/101_darius_and_finlay_-_till_morning_(dan_winter_remix).mp3

ich drehe am Rat
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hinweis: Ich habe gerade zahlreiche Beiträge hinsichtlich ihrer Formatierung geändert. Weitere Postings, in denen meterlange Daten(müll)kolonnen als Zitat anstatt als Code eingegeben und in denen es versäumt wird, die Smilies zu deaktivieren, werde ich mangels weiterer Editierbereitschaft kommentar- und restlos löschen.
 
AW: AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Leider hatte ich beim antworten keine Funktion code.
In Deinem Eröffnungspost ...
http://www.radioforen.de/showthread...gles-abspielen&p=561794&viewfull=1#post561794
... offenbar aber schon, denn da hat kein Moderator hinter Dir her editieren müssen.
Ich kann beim antworten die Code-Funktion nutzen, allerdings schaue ich mir meine Beiträge vorher auch an. Täte Deinen Beiträgen vielleicht auch ganz gut.

Beispiel:

Code:
Das ist ein in "Code" (#) formatierter Code.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

@ privat
leider fehlen mal wieder die logeinträge zur vollen bzw. halben Stunde. Ebenso der Eintrag
Code:
calendardebug=1
in der config.
Woher er die Prio-List nimmt weiss ich nicht, da ich nicht weiss wie du den sc_trans neu startest. Jenachdem welches Signal du an den schickst, ist es möglich das er zwar die config neu einliest, jedoch Teile der alten config beibehält.
Notfalls den sc_trans mit
Code:
killall -9 sc_trans
killen, neu starten und den logauszug zur vollen, bez. halben Stunde posten.


-MAD
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ok habe jetzt die logs zur halben Stunde

Code:
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=1 is active. running deactivation check
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 is not active. running activation check.
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 start date range is ok
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 end date range is ok
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 is a time periodic event
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 time periodic event day of week matches
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=2 is not active. Checking for removal
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=3 is active. running deactivation check
2011-05-26 22:35:01	D	msg:[CALENDARMGR] id=3 Deactivating. duration exceeded
2011-05-26 22:35:01	I	msg:[PLAYLISTMGR] Deactivating playlist=jingles id=3
2011-05-26 22:35:01	D	msg:[PLAYLISTMGR] 
 name:playlist_293532057 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_347109238 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_414844347 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_1134099651 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_2035779315 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_349339605 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_283783399 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist_15111848 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:playlist priority:0 loop:1 shuffle:1 id:-1 stop:0

Ansonsten habe ich alles so eingebaut wie Sie es mir gesagt haben.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Danke für die Hilfe hier die Jingles Spielen nun.
Ist es auch möglich das er ein Random bei den Jingles macht?
Kann man über die calendar auch den Transcoder so steuern das der Transcoder abends um 24 Uhr aufhöhrt zu Spielen und um 12 Uhr Mittags wieder anfängt?
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hi,

wenn du die aktuelle Version des sc_trans hast, dann ja. Hier kannst du in dem Playlistfile ein Script angeben, welches dann den Pfad zu einem Jingle ausgibt.

Schau mal HIER

Für dich sind hier nur Punkt 1. und 2. nötig, da deine Jingles ja bereits laufen.

Wenn der sc_trans nur von 12:00 bis 00:00 laufen soll wirst du dies nur mit einem Cronjob hinbekommen.

Crontab Beispiel
Code:
# sc_trans täglich um 12:00 uhr starten
0 12 * * * /path/to/sc_trans /path/to/sc_trans.conf >/dev/null 2>&1

# sc_trans täglich um 00:00 Uhr stoppen
0 0 * * * killall -9 sc_trans >/dev/null 2>&1

Eleganter wäre natürlich ein shellscript zum starten/stopen des sc_trans, welches per cronjob ausgeführt wird.

-MAD
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Danke habe es gerade umgesetzt mal schauen ob es so klappt.
Eine kleine frage ist es möglich wenn man an den Transcoder sendet das er auch dann zu halben und zur vollen stunden die jingles spielt praktisch für die Zeit den DJ unterbricht.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Code:
2011-05-27 15:00:00	D	msg:[PLAYLISTMGR] Activating playlist=jingles id=2 loop=0 prior=2 shuffle=0 dur=300 curt=1306501200
2011-05-27 15:00:00	I	msg:[PLAYLISTMGR] Playlist load from file /home/kd10424/streams/64/jingles.lst
2011-05-27 15:00:00	D	msg:[PLAYLISTMGR] Root path is /home/kd10424/streams/64/
2011-05-27 15:00:00	D	msg:[PLAYLISTMGR] Remote application entry
2011-05-27 15:00:00	D	msg:[PLAYLISTMGR] #!/usr/bin/php /home/kd10424/streams/64/random.php
2011-05-27 15:00:00	I	msg:[PLAYLISTMGR] Load complete
2011-05-27 15:00:00	D	msg:[PLAYLISTMGR] Playlist queue:
 name:playlist_1779697048 priority:101 loop:0 shuffle:0 id:-2 stop:0
 name:jingles priority:2 loop:0 shuffle:0 id:2 stop:1306501500
 name:playlist priority:0 loop:1 shuffle:1 id:-1 stop:0

mit der php Datei spielt er dann keine Jingles ab.
Muss ich hierführ noch was auf dem Server installieren
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hi,

nein eine moderierte Sendung hat IMMER vorrang vor dem autodj. Es ist also nicht möglich, das sc_trans den Moderator unterbricht um den Jingle zu spielen. Da wirst du deine Mods schon anhalten müssen, das sie die Jingles in ihre Sendung einbauen.

Hast du in der php Datei die Zeile
Code:
$path = '/home/stream/Music/Jingle/';
angepasst? Dort muss der komplette Pfad zum Verzeichnis, in dem die Jingles liegen, angegeben werden, z.B.
Code:
$path = '/home/kd10424/streams/64/jingles/';
wenn sich die jingles in /home/kd10424/streams/64/ befinden.

Du kannst ganz leicht testen, ob dir das Script funktioniert. Auf der Shell einfach eingeben
Code:
php random.php
Wenn der Pfad stimmt, soltest du etwas wie dies sehen:
stream@radio-***:~$ php random.php
/home/stream/jukebox/music/jingles/Radio-***-Jingle_3.mp3

Eventuell musst du die Datei auch ausführbar machen.
Code:
chmod 0711 /home/kd10424/streams/64/random.php
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ja habe ich nur ich habe die Rechte 777 vergeben.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

ok kommt folgendes

Code:
-bash: php: command not found
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Hast du kein php auf deinem Server installiert?

Gib mal auf der shell ein
Code:
which php
Sollte dir, falls php installiert ist den Pfad zu php ausgeben, z.b. /usr/bin/php
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Ok das hat gefehlt

Code:
apt-get install php5-cli
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

Na ja, extra php dafür zu installieren, wenns sonst nicht benötigt wird? *grins*
Liesse sich sicher auch mit einem Perl- oder Bash-Script lösen, allerdings kann ich da nicht weiterhelfen.
 
AW: Shoutcast 1.9.8 mit Transcoder 2 beta 6: Jingles abspielen?

hmm er spielt die nicht ab wenn ich per SSH php random.php eingebe kommt das hier

Code:
 php random.php
/home/kd10424/streams/64/jingles/Intro2.mp3cx1029:/home/kd10424/streams/64#

in der Log steht das hier

Code:
2011-05-27 18:00:00	D	msg:[CALENDARMGR] timeSlice
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=1 is active. running deactivation check
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 is not active. running activation check.
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 start date range is ok
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 end date range is ok
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 is a time periodic event
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 time periodic event day of week matches
2011-05-27 18:00:00	D	msg:[CALENDARMGR] id=2 time periodic event activating.
2011-05-27 18:00:00	D	msg:[PLAYLISTMGR] Activating playlist=jingles id=2 loop=0 prior=2 shuffle=1 dur=300 curt=1306512000
2011-05-27 18:00:00	I	msg:[PLAYLISTMGR] Playlist load from file /home/kd10424/streams/64/jingles.lst
2011-05-27 18:00:00	D	msg:[PLAYLISTMGR] Root path is /home/kd10424/streams/64/
2011-05-27 18:00:00	D	msg:[PLAYLISTMGR] Remote application entry
2011-05-27 18:00:00	D	msg:[PLAYLISTMGR] #!/usr/bin/php /home/stream/random.php
2011-05-27 18:00:00	I	msg:[PLAYLISTMGR] Load complete
2011-05-27 18:00:00	D	msg:[PLAYLISTMGR] Playlist queue:
 name:jingles priority:2 loop:0 shuffle:1 id:2 stop:1306512300
 name:playlist priority:0 loop:1 shuffle:1 id:-1 stop:0
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben