ubuntu-14.04icecastliquidsoap

When streaming with Icecast and Liquidsoap the sound keep rewinding


when I stream with Liquidsoap and Icecast the stream keep playing the same part over and over, with a rewind sound...

This is the stream: http://radio.oursound.com.br:8000/oursoundradio

I was unable to find anything about it, this is my liq script

source = input.http("http://LINK_TO_MP3.mp3",buffer=10.0, max=20.0,logfile="/tmp/001.log")
source = mksafe(source)
output.icecast(%vorbis,host="localhost",password="password",mount="oursoundradio", source)

I am using vorbis, because when I use MP3, I keep getting this error

strange error flushing buffer ...
strange error flushing buffer ...
strange error flushing buffer ...
strange error flushing buffer ...

But this is for another day, what I need help is with the streaming rewinding, I am completely new to Liquidsoap and Icecast...

But already read all the documentation, and found nothing...

Thanks for the help...


Solution

  • input.http is meant to be used for radio-style HTTP streams that never really end. Liquidsoap is treating it as such, getting disconnected when the file is fully downloaded, and is likely looping a buffer. There shouldn't be a "rewind" sound... you're probably hearing a blip of an MP3 artifact. Your station is down right now, or I'd give it a listen to check.

    You should use single instead. Untested, but try something like this:

    source = once(single("http://example.com/file.mp3"))
    

    Of course in practice, you probably actually want playlist.