Le Thursday 06 November 2008 09:43:21 okay_awright, vous avez écrit :
> hello!
Hi !
> thanks for your answer. However it didn't solve my problems, unfortunately.
>
> 1) Regarding my question about metadata rewriting, I'm really no good
> writing liquidsoap scripts. I first tried fancy things using your tips but
> then I stepped back to something really simple, but still no go: the
> metadata don't seem to be rewritten. Please can you help me fixing my
> broken liquidsoap language writing skills.
>
> My conf file is the same as before, except this small modification:
>
> def mklivedynamic(source)
> # Add lastfm submission
> source = on_metadata(lastfm,source)
> # Get metadata from external source
> live_title = list.hd(
> get_process_lines(
> scripts^"suds-getcurrentlivetitle "^quote(radiopilote_conf)
> )
> )
> # Rewrite
> rewrite_metadata(
> [("artist", "Live"),
> ("comment", "$(radio_name)"),
> ("title", live_title)],
> source
> )
> end
You should try:
def my_rewrite(m) =
# Get metadata from external source
live_title = list.hd(
get_process_lines(
scripts^"suds-getcurrentlivetitle "^quote(radiopilote_conf)
)
)
[("artist", "Live"),
("comment", m["radio_name"]),
("title", live_title)]
end
source = map_metadata(my_rewrite,source)
It works as you would like here.
> 2) Liquidsoap keeps disconnecting from the shout socket from time to time
> even if I increase the number of available generic queues.
>
> 2008/11/05 23:20:44 [generic queue #2:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [generic queue #3:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [src_3668:4] Got metadata at position 384: calling
> handler...
> 2008/11/05 23:20:44 [decoder:4] Trying MP3 decoder for
> "/home/overfitted/radio/resources/pool/994.mp3"
> 2008/11/05 23:20:44 [format.mp3:4] open
> "/home/overfitted/radio/resources/pool/994.mp3"
> 2008/11/05 23:20:44 [format.mp3:4] close
> "/home/overfitted/radio/resources/pool/994.mp3"
> 2008/11/05 23:20:44 [dyn_Global:4] queue length 1323000+=1323000 (rid 5)
> 2008/11/05 23:20:44 [fast queue #1:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [src_3669:4] Got metadata at position 384: calling
> handler...
> 2008/11/05 23:20:44 [generic queue #4:4] Left select at 1225927244.588542
> (1/0/0).
> 2008/11/05 23:20:44 [generic queue #4:4] There are 2 ready tasks.
> 2008/11/05 23:20:44 [liqfm:4] Submiting Space Art -- Alpha Du Centaure
> Part Two to
> lastfm
> 2008/11/05 23:20:44 [fast queue #1:4] There are 1 ready tasks.
> 2008/11/05 23:20:44 [fast queue #1:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [fast queue #1:4] Enter select at 1225927244.619826,
> timeout
> -1.000000 (4/0/0).
> 2008/11/05 23:20:44 [fast queue #1:4] Left select at 1225927244.619950
> (1/0/0).
> 2008/11/05 23:20:44 [fast queue #1:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [fast queue #1:4] Enter select at 1225927244.620059,
> timeout
> -1.000000 (4/0/0).
> 2008/11/05 23:20:44 [generic queue #3:4] There are 0 ready tasks.
> 2008/11/05 23:20:44 [non-blocking queue #1:4] There are 0 ready tasks.
> 2008/11/05 23:20:48 [root:2] We must catchup 4.38 seconds!
> 2008/11/05 23:20:48 [non-blocking queue #2:4] There are 0 ready tasks.
> 2008/11/05 23:20:48 [/:2] Shout socket error: timeout, network failure,
> server
> shutdown? Restarting the output in 6 seconds.
> 2008/11/05 23:20:48 [generic queue #1:4] There are 0 ready tasks.
> 2008/11/05 23:20:49 [src_3671:3] switch to src_3667 with transition
> 2008/11/05 23:20:49 [source:4] src_3817 gets down
> 2008/11/05 23:20:49 [source:4] src_3815 gets down
> 2008/11/05 23:20:49 [source:4] src_3814 gets down
> 2008/11/05 23:20:49 [source:4] src_3816 gets down
> 2008/11/05 23:20:49 [source:4] src_3830 gets up
> 2008/11/05 23:20:49 [source:4] src_3828 gets up
> 2008/11/05 23:20:49 [source:4] src_3827 gets up
> 2008/11/05 23:20:49 [source:4] src_3829 gets up
> 2008/11/05 23:20:49 [src_3666:4] Got metadata at position 128: calling
> handler...
Indeed, latency doesn't seem to come from lastfm submission. You should then
check why liquidsoap has a high latency. In particular, check the load of the
server, and perhaps add more priority to the process..
> 3) Then I noticed something really strange (a new problem ;)), I can
> connect and stream to input.harbor with an Icecast-compatible source
> client but it appears liquidsoap does not speak ICY though. The source
> client cannot connect to liquidsoap if it uses the Shoutcast idiom.
> I've tried with both the official Winamp Shoutcast DSP and Virtual DJ.
>
> 2008/11/05 22:40:22 [harbor:3] Invalid ICY request
> 2008/11/05 22:40:22 [harbor:3] Failed: Invalid ICY request
ICY support for harbor is disabled by default.
You can enable it by adding:
set("harbor.icy",true)
Romain
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users