Author Topic: Feature Request for BassEnc: Shoutcast 2 protocol support  (Read 2851 times)

MB_SOFT

  • Posts: 425
Hi Ian,

just a suggestion for the future of BassEnc, would it be nice if you can add support for Shoutcast 2 protocol.

http://wiki.winamp.com/wiki/SHOUTcast_2_%28Ultravox_2.1%29_Protocol_Details#Overview

Chris

  • Posts: 2082
Yep it would be nice.....if possible
Chris

Ian @ un4seen

  • Administrator
  • Posts: 24589
Here's something to try...

   www.un4seen.com/stuff/bassenc.dll

To use the Shoutcast 2 protocol, the stream id needs to be added to the BASS_Encode_CastInit "server" parameter ("address:port,sid"). A username can optionally also be included in the "pass" parameter ("username:password"). BASS_Encode_CastSetTitle is supported as usual but the "title" should be in UTF-8 form, and "url" is unused.

This stuff hasn't been tested much yet, so please report how you get on with it.

fmcoder

  • Posts: 467
Just tested it. Seems working fine, thanks!
Except for BASS_Encode_CastSetTitle doesn't work with international UTF-8 characters.
The server gives no error, but characters are not displayed correctly.
Could you check it please?
Here is the call:
BASS_Encode_CastSetTitle(hEncoder, PAnsiChar(AnsitoUTF8(U)), nil);
This works for Icecast server which also works with UTF8 text, but not for Shoutcast2.

UPD: sorry for bothering, the wrong text is in the Shoutcast log, but players display it fine :)
« Last Edit: 23 Nov '11 - 11:00 by fmcoder »