Media Browser Community Tracker

Music and iTunes plugin

Introduction So for that past couple of months i have been working on the bringing music to MediaBrowser (MB). With this blog i just want to give you guys an idea of how it works and what it supports. I know there are several people (wink wink) that like to tinker with MB and hopefully this will give you an idea of the limits. I will also hint at future developments that i am currently thinking about. Also maybe give you some insight into why i did what i did. I don’t want to make this to long because i know people don’t like to read but rather see results :).

So currently (not released yet) music can come from two sources (this can be simultaneously setup) one is from a normal folder setup another from iTunes' XML library. As for the former you specify the base folder and it displays as is. As for the latter you specify the XML file and it builds a MB compatible library (or cache).

Normal Library I decided to go with a view by folder paradigm because that makes the most sense to me. If i play music i can find it the faster by the folder structure that i setup. Apart from that if i did it another way i would have had to force a specific folder structure and as all of you know reorganizing a lot of music is a cumbersome task.

iTunes Library As for the iTunes setup, the cache is built up just like it is in iTunes with various options to switch off genre and artist, this however is only allowed in a hierarchy fashion. One point on this setup i have to make is i use the xml file because reading it directly from iTunes via their supplied COM interface is really slow. The disadvantage to using the xml file is that the cache has to be rebuilt if any changes occur to the iTunes library. Lastly on this setup, it requires the internet to get the xml definition file. You will get an error if it is not available.

General In general in order for the music plugin not to “break” existing functionality if there is a avi or any video file in the music folder it is seem as a “movie”. Also the plugin will deal with backdrop and folder images as MB does currently. This is both in the normal and iTunes setup. Having said this it wont use the folder image to display as the album cover while playing. For this it uses the image on the ID3 tag. I suggest you use a 3rd party program to save the folder.jpg into the ID3 tag. When it comes to ID3 tags, i did not make use of them because it is also very slow. Maybe in the future i will revisit this.

Ok, so there were various posts asking which media support is required. Currently the plugin will only consider the following as “music”: m4a,mp3,m3u,wma,acc,flac and wpl. Beware of the playlists, they might cause unexpected results especially when it comes to queuing a folder. As part of the options you can enable a playlist folder in the base folder. This is a special folder that media player (MP) saves the playlists that it (you) create. This you will see if you view the queue, there is an option to save the playlist. If you save it and go look in the enabled playlist folder it should be there.

With regards to playlist, i have added the ability to queue folders/songs and as per existing functionality you can play the whole folder. Just push play on the folder/song and a menu will appear. This is however only possible with some remotes. Once again this is something within MB that i cannot change, now.

Things to come You will notice that the feeling (without tweaking) within the plugin is very bare in terms of information and different views. This is because MB’s current plugin architecture does not allow custom MCML (or views). So the plugin cannot “inject” its own new view. This will most likely change in future. Having said this there might be a new theme soon that will have support for music (lets see Craigt). With this I will consider using a “series.xml” type metadata storage or alternatively look at the ID3 tag. Using the former would probably require another 3rd party application which is a disadvantage, and a whole lot of work from your point of view, so it will most likely end up looking at the ID3 tag.

Configurator and plugin options You might remember the eye ball twisting xml file used to configure the plugin. Well it is no more. I have added the ability for plugins to have options that you can setup via the Configurator (CFR). With this it builds up a UI using the settings of the plugin. In terms of the music plugin i think the options are quite clear and you can find them in the CFR by selecting the music plugin and clicking on the Configure button.

Besides making use of the current supported views offered by MB you can specify a song icon to use for your sounds, i however don’t find this particularly appealing.

Thanks Well i hope i covered everything, if you have any questions please don’t hesitate to PM me or post something. If you don’t get a response to your post, please PM me a link. I hope you enjoy the added music ability to our favourite (SA spelling) media center plugin.

I would also just like to say thanks to everyone for the input and the testing. Some chaps that stand out in this regard is jcalton88, craigt, Sam, a couple of buddies back home and well the whole community.

ENJOY …

Post Phoenix Update Thanks to my brother Craigt, i have a site and managed to setup another place to host the plugin. On that site i am hosting Version 0.5.0.8.

To get it you must go to the configurator –> plugins –> Add –> File –> Sources –> Add and enter this url –> http://www.craigthomas.co.za/plugins/plugin_info.xml

Please delete the old music plugin and config file (/plugins/musicplugin.xml) before you update.

Posted by nephelyn on October 05, 2009

16 comments

Craigt Craigt says:
October 06, 2009

Nice post neph. Glad to finally have all my media inside MB. We must get together in a while and figure out how we going to integrate music info into the theme though. Just give me some time to get it mostly completed.

Craig

jcalton jcalton says:
October 06, 2009

Good post, I actually learned(or relearned) a few things about the plug-in I had forgotten.

All in all I think the plug-in works very well, and if you do make it look at the id3 tag for info that will be great, as currently no 3rd party app makes xml files for music, although Mediainfo can batch convert id3 to html, which is very close. Only a couple tag changes to make it compatible.

@ CraigT, I've got a couple ideas, I'll be PMing you later on.

agzaretzka agzaretzka says:
October 12, 2009

This is the plugin I need!

nephelyn nephelyn says:
October 12, 2009

“This is the plugin I need!”

That is what i like to hear!

lappen lappen says:
October 13, 2009

Good job. Though I think the supplied music library in media center is great as it is and I have a hard time thinking the mb version will be better… (as long as all the music is tagged correctly)

But it will be nice to see it in action

Unknown77 Unknown77 says:
October 24, 2009

This is really cool. Any plans on supporting apple lossless (.m4a)?

nephelyn nephelyn says:
October 25, 2009

It does, i just added it after i wrote this blog :)

vinomarky vinomarky says:
January 04, 2010

Hi Nephelyn,

Perhaps an off the wall question, but would you have any idea how hard it would be to add MP3+G support for Karaoke files?

MP3+G is essentially the CD+G CD Karaoke format ripped to MP3 + G (an MP3 file along with the associated CDG lyric/timing information that allows a player to bring up the text to sing along with while playing the MP3 file).

There are a number of free plugins/filters that work with WMP, Winamp etc and even an old one for MCE 2K5, but I cannot find anything for Vista MCE.

Thanks

maverick83 maverick83 says:
January 25, 2010

Hi Nephelyn,

I want to know when your music plugin shown on your webpage is coming?

Thanks

nephelyn nephelyn says:
January 25, 2010

vinomarky, log a feature request on CT.

maverick83, i am not with you, it has been available for the past 6 months. Follow the instructions above to install it.

MusicFan MusicFan says:
January 28, 2010

Hi Nephelyn,

The Music plugin is really cool, but I was just wondering if there has been any recent development or is there any in the near future?

I was hoping that there may be an easier way to play genres, playlists etc… from MB and also when playing anything, is it possible to keep the view in MB, rather than going off to Media Center?

What would be great, would be to be able to play a playlist or random music and when the song changes the view goes to the artist playing and therefore showing off the fanart of that artist in MB.

Also, I'm currently using the Chocolate theme in MB, which is great, but the Vanilla theme now has extra buttons to play the whole album. Any chance this can be added to Chocolate – I realise, this may be down to the developer of the theme, but as this (I believe) is your brother, thought you may have some say in it?

And lastly, have you come across any issues with your musicart program – it always seems to crash for me? Not sure if this is because it is trying to access a fairly large folder, any thoughts?

Many thanks

nephelyn nephelyn says:
January 29, 2010

Mediainfo for music files?

Coolweb Coolweb says:
February 28, 2010

Very nice plugin. But I have one problem with extender, I use transcode 360 for my video and when I choose Play all into the music plugin, it says Cannot start the transcoding process. I set into the configuration of the extender to not transcode mp3,wma and also jpg (yes it is stupid but maybe the music plugin send the jpg to transcode 360, I don’t know). If I choose to only play one music file, it works… Could you help me? Thanks.

Birkoff Birkoff says:
February 28, 2010

I think you need to add additional exclusions for playlist files.

nephelyn nephelyn says:
February 28, 2010

Unknown, log something in CT.

lionking lionking says:
March 08, 2010

Hi

MusicArt was working great until i just upgraded to ver 1.0.1.0. It now shuts down as i try to configure it.

I have tried it on two pc both with windows 7, one is 64-bit and the other 32-bit.

Please tell me what to do, or how to get previous version back.

Great plugin

Thanks

Your Comment

Please login to leave a comment