Hi,

I have added location of the error for parsing errors, so now I get

At line 20, char 15-23: Invalid time interval: precisions differ.

with your script. The culprit is 1w20h-22h which is invalid because
you must specify the day for both or none. The correct expression is
1w20h-1w22h (and similarly for others).

Cheers,

Samuel.

On Tue, Mar 19, 2013 at 7:14 PM, Dennis Heerema <[email protected]> wrote:
>
>
> Hi Sam,
>
> Thanks...I think i'm getting there....but there is still something not
> right in my config, liquid won't start, what am i missing or doing wrong?
>
> Kind regards,
>
> Dennis
>
>
> # Input the stream,
> # from an Icecast server or any other source
> url = "http://127.0.0.1:8000/studio.flac";
> input = mksafe(input.http(url))
>
> s = input
>
> def mm(m) =
>    title = m["title"]
>    title = if 22h-01h then "Easylistening -- #{title}" else title end
>    title = if 1h-08h then "Non-Stop Muziek -- #{title}" else title end
>    title = if 10h-20h then "Non-Stop Muziek -- #{title}" else title end
>    title = if 1w20h-22h then "LIVE: Los Verband -- #{title}" else title end
>    title = if 2w8h-10h then "Herhaling: Los Verband -- #{title}" else
> title end
>    title = if 2w20h-22h30 then "LIVE: Als Pleister Op De Wonde --
> #{title}" else title end
>    title = if 3w8h-10h then "Herhaling: Als Pleister Op De Wonde --
> #{title}" else title end
>    title = if 3w20h-22h then "LIVE: Flevo Vitaminen -- #{title}" else
> title end
>    title = if 4w8h-10h then "Herhaling: Flevo Vitaminen -- #{title}"
> else title end
>    title = if 4w20h-22h then "LIVE: De Muzikale Vaart -- #{title}" else
> title end
>    title = if 5w8h-10h then "Herhaling: De Muzikale Vaart -- #{title}"
> else title end
>    title = if 5w20h-22h then "LIVE: Flevo WeekendShow -- #{title}" else
> title end
>    title = if 6w8h-10h then "Herhaling: Flevo WeekendShow -- #{title}"
> else title end
>    title = if 6w20h-22h then "Herhaling: Flevo Klassiek -- #{title}"
> else title end
>    title = if 7w8h-10h30 then "LIVE: Flevo Klassiek -- #{title}" else
> title end
>    title = if 7w10h30-11h30 then "LIVE: Kerkdienst -- #{title}" else
> title end
>    ["title", title]
> end
>
> s = map_metadata(mm, s)
>
> # First transcoder: MP3 80 kbps
> output.icecast(%mp3(stereo=true, stereo_mode="joint_stereo", bitrate=80,
> internal_quality=0), host = "127.0.0.1", port = 8000, password = "xxxx",
> mount =
> "studio.mp3",genre="various",url="http://www.flevoziekenomroep.net",description="FlevoZiekenOmroep";,
> id="FZO_MP3",name="FZO MP3 stream",icy_metadata="true",public=false,input)
>
> # Second transcoder: AACPLUS 64 kbps
> output.icecast(%aacplus(bitrate=64), host = "127.0.0.1", port = 8000,
> password = "xxxxx", mount = "studio.aac", genre= "various",url=
> "http://www.flevoziekenomroep.net",description= "Flevoziekenomroep",
> id="FZO_AACPLUS",name="FZO AACPLUS
> stream",icy_metadata="true",public=false,input)
>
> # Thirth transcoder: Vorbis 64 Kbps
> output.icecast(%vorbis(samplerate=44100, channels=2, quality=0), host =
> "127.0.0.1", port = 8000, password = "xxxx", mount = "studio.ogg",
> genre= "various",url= "http://www.flevoziekenomroep.net",description=
> "Flevoziekenomroep", id="FZO_OGG",name="FZO OGG stream",public=false,input)
>
> # Fourth transcoder: Opus 64 kbps
> output.icecast(%opus(vbr="constrained", application="audio",
> complexity=5, max_bandwidth="super_wide_band", samplerate=48000,
> bitrate=64, frame_size=40., channels=2, signal="music"), host =
> "127.0.0.1", port = 8000, password = "xxxxx", mount = "studio.opus",
> genre= "various",url= "http://www.flevoziekenomroep.net",description=
> "Flevoziekenomroep", id="FZO_OPUS",name="FZO OPUS
> stream",public=false,input)
>
>
>
> Op 18-3-2013 19:19, Samuel Mimram schreef:
>> Hi,
>>
>> In this case, I would use map_metadata with something like this:
>>
>> s = ...
>>
>> def mm(m) =
>>    title = m["title"]
>>    title = if 22h-01h then "Easylistening -- #{title}" else title end
>>    ["title", title]
>> end
>>
>> s = map_metadata(mm, s)
>>
>> Cheers,
>>
>> Samuel.
>>
>> On Tue, Mar 12, 2013 at 6:46 PM, Dennis Heerema <[email protected]> wrote:
>>> Hello Sam,
>>>
>>> I would like to replace the metadata at scheduled times for the live program
>>> name:
>>>
>>> Example:
>>>
>>> - Monday  20:00-22:00 programname 1
>>> - thurseday 19:00-20:00 news
>>> - thurseday 20:00-22:00 programme 2
>>> - Sunday 08:00-10:30 Classcal musik
>>>
>>> etc etc
>>>
>>> Outside these hours i want to use the metadata from the source stream plus
>>> if possible inserted a programmename like - daily 22:00-01:00 easylistening
>>> - daily 01:00-08:00 musicmix
>>>
>>> etc etc
>>>
>>> The source stream is also the stream providing the LIVE programm, streamed
>>> by Edcast source client, the metadata is provided by a text file from
>>> Zararadio.
>>>
>>> B
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to