maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   SomaFM and visible meta tags (https://talk.maemo.org/showthread.php?t=27892)

qgil 2009-03-28 07:33

SomaFM and visible meta tags
 
http://soma.fm is a good recommendation for those of you in Last.fm sorrow. ;)

A question, though. Going to one of its channels e.g. http://somafm.com/play/lush opens the Media Player and starts streaming automatically. However, I can't get any metatag shown in the Fremantle media player I'm trying out. The result is:

205.188.214
(unknown artist) / (unknown song)

Before filing a bug I want to know whether the tag handling in the stream is correct and if there is any media player out there able to process it correctly. Any help trying out players with the very same URL posted above is appreciated. Thanks!

qwerty12 2009-03-28 07:35

Re: SomaFM and visible meta tags
 
Amarok 1.4.10 says "Artemis - Sync Or Swim (Breakshop Studios Mix) - Dj F :: http://205.188.214.184:8420" when adding that stream to my playlist.

ciroip 2009-03-28 10:44

Re: SomaFM and visible meta tags
 
SomaFM is a must: they really help me to survive my xmas(es?) with the holyday channel xmax in frisco :).
If anyone have any news about tags please keep posting here:
I was planing to write a python frontend just for somafm (and access to their history logs).
Don't forget to support them

allnameswereout 2009-03-31 15:52

Re: SomaFM and visible meta tags
 
I get a .pls when I visit your link.

[playlist]
numberofentries=2
File1=http://205.188.214.184:8420
Title1=(#1) SomaFM: Lush (128k mp3): Sensuous and mellow vocals, mostly female, with an electronic influence.
Length1=-1
File2=http://voxsc1.somafm.com:8800
Title2=(#2) SomaFM: Lush (128k mp3): Sensuous and mellow vocals, mostly female, with an electronic influence.
Length2=-1
Version=2


So I fired up mpg123:

Quote:

$ mpg123 --verbose http://205.188.214.184:8420
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.4.3; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Decoder: generic

Directory: http://
Playing MPEG stream 1 of 1: 205.188.214.184:8420 ...
ICY-NAME: Lush: Mostly female vocals with an electronic influence. [SomaFM]
ICY-URL: http://somafm.com
MPEG 1.0, Layer: III, Freq: 44100, mode: Stereo, modext: 0, BPF : 418
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 128 kbit/s Extension value: 0
Frame# 72 [ 0], Time: 00:01.88 [00:00.00], RVA: off, Vol: 100(100)
ICY-META: StreamTitle='Drop The Fear - Goodbye';StreamUrl='';
Frame# 1617 [ 0], Time: 00:42.24 [00:00.00], RVA: off, Vol: 100(100)^C
[0:42] Decoding of 205.188.214.184:8420 finished.
I did this a few times. You don't get the ICY-META right away. It takes a few seconds.

Then I went to http://205.188.214.184:8420/admin because I thought that was how to get the admin interface (which contains a lot of useful information about the server). What I got was at least the version:

Quote:

ICY 404 Resource Not Found icy-notice1:
SHOUTcast Distributed Network Audio Server/Linux v1.9.8
icy-notice2:The resource requested was not found
I used libmpg123 because I remember this worked with MP3 radio (Shoutcast) for ages. It uses its own library.

Quote:

$ ldd /usr/bin/mpg123
linux-vdso.so.1 => (0x00007fffb83fe000)
libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007ff3afe1e000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ff3afc1a000)
libmpg123.so.0 => /usr/lib/libmpg123.so.0 (0x00007ff3af9db000)
libm.so.6 => /lib/libm.so.6 (0x00007ff3af756000)
libc.so.6 => /lib/libc.so.6 (0x00007ff3af3e4000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff3b0027000)
I could not get mpg321 to work. I wanted to use a lightweight client because its easier to locate the problem (if exists) then. If you look up, you'd see what the web server streams as meta data and how this should be used in a music player.

(Personally, I don't listen to music stations a lot but I recognize the impact of such. SomaFM is nice, with a wide variety for electronic music lovers! However, LastFM (while I did not use this actively either) was something different. It was a platform for networking, for stumbling upon, with social networking capabilities. I collect certain electronic music, and LastFM has found me people who are also in that genre/style, while just using Google no less! So in many regards SomaFM or online radio is not really a replacement. There are other projects which fill/compete LastFM role (lets use them instead?), but they'd also cost the managers who run the platform money; it is difficult to run such for free, or only with ads.)

qgil 2009-03-31 19:08

Re: SomaFM and visible meta tags
 
Weird. Last week clicking the link would at least open the media player and stream. Now it only shows me the pls object in the browser. Did something change in soma.fm?

sjgadsby 2009-03-31 19:26

Re: SomaFM and visible meta tags
 
Quote:

Originally Posted by qgil (Post 275227)
Before filing a bug I want to know whether the tag handling in the stream is correct and if there is any media player out there able to process it correctly. Any help trying out players with the very same URL posted above is appreciated.

Media Player on 5.2008.43-7 identifies the stream as, "Lush: Mostly female vocals with an electronic influence. [SomaFM]" It also displays the artist and track names as songs play. iTunes 8.1 on Mac OS does the same.

allnameswereout 2009-03-31 19:38

Re: SomaFM and visible meta tags
 
From here it works like it should both on the server side and the client sides I tested.

If you open http://somafm.com/play/lush with a desktop browser (Opera, Firefox) in GNOME it will tell you the default application to open the .pls file with. By default this is Totem. This application will then add both URLs (so #1 and #2) in the playlist. Rhythmbox, which you can also decide to use to listen to internet radio, has a seperate entry for the radio stations the user wants to listen to to which these URLs (again, both) are added and can be maintained. Allowing management and keeping them seperate is useful. Think of it: it is great to have your internet radio stations in your Media Player application on your mobile device. BTW, it'll play the http:// link fine including showing correct metadata artist and track.

Here on Diablo it works with Media Player (I never used this application before but it looks nice). However it doesn't show the metadata in the title bar above. It says 'Now playing'. Above the 2 playlists it says either: 'Playing: Lush: Mostly female vocals with an ele...' or it says: 'Playing: Carmen Rizzo - Easy Way Out (Featuri...'. It says either 1 of these 2, and switches every once in a while between these 2. Ofcourse when a new track is played it will show that track. Right now it has become 'Playing: Afterlife - Falling' which fits. You will notice what did not fit. From what I see here, with this version, metadata (internet radio station name, artist name, track name) is correct. I do get disconnected sometimes, but maybe that is my internet connectivity.

ciroip 2009-03-31 20:43

Re: SomaFM and visible meta tags
 
uhm, this thread begin to became like a list of which player on the tablet can manage the mp3 tags: could be usefull for a more general approach (ID3v1, ID3v2, APEv2 etc. etc) but still if it just can figure out how manage the somafm streams is already a success :D.

<random rant>
Lets 'link' a player to send the current tags to the ovi accounts and we can have a tablet user musical social network (connected with the nokia music store?). Being evil like apple: let buy the song directly from the player (1 tap) and give part of the money to somafm (that would work better on cellphones using the contract or the prepaied credit money).
</random rant>

allnameswereout 2009-03-31 21:54

Re: SomaFM and visible meta tags
 
Thats the thing. Nobody was talking about ID3! The internet radio DJ software (the DSP of SHOUTcast, IceCast, etc) reads the metadata (ID3v1, ID3v2, or some other format) and tells this to the internet radio server software (SHOUTcast, IceCast, etc itself) which then uses ICY-META to let the media players know this information. The media player doesn't get the MP3 and read the ID3 metadata for there is no ID3 metadata. All the media player has to do is heads up when it receives a ICY-META from the internet radio server software. Normally, media player receives this right after first connect, and when DSP announces it succesfully to server.

qole 2009-04-01 21:57

Re: SomaFM and visible meta tags
 
Quote:

Originally Posted by qgil (Post 275227)
...in the Fremantle media player I'm trying out..

Thank you for being so evil. Anything else you want to wave in our faces?

How about, "While I was watching a 720p video on the RX-51 device I'm trying out, I found that the HDMI out wasn't working entirely correctly..."

Quote:

Originally Posted by sjgadsby (Post 276161)
Media Player on 5.2008.43-7 identifies the stream as, "Lush: Mostly female vocals with an electronic influence. [SomaFM]" It also displays the artist and track names as songs play.

Quote:

Originally Posted by qgil (Post 276148)
Weird. Last week clicking the link would at least open the media player and stream. Now it only shows me the pls object in the browser.

And there are your Karmic rewards for your evil deeds.

;)


All times are GMT. The time now is 15:00.

vBulletin® Version 3.8.8