Hello,
I'm an idiot. Just after i've sent a letter i thought to use cue_cut on a
source, that is returned by request.dynamic:
playlist = cue_cut(request.dynamic(track.next))
And it worked fine. Sorry for such stupid question.
I would like to store files and run liquidsoap on a separate dedicated
servers (they are in one data center, but anyway, they are independent
servers), and to retrieve tracks by liquidsoap from storage server on
stream server.
I tried to give urls to tracks instead of their local paths, and i've seen
in the logs that liquidsoap is trying to download the whole track in /tmp
directory immediately, and only after that is starting to play it. If this
will happen with 1-2 hour track, station will produce silence for 20-30
seconds.
*Question 1: *I am seeing messages in log "2013/02/08 01:00:00
[cue_cut_4637:4] Seeked 1762784 ticks instead of 1762236.", is it ok? This
message appears as when i give local paths to tracks, as when i define http
urls.
*Question 2: *When tracks and liquidsoap are placed on different machines
(in local net), is it better to mount storage server as disk to liquidsoap
machine, or to use http urls for tracks? What will provide better
perfomance?
*Question 3:* When using http urls tracks, it is better to use
conservative=true for request.dynamic parameter to load next track into
memory, right?
2013/2/8 Alexander <[email protected]>
> Hello Romain,
>
> Thank you for the link,
>
> i've already tried to execute following code (using annotate near track),
> but it does not make any cue points (but it plays tracks ok)
>
>>
>> request.create("annotate:liq_cue_in=\"10.\",liq_cue_out=\"45\":/path/to/track")
>
>
> as i found in your letter:
> http://comments.gmane.org/gmane.comp.audio.liquidsoap.user/4410 .
> But it actually does not make any cut on the tracks. Perhaps i'm doing
> smth wrong?
>
> My code looks like the following:
>
> def php.getNextTrackName() =
>> list.hd(get_process_lines(SCRIPT_DIR ^ "nexttrack.php --station-id='#{
>> station.id}'"))
>> end
>> # Callback for request.dynamic
>> def track.next() =
>> track = php.getNextTrackName();
>>
>> request.create("annotate:liq_cue_in=\"10.\",liq_cue_out=\"45\":#{track}")
>> end
>> playlist = request.dynamic(track.next)
>
>
> I was unable to make same code as given by you in those letter (to define
> callback that returns string), because callback return value should be
> request.
>
> 2013/2/7 Romain Beauxis <[email protected]>
>
>> Hi,
>>
>> 2013/2/7 Alexander <[email protected]>:
>> > I wanted to ask about request.dynamic functionality, it is very comfort
>> for
>> > us to use it to ask external script about each next track.
>> > Is it possible somehow to make individual fades and cue points for each
>> > track?
>>
>> As I pointed out yesterday, the documentation for seek points is there:
>> http://liquidsoap.fm/doc-1.0.1/seek.html
>>
>> Your questions is answered there. It works exactly the same way as the
>> example with a playlist, except that you use request,dynamic instead..
>>
>> Romain
>>
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
>
>
> --
> Kind regards,
> Alexander.
>
--
Kind regards,
Alexander.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users