Hi,

I use this with no issues (you can skip the variable HTTPSTREAM etc but 
I like having changeables at the top of scripts so its easier to 
remember 3 years later when you tend to go back to these things):

HTTPSTREAM="http://YOUR_ICECAST_STREAM";
DIRECTORY="/path/to/audio/files/"

# Emergency fallback
emergency = playlist(DIRECTORY)

liveStream = (input.http(id="picodec",HTTPSTREAM):source(2,0,0))
liveStream = strip_blank(liveStream, length=10.0) #10 second silence detect
liveStream = fallback(track_sensitive=false,[liveStream,emergency])

# Output the stream to ALSA
output.alsa(fallible=true,liveStream)
# fallible = true means this is expected to fail so reconnect if possible


Wayne Merricks
The Voice Asia

On 13/10/15 03:07, Jonathan wrote:
> Hello all. so I have come back with a simple question and one that may
> look dumb but I would really like yalls help with all of this. I have 2
> stations going on that I am hosting from our server and have both
> running liquidsoap on them to serve as automation systems. Now, what I'm
> trying to do is relay a stream from one of them to another. I have
> people who is broadcasting from one of our servers and I would like the
> relay to be server side with liquidsoap. My setup is as follows:
> #!/etc/liquidsoap
> set("log.file.path","/tmp/syndication.log")
> url ="http://kjscradio.com:8000/stream.mp3";
> input = mksafe(input.http(url))
> output.dummy(fallible=true,
> input)
> output.icecast(%mp3,
> host="djmac.kjscradio.com",port=9000,
> mount="live",
> password="hackme",
> input)
>
>
> that is what I would like to use how ever, I get this when ran and the
> broadcast on the output does not broadcast at all. It's just sitting at
> their main automation and not going to are other one that we have setup.
> Here are the logs that I get as output.
> 2015/10/12 18:48:53 [live:3] Connecting mount live for
> [email protected]...
> 2015/10/12 18:48:53 [live:3] Connection setup was successful.
> 2015/10/12 18:48:53 [threads:3] Created thread "wallclock_main" (2 total).
> 2015/10/12 18:48:53 [clock.wallclock_main:3] Streaming loop starts,
> synchronized with wallclock.
> 2015/10/12 18:48:53 [mksafe:3] Switch to safe_blank.
> 2015/10/12 18:48:53 [decoder:3] Method "MAD" accepted "audio/mpeg".
> 2015/10/12 18:48:53 [http_4756:3] Decoding...
> 2015/10/12 18:48:53 [http_4756:3] New metadata chunk: ? -- .
> 2015/10/12 18:48:54 [mksafe:3] Switch to http_4756 with transition.
> 2015/10/12 18:48:55 [http_4756:3] Buffer overrun: Dropping 0.01s.
> 2015/10/12 18:48:55 [http_4756:3] Buffer overrun: Dropping 0.03s.
> How should I proceed. If someone can shed some light on this, it would
> be grateful.
> thanks.
> P.S.
> I am using liquidsoap 1.1.1 just so that you all know.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to