karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
299 stars 107 forks source link

Metadata from Traktor #91

Closed Satariall closed 10 years ago

Satariall commented 10 years ago

We use Traktor PRO for mixing dj sets. So, now we need to get current play sound via tracks/samples metadata.

Inside Traktor we see that preferences: 2014-06-03 17-16-56

When we start broadcasting to icecast all be ok - mount is makes and we may listen new station. But no metadata update in that. So in internet have some tools, such as http://en.www.ali.dj/traktor-scrobbler/

They functional - emulate server and grep getted metadata. Then they save them to file (optionaly - make tweet with current song). I test that tools - all ok, Traktor is send metadata.

So my question - why this metadata not be update in icecast? What i may do for diagnose that issue?

Thanks

Satariall commented 10 years ago

Ofcouse, debug log in level 4 doesn't return any interesting info about metadata. But they have connected useragent

[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "listener_connections" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "stream_start" (03/Jun/2014:17:40:34 +0400)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "total_mbytes_sent" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "total_bytes_sent" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "total_bytes_read" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "outgoing_kbitrate" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "incoming_bitrate" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "queue_size" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "connected" (0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "source_ip" (xxx.xxx.xxx.xxx)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "ice-samplerate" (44100)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "ice-bitrate" (Quality 0)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "ice-channels" (2)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "audio_info" (ice-samplerate=44100;ice-bitrate=Quality 0;ice-channels=2)
[2014-06-03  17:40:34] INFO source/source_init Source /t initialised
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "user_agent" (Native Instruments IceCast Uplink)
[2014-06-03  17:40:34] INFO source/source_read listener count on /t now 0
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "listeners" (0)
[2014-06-03  17:40:34] DBUG yp/yp_pending_update running through YP changes
[2014-06-03  17:40:34] DBUG yp/yp_add_callback Adding /t to http://dir.xiph.org/cgi-bin/yp-cgi
[2014-06-03  17:40:34] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2014-06-03  17:40:34] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2014-06-03  17:40:34] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2014-06-03  17:40:34] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2014-06-03  17:40:34] DBUG format-ogg/process_initial_page Vorbis codec has filter mark 0
[2014-06-03  17:40:34] DBUG format-vorbis/process_vorbis_page processing incoming header packet (1)
[2014-06-03  17:40:34] DBUG format-vorbis/process_vorbis_page processing incoming header packet (2)
[2014-06-03  17:40:34] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "audio_samplerate" (44100)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "audio_channels" (2)
[2014-06-03  17:40:34] DBUG stats/process_source_stat new node on /t "audio_bitrate" (192000)
[2014-06-03  17:40:34] DBUG stats/modify_node_event update "/t" ice-bitrate (192)
[2014-06-03  17:40:34] DBUG format-vorbis/process_vorbis_headers Adding the 3 header packets
[2014-06-03  17:40:34] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2014-06-03  17:40:34] DBUG format-ogg/format_ogg_attach_header attaching header page
Satariall commented 10 years ago

Now i have received meta. But my logic is broken. If track have hot IDv3 tags Traktor send filename without extension. But if i write only artist and title fields metadata have not visible in icecast. But when i set "Genre" field - then all be full ok! I don't know why it is.

karlheyes commented 10 years ago

With vorbis the comments are in the 2nd header packet, and artist/title is picked out just before the audio_ stats are set. We don't use genre as a optional switch for this so artist/title should appear even if genre is missing, but it is possible that the source client is doing some sort of filtering on genre.

karl.

Satariall commented 10 years ago

Yes, u right. This is traktor logic. With them have another problems (such as send metadata info from not active listen deck [dj preview af next mixing], but it is they local problems). Thanks, all ok on Icecast