Old 25th January 2011, 14:16   #1
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Calendar.xml help plz

Ok here is what I am trying to do. I want to be able to have a playlist on for say1hour every 4 hours how do I do this. I have read the forum posts ect.. but still abit unsure here is my xml.

Quote:
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Calendar configuration file built with the SHOUTcast 2 Configuration Builder
-->
- <eventlist>
- <event type="playlist">
<playlist loopatend="0" shuffle="0" priority="1">bennyl.m3u</playlist>
<calendar repeat="129" starttime="2:00" duration="1:02" />
</event>
- <event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2">Off line playlist</playlist>
<calendar />
</event>
- <event type="dj">
<dj archive="inherit">daverogers</dj>
<calendar />
</event>
</eventlist>
So bennyl will play every2hours for 1hr 2min is this correct? Is there an api for the calendar?
Also on the test ui my staart times do not show.
Is there a way to update the sc_trans without disrupting the stream and it adding the info to the xml at the same time. I noticed if I add an event via testui it adds it to the sc trans but not to the xml
manythanks
daverogers is offline   Reply With Quote
Old 25th January 2011, 14:23   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
the times aren't in the correct format, have a check of http://dev.winamp.com/wiki/SHOUTcast...n#Calendar_Tag for the format it needs to be in (handling is pretty strict which is most likely why it's not working in testui).

there is an api to control this which is all in the testui code or via the ajax api details on the wiki / in the sc_trans docs from your install (assuming you're using build 40).

as long as what is being played then that should play for the desired time. however, playlist events are queued up so if the current playlist goes over that time then it'll take until the end of the currently playing song for the event to take effect - this may change in a newer version of sc_trans but i'm not sure at the moment.

-daz
DrO is offline   Reply With Quote
Old 25th January 2011, 16:39   #3
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Quote:
Originally Posted by DrO View Post
the times aren't in the correct format, have a check of http://dev.winamp.com/wiki/SHOUTcast...n#Calendar_Tag for the format it needs to be in (handling is pretty strict which is most likely why it's not working in testui).
I used BP config builder for that.
Quote:
there is an api to control this which is all in the testui code or via the ajax api details on the wiki / in the sc_trans docs from your install (assuming you're using build 40).
I am using that build. But when I create a new calendar event it adds it to sc trans I can see that on the cprompt but it does not write to the xml file any ideas?

thanks again

DR

One more thing is 1 the highest prority?
daverogers is offline   Reply With Quote
Old 25th January 2011, 16:54   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
with the times, the help information shown does mention the format it needs to be saved in. as config_builder is only using what has been entered as it is currently designed it will cause such and issue. will try to get something done with future versions to resolve this in addition to general sc_trans updates.

the xml will only be re-written if calendarrewrite=1 is set in the config file (config_builder does the opposite of the sc_trans default).

priority 1 is the lowest priority, so for something to be prioritised it needs to be higher than one.

-daz
DrO is offline   Reply With Quote
Old 25th January 2011, 17:05   #5
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Sweet thanks mate. The times do show up in the testui now.
daverogers is offline   Reply With Quote
Old 25th January 2011, 17:42   #6
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
On the calendar do I need to specify file extention for playlist name?
daverogers is offline   Reply With Quote
Old 25th January 2011, 17:45   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
the playlist event uses the symbolic name of the playlist and not the actual playlist file i.e. it'll be what is set for playlistfilename (is mentioned in the help docs and in the config_builder help).

-daz
DrO is offline   Reply With Quote
Old 25th January 2011, 17:59   #8
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
got it me being stupid
daverogers is offline   Reply With Quote
Old 25th January 2011, 18:13   #9
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
whats this all about
Attached Files
File Type: txt log.txt (5.4 KB, 165 views)
daverogers is offline   Reply With Quote
Old 25th January 2011, 18:35   #10
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
k its not loading playlist over and over now but still cant get it to load the bennyl one on the specific time.

Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="playlist">
<playlist loopatend="1" shuffle="0" priority="1" >off line playlist</playlist>
<calendar starttime="00:00:00" />
</event>
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2" >bennyl</playlist>
<calendar starttime="02:30:00" duration="01:02:52" repeat="128" />
</event>
<event type="dj">
<dj archive="inherit">daverogers</dj>
<calendar starttime="00:00:00" />
</event>
</eventlist>
daverogers is offline   Reply With Quote
Old 25th January 2011, 19:33   #11
DrO
 
Join Date: Sep 2003
Posts: 27,873
might be an idea to add calendardebug=1 to your config file to see what sc_trans is trying to do with the events (has been a while since i've played with it myself so memory is a bit fuzzy on what would be going on).

-daz
DrO is offline   Reply With Quote
Old 25th January 2011, 20:41   #12
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
I have come up with this error
Quote:
could not activate playlist bennyl because not registered
daverogers is offline   Reply With Quote
Old 25th January 2011, 20:48   #13
DrO
 
Join Date: Sep 2003
Posts: 27,873
make sure you've specified a playlistfilename and playlistfilepath pair for that playlist and that the _x id on them is the same if they are in there.

-daz
DrO is offline   Reply With Quote
Old 26th January 2011, 06:12   #14
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
calendar xml
Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2" >bennyl</playlist>
<calendar starttime="02:30:00" duration="01:02:52" repeat="128" />
</event>
</eventlist>
here is config
Quote:
playlistfilename_0=Benny L
playlistfilepath_0=C:\DNAS\sc_trans\playlist\bennyl.m3u
daverogers is offline   Reply With Quote
Old 26th January 2011, 10:37   #15
DrO
 
Join Date: Sep 2003
Posts: 27,873
it's because you've set the xml to look for 'bennyl' when you've named the playlist 'Benny L'. i guess i'll be tinkering with the docs to try to make it clearer that it needs to be exactly what is set for the 'playlistfilename' entry. or did you make that with the config_builder as well or manually?

-daz
DrO is offline   Reply With Quote
Old 26th January 2011, 15:40   #16
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
with config builder
daverogers is offline   Reply With Quote
Old 26th January 2011, 15:46   #17
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
When you made the playlist entry in the config builder did you also use the "Calendar" button or did you add the calendar event in the config builder manually?

[EDIT /]
I just noticed something:
code:
<playlist loopatend="1" shuffle="inherit" priority="2" >bennyl</playlist>

There's a superfluous space between the priority config option and the token terminating character. Config builder doesn't do that.
thinktink is offline   Reply With Quote
Old 26th January 2011, 16:01   #18
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
Here's the relevant config builder output for the settings you've got;




sc_trans.conf
code:
playlistfilename_0=Benny L
playlistfilepath_0=C:\DNAS\sc_trans\playlist\bennyl.m3u




calendar.xml:
code:
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2">
Benny L
</playlist>
<calendar
repeat="128"
starttime="02:30:00"
duration="01:02:52"
/>
</event>



I dunno if anybody has mentioned this or not but if you're using an M3U file make sure the M3U file name paths are absolute or are relative to the sc_trans instance (I think.)
thinktink is offline   Reply With Quote
Old 26th January 2011, 18:09   #19
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Quote:
Originally Posted by thinktink View Post
When you made the playlist entry in the config builder did you also use the "Calendar" button or did you add the calendar event in the config builder manually?

[EDIT /]
I just noticed something:
code:
<playlist loopatend="1" shuffle="inherit" priority="2" >bennyl</playlist>

There's a superfluous space between the priority config option and the token terminating character. Config builder doesn't do that.
I definatly used config builder to make this event. But saying that I may have also deleted and remade it via sc_trans test ui HMmm my mind eludes me now :/

Quote:
Originally Posted by thinktink View Post

I dunno if anybody has mentioned this or not but if you're using an M3U file make sure the M3U file name paths are absolute or are relative to the sc_trans instance (I think.)
Yea I use a m3u playlist file already that works its only when adding another to the list its not working but I am going to redo the calendar via the config builder again and start over .

maythanks guys
daverogers is offline   Reply With Quote
Old 27th January 2011, 21:44   #20
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
ok its pulling thelist now all good. Now the set up I got now the "offline" playlist plays whenever there is no schedual to play. The "bennyl" is to Play every 2 hours for 1hr 2 min so my question is this correct for the setup?


Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!--Calendar configuration file built with the SHOUTcast 2 Configuration Builder-->
<eventlist>
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
bennyl
</playlist>
<calendar
repeat="128"
starttime="2:00:00"
duration="1:02:00"
/>
</event>
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
offline
</playlist>
<calendar />
</event>
</eventlist>
daverogers is offline   Reply With Quote
Old 28th January 2011, 00:19   #21
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
Seems ok, just double check to make sure your shuffle and loop are what you wanted. I only mention the double check because on some posts back you had some different values.

Don't forget your DJ entry (if you still wanted the DJ) in the calendar.
thinktink is offline   Reply With Quote
Old 2nd February 2011, 21:38   #22
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Ok lads here is teh set up I have settled on.

The Problem is some of the playlists are not loading and the backup playlilst just coninues playing. Any ideas?
Attached Files
File Type: txt calendar.txt (3.9 KB, 186 views)
daverogers is offline   Reply With Quote
Old 2nd February 2011, 22:30   #23
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
Can you post the portion of the sc_trans configs that show the named playlists?
thinktink is offline   Reply With Quote
Old 3rd February 2011, 06:12   #24
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Sure
Quote:
playlistfilename_0=bennyl
playlistfilepath_0=C:\DNAS\sc_trans\playlist\bennyl.m3u

playlistfilename_1=disney jan 11
playlistfilepath_1=C:\DNAS\sc_trans\playlist\billy disney jan 11.m3u

playlistfilename_2=fajita
playlistfilepath_2=C:\DNAS\sc_trans\playlist\fajita.m3u

playlistfilename_3=tech breakfast
playlistfilepath_3=C:\DNAS\sc_trans\playlist\techno breakfast.m3u
Thanks
daverogers is offline   Reply With Quote
Old 3rd February 2011, 15:13   #25
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
The first playlist event entry you have has a start time of "24:00:00". I don't know if sc_trans is interpreting that the way you want or not. Since there is no 25th hour of the day in actuality might want to go ahead and change that to "00:00:00" anyway.

I examined your playlist paths and noticed that the final folder name you've specified for the playlist locations happen to match the Priority Playlists Folder default setting in the config_builder. Whether or not it's the actual same path you've got setup or not I can't tell. The priority playlists folder is not the ideal place to put static playlists because sc_trans uses that folder and when it processes a playlist in that folder it removes the playlist file and puts it into the configuration specified archive folder. Double check your playlists and make sure they still exist. If they do, move them to a different location and then, of course, update the configuration to reflect the changes.

If these two suggestions fail to provide the desired results, reopen your config_builder settings, go to the Transcoder Debug Logging options and enable Playlist Debug and Calendar Debug and resave your configurations, then attach your Transcoder logs here.
thinktink is offline   Reply With Quote
Old 3rd February 2011, 16:42   #26
DrO
 
Join Date: Sep 2003
Posts: 27,873
24:00:00 should be invalid (would have to check when i've got a moment) but really midnight should be taken as 00:00:00 as that's what most time apis use.

-daz
DrO is offline   Reply With Quote
Old 3rd February 2011, 21:11   #27
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Quote:
Originally Posted by DrO View Post
24:00:00 should be invalid (would have to check when i've got a moment) but really midnight should be taken as 00:00:00 as that's what most time apis use.

-daz
yea 24 was i had to change it. Ill move the default playlist from the priority that could be a problem. Also off topic a bit here If someone tunes in via this site using the browser player on the winamp site does it show up as their ip still. Only asking because I noticed that I have 4 poeple with the same ip listening
daverogers is offline   Reply With Quote
Old 3rd February 2011, 21:52   #28
DrO
 
Join Date: Sep 2003
Posts: 27,873
it'll just show the SC site ip on the connection as that's where it's coming from - the DNAS isn't able to see any further from what i've seen / experienced. the user-agent should indicate if it's coming from the site player though i can't remember what it shows as at the moment.

-daz
DrO is offline   Reply With Quote
Old 4th February 2011, 00:05   #29
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
On my legacy DNAS it shows:
<USERAGENT>MPEG OVERRIDE</USERAGENT>

And there's another for the SHOUTcast flash player for grabbing the metadata:
code:

<02/03/11@17:07:20> [dest: 64.12.243.204] starting stream (UID: 552)[L: 5]{A: ultravox metadata puller}(P: 5)


Last edited by thinktink; 4th February 2011 at 00:11. Reason: Forums did not preserve original capitalization
thinktink is offline   Reply With Quote
Old 4th February 2011, 21:40   #30
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
Still seems to be skiping all but electro f**k fest and fijita any idea.
daverogers is offline   Reply With Quote
Old 5th February 2011, 00:02   #31
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,087
Really need to enable those debug logging options I mentioned previously and post the logs. I've got nothing else to go on at the moment.
thinktink is offline   Reply With Quote
Old 5th February 2011, 20:24   #32
daverogers
Senior Member
 
Join Date: Jan 2011
Location: Bristol, uk
Posts: 104
here is what i have and it just keeps repeating over and over and over non stop
Attached Files
File Type: txt sc_trans_log.txt (18.4 KB, 162 views)

Last edited by daverogers; 5th February 2011 at 22:06.
daverogers is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump