Hi,

The problem comes from the fact that the BBC stream is mono, whereas
output.alsa expect stereo. The audio_to_stereo command can be used to make
this work:

liquidsoap 'output.alsa(audio_to_stereo(mksafe(input.http("
http://mp36.bbc.streamuk.com:80/";))))'

Admittedly, it was really difficult for you to have a clue about what was
going on so I created a bug report so that we improve the situation:

http://dev.sourcefabric.org/browse/LS-631

Cheers,

Samuel.

On Fri, Sep 7, 2012 at 11:25 PM, Martin Konečný <
[email protected]> wrote:

> Hello,
>
> I'm having some trouble getting the following stream to work:
>
> liquidsoap 'output.alsa(mksafe(input.http("
> http://mp36.bbc.streamuk.com:80/";)))'
>
> Here is the Liquidsoap output:
>
> 2012/09/07 17:19:08 [alsa_out(default):3] Using ALSA 1.0.23.
> 2012/09/07 17:19:08 [alsa_out(default):2] Falling back on interleaved S16LE
> 2012/09/07 17:19:08 [alsa_out(default):3] Samplefreq=44100Hz,
> Bufsize=1048576B, Frame=4B, Periods=1024
> 2012/09/07 17:19:08 [decoder:3] Method "MAD" accepted "audio/mpeg".
> 2012/09/07 17:19:08 [http_4984:3] Decoding...
> 2012/09/07 17:19:08 [mksafe:3] Switch to http_4984 with transition.
> 2012/09/07 17:19:08 [http_4984:3] Incorrect stream type!
> 2012/09/07 17:19:08 [mksafe:3] Switch to safe_blank with forgetful
> transition.
> 2012/09/07 17:19:08 [http_4984:2] Feeding stopped: Incorrect stream type!
> 2012/09/07 17:19:11 [decoder:3] Method "MAD" accepted "audio/mpeg".
> 2012/09/07 17:19:11 [http_4984:3] Decoding...
> 2012/09/07 17:19:11 [mksafe:3] Switch to http_4984 with transition.
> 2012/09/07 17:19:11 [http_4984:3] Incorrect stream type!
> 2012/09/07 17:19:11 [mksafe:3] Switch to safe_blank with forgetful
> transition.
> 2012/09/07 17:19:11 [http_4984:2] Feeding stopped: Incorrect stream type!
>
>
> Playing the stream with mplayer works fine.
>
> I looked at the headers returned from the url and it appears to be a
> shoutcast (icy) stream.
>
>
> Martin
>
>
>
> --
> Open source radio in the cloud. Get yours now! ---> http://airtime.pro
>
> Martin Konecny
> Software Developer, Sourcefabric
> [email protected]
>
> 720 Bathurst St. Suite 203
> M5S 2R4, Toronto, ON, Canada
> Skype: martin.konecny15
>
> http://www.sourcefabric.org
> http://www.twitter.com/Sourcefabric
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to