Powergold & Commercials (AdMaster) auto import to schedule

You have a question or need an advice about how to do something? Ask it here!
Post Reply
User avatar
occassion
Posts: 2
Joined: 16 Feb 2016 23:00
Powergold & Commercials (AdMaster) auto import to schedule

Post by occassion »

Hi All!

How To Do it?
I just find this program and this is all new for Me.
So let me explain what I want.
While I use Powergold to make my playlist than also I have intrest that this will work with PF.
Right now I use m3u Playlist from Powergold (file mask Example: 19-02-2016.00.m3u) and also AdMaster (file mask example: friday-04b.m3u there is also option to do it other way: 2016-02-19-00a.m3u this is better when I wanna use more than one week playlists)
So my question is How I serve these playlist automatically to PF
That PF will always playing and looking yourself new playlist periodically.

While I add new playlists to server (on the cloud) and all these lists go to my playout machines. And I have no intrest make it manually every day.

Like I Understund I have to make some Event Commands. But there stops my mind - HOW?

A little backround my files where they are.
All playlist Goes to S:\PLAYLISTS
All Commercial Breaks goes to S:\COMMERCIALS

Like You now see I can do it right now like full month playlists If I want.
AdMaster therefore let me do it only one week

Maybe someone have done this and can guide me step by step?
User avatar
occassion
Posts: 2
Joined: 16 Feb 2016 23:00
Re: Powergold & Commercials (AdMaster) auto import to schedule

Post by occassion »

Thanks for quick help!

And you was right all this how I wanted it :)
User avatar
radio42
Site Admin
Posts: 9139
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Powergold & Commercials (AdMaster) auto import to schedule

Post by radio42 »

Hi,

first a few assumptions to my explanation (as a few thing are not fully clear from your description).

a) I assume, that your regular .m3u playlists are per hour, e.g.:
19-02-2016.00.m3u, 19-02-2016.01.m3u, 19-02-2016.02.m3u ...

b) I assume almost the same for your advert .m3u playlists, that there is one playlist per advert slot/block, e.g. (if there are 2 blocks a and b per hour):
2016-02-19-00a.m3u, 2016-02-19-00b.m3u, 2016-02-19-01a.m3u, 2016-02-19-01b.m3u

If my assumptions are not fully correct, I guess this is not really critical, as you should get the idea here and should be able to adopt the solution yourself.

First a few links, which you might found interesting to learn - so that you get the basic:
viewtopic.php?f=9&t=10
viewtopic.php?f=9&t=11
viewtopic.php?f=9&t=701
viewtopic.php?f=9&t=31
viewtopic.php?f=9&t=667
viewtopic.php?f=8&t=1206
viewtopic.php?f=9&t=1005

To automatically schedule your regular playlist files, the "Program Scheduler" is the right place to do so (see the 'Scheduler' ribbon tab and click on the 'Schedulers' button to open the 'Program Scheduler' - which works like an Outlook like calendar).
E.g. you can create a program scheduler entry (right-click and select 'New Recurring Program') and assign a dedicated 'Script' to it.
Scheduler.jpg
Scheduler.jpg (65.19 KiB) Viewed 5037 times
The Program Scheduler entry you need to create might be an hourly recurring one (select 'Hourly - Recur every 1 Hour') and you might then use a single common 'Script' containing at least one script-line to load those (pre)generated .m3u playlist files.
Recurrence.jpg
Recurrence.jpg (39.04 KiB) Viewed 5037 times
In the Program Editor you might simply click on the 'New' button next to the Script to create a new script on the fly - just give the script any meaningful name...
ProgramSchedulerEntry.jpg
ProgramSchedulerEntry.jpg (68.98 KiB) Viewed 5037 times
Then in the script editor, use the script-line action "LoadPlaylist" to load the playlist content (just as shown below).
Script.jpg
Script.jpg (122.78 KiB) Viewed 5037 times
Note that you can use any of the script-line macros (as listed in the user manual) to specify a dynamic playlist filename to load.
E.g. "S:\PLAYLISTS\${start_dd}-${start_MM}-${start_yyyy}.${start_HH}.m3u" will load a playlist file with the format 'dd-MM-yyyy.HH.m3u'. The year, month, day and hour will then be resolved to the related scheduler entry's start time!
As such you can assign this single script to your newly created program scheduler entry to load the dynamically generated playlist files.
As the program scheduler entry is hourly recurring, it would repeat every hour with a new start time, which is then used in the macros to resolve the playlist filename:
Program-StartTime -> Script's LoadPlaylist Filename
19.02.2016 19:00:00 -> "19-02-2016.19.m3u"
19.02.2016 20:00:00 -> "19-02-2016.20.m3u"
19.02.2016 21:00:00 -> "19-02-2016.21.m3u"
19.02.2016 22:00:00 -> "19-02-2016.22.m3u"
19.02.2016 23:00:00 -> "19-02-2016.23.m3u"
20.02.2016 00:00:00 -> "20-02-2016.00.m3u"
20.02.2016 01:00:00 -> "20-02-2016.01.m3u"
...

One more comment regarding the script. You might notice, that I set the 'LoopLine' parameter of the script to 2 and also added a second script-line to randomly pick a track from a media library called 'Music'. This is just in case your playlist is short in time and addition tracks are need to be scheduled to fill the gap. This also prevents, that in such case the playlist is not loaded twice. The background is, that if more tracks are needed, any script would simply loop to get more tracks, so without the second script-line the LoadPlaylist script-line would be looped...to prevent that, the second script-line comes in handy and that is also the reason, why the LoopLine parameter needs to be set to.

For any further help, please click on the '?' icon at the top-right of each dialog to get a more detailed help...

That's it!
As you new program entry is recurring every hour, you just need to make sure to place all your .m3u playlists in your respective playlist folder and they are picked automatically according to the above script-line macros...


Regarding the Advert playlists: this is almost exactly the same story, except, that you now might use the 'Overlay Scheduler' instead of the 'Program Scheduler'. The overlay scheduler will scheduler your adverts (overlays) on top of the regular playlists.
In the example/assumption above, if you have 2 advert blocks per hour (a and b) - you might need to create 2 independent overlay scheduler entries using 2 different scripts. One using/referencing the ...a.m3u playlist and one using/referencing the ...b.m3u playlist.
The respective script-line LoadPlaylist entries might look like this:
for a) S:\COMMERCIALS\${start_dd}-${start_MM}-${start_yyyy}-${start_HH}a.m3u
for b) S:\COMMERCIALS\${start_dd}-${start_MM}-${start_yyyy}-${start_HH}b.m3u

So the mechanism is in both cases exactly the same.

Post Reply