Bug 162555

Summary: Xine engine mp3 streams icy-metadata
Product: [Applications] amarok Reporter: Andrey Petrov <andreypetrov>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrey Petrov 2008-05-24 14:03:52 UTC
Version:           1.4.9.1-3.fc8 (using KDE 3.5.9)
Installed from:    Fedora RPMs
Compiler:          gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) Used Fedora 8 binary packages + xine-lib-extras-nonfree-1.1.12-1.lvn8
OS:                Linux

I've noticed the following problem with playing mp3 streams with Amarok (xine engine)
If you enable the xine engine proxy:
Settings->Configure Amarok->Engine->Http Proxy for Streaming
... Amarok will no longer seem to handle icy-metadata in the stream which results in:
1. No metainfo/metadata history in the 'Music' tab.
2. Amarok thinks the icy-metadata is actually part of the mp3 stream and does not discard it which results in annoying audible 'clicks' every two seconds or so.

Everything works great as soon as you remove the http streaming proxy settings from the xine engine configuration screen.

Don't know if this is Amarok or Xine's bug...

Here's a tcpdump of Amarok's communication with the streaming server:
without proxy (works great):
GET / HTTP/1.0
Host: 208.113.210.24:8000
User-Agent: xine/1.1.12
Accept: */*
Icy-MetaData: 1

ICY 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
icy-name:[radio.wazee] modern alternative rock (www.wazee.org)
icy-genre:Alternative Rock
icy-url:http://www.wazee.org
content-type:audio/mpeg
icy-pub:1
icy-metaint:32768
icy-br:128

(mp3data...)

with proxy (no metadata, audible clicks every two seconds):
GET / HTTP/1.0
Host: 208.113.210.24:8000
User-Agent: xine/1.1.12
Accept: */*
Icy-MetaData: 1
Via: 1.0 zmei.jeox.com:3128 (squid/2.6.STABLE19)
X-Forwarded-For: 127.0.0.1
Cache-Control: max-age=259200
Connection: keep-alive

ICY 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
icy-name:[radio.wazee] modern alternative rock (www.wazee.org)
icy-genre:Alternative Rock
icy-url:http://www.wazee.org
content-type:audio/mpeg
icy-pub:1
icy-metaint:32768
icy-br:128

(mp3data...)
Comment 1 Myriam Schweingruber 2009-08-02 20:17:54 UTC
Sorry, Amarok 1.4.x is not maintained anymore. The current stable version is Amarok 2.1.1, available in KDE 4.