2011/9/29 David Baelde <david.bae...@gmail.com>:
> 2011/9/21 Martin Konečný <martin.kone...@sourcefabric.org>:
>> http://dev.sourcefabric.org/browse/CC-2840
>
> I have played with this. It looks like icecast assumes that MP3
> metadata is latin1. So you should just not set the encoding to UTF-8.
> We'll consider changing the default, and/or warning the user about
> that.
>
> More details. I ran the following two tests, and got the encoding
> problem only with the first one:
>
>  liquidsoap 
> 'output.icecast(%mp3,mount="test",encoding="UTF-8",fallible=true,map_metadata(fun(m)->[("title","héhé")],playlist("~/media/audio")))'
>
>  liquidsoap 
> 'output.icecast(%mp3,mount="test",encoding="ISO-8859-1",fallible=true,map_metadata(fun(m)->[("title","héhé")],playlist("~/media/audio")))'
>
> By the way, my first attempt was to write "utf8" and "latin1", which
> are not recognized by camomile (this shows up in the logs).

Hmmm I think the answer was right in front of us on icecast.org:

* Character set support. Most non-Ogg streams (eg MP3) send metadata
as Latin1 but it could be in other character sets. As icecast uses
UTF-8, we need to convert to UTF-8 so that web pages and stream
directories render correctly.
Allow a per-mount <charset> setting. For when source clients do not
indicate which character set is in use.
a charset= parameter to the metadata request.
Default for non-Ogg content is now Latin-1 (aka ISO-8859-1). Ogg
content still uses UTF-8.

So:
1) If you send metadata in utf8 for non-ogg sources, you must tell it to icecast
2) Icecast expects latin1 by default for non-ogg streams

Thus, the last question (the one that concerns us for the release):
should we make latin1 the default encoding for all non-ogg icecast
output? This is not a trivial question since output.icecast can also
be used to send data to input.harbor so this needs testing..!

Romain

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to