cvs-20050320 issues: Playlists, intern. char.

FireFly Media Server Firefly Media Server Forums Firefly Media Server Setup Issues cvs-20050320 issues: Playlists, intern. char.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34
    Gonzo
    Participant

    Hi,

    first of all, let me congratulate you on a great project! I’m running mt-daapd on a Sun Cobalt Qube 3 and I stream to a Roku Soundbridge M1000.

    Actually, this project is now the reason why I just ordered myself a Linksys NSLU2 with a 200GB disk, just to play around with :).

    The 20050305 nightly worked for me, but I still decided to upgrade to 20050320 because some things were still slow/missing/suboptimal.

    20050320 does stream correctly most of the time, but I see the following issues:

    [list3e034798ce][*]Playlists don’t work: Can’t see them in the SoundBridge nor in iTunes (Mac), don’t see anything about playlists in the log files and in the messages, even with -d 9. What’s stranger: Neither -p nor -D playlist seem to print out any playlist information. -D playlist announces that the playlist debug module is active, but then it logs nothing, not even what it logged before. My playlists did work fine with the 0305 nightly. Can it be that playlist support hasn’t been integrated with the new SQL backend yet?

    [*]
    mt-daapd seems to have issues with special characters in artist names when using them in the SQL engine. For example, I have an album by a band called “L’Âme Immortelle”. When browsing through the artists with the soundbridge, I can see “L’Âme Immortelle” displayed correctly on the display. But I can’t select it properly. The logfile dumps the following:

    2005-04-01 17:48:53: Could not compile query: SELECT DISTINCT album FROM songs WHERE ( (artist=’L’Ã?me Immortelle’) )

    . The strange thing is: I can select this artist from iTunes connected to mt-daapd just fine, so at first I thought this was a SoundBridge bug. But then I was able to select this artist from the SoundBridge, connected to iTunes. Something seems to be different in the way mt-daapd connects to iTunes vs. the SoundBridge. When doing an album browse for any album of this artist, stuff is ok and works fine, so walking the directory seems to work as long as you don’t generate a search on strange characters in SQL.

    [*]The SoundBridge seems to be a lot faster in talking to mt-daapd when connecting to the database than iTunes on my Mac. The difference is about a factor of 8, but that’s only a gut feeling. It’s now much better than with 0305 (iTunes with mt-daapd was nearly unusable then), but it’s still a lot. My song collection is around 7000 songs, most of them .m3a.


      I hope this is enough of diagnostic info for now, let me know if you want more.

      Best regards and again, thanks,

      Gonzo

    #3176
    rpedde
    Participant

    Lots of stuff:

    Playlists – With the sql backend, there are no playlists. (!) The playlists are actually sql “where clauses”. Check the nightlies page on the example on how to add playlists manually. Eventually, there will be a web-based interface for adding and editing playlists. I still haven’t decided how to handle static playlists (.m3u) and how to convert existing smart playlists. (perl script, maybe?)

    The other problem isn’t a utf-8 problem (I don’t think), it’s the single quote. I want to say that’s fixed in cvs. I’ll roll another nightly out this weekend that includes that fix.

    As far as speed – the soundbridge connects using browse and query commands — it browses the database as opposed to sucking down the whole thing, like iTunes does. So iTunes initial connect is going to be slow, as it has to pull down a huge clump of data.

    the soundbridge doesn’t — it doesn’t have the memory to do it. So it just queries for what it needs as it needs it.

    How fast does mt-daapd compare using iTunes as a client versus with a real iTunes server and client? It should be pretty close to native speed, I’d think.

    — Ron

    #3177
    Gonzo
    Participant

    Hi Ron,

    thank you for your answers, they helped me a lot!

    Playlists – With the sql backend, there are no playlists. (!) The playlists are actually sql “where clauses”. Check the nightlies page on the example on how to add playlists manually. Eventually, there will be a web-based interface for adding and editing playlists. I still haven’t decided how to handle static playlists (.m3u) and how to convert existing smart playlists. (perl script, maybe?)

    Oops, I must have overlooked that part in the nightlies page :laugh:. So I get to use that SQL knowledge that was sitting in the basement of my mind for some time… Just tried adding a playlist and it worked like a charm. I wonder where iTunes stores it’s playlists and if they are easy to access and read out, I bet it’s XML. Couldn’t find them in obvious places though…

    The other problem isn’t a utf-8 problem (I don’t think), it’s the single quote. I want to say that’s fixed in cvs. I’ll roll another nightly out this weekend that includes that fix.

    Thank you, I’m looking forward to every new build!

    As far as speed – the soundbridge connects using browse and query commands — it browses the database as opposed to sucking down the whole thing, like iTunes does. So iTunes initial connect is going to be slow, as it has to pull down a huge clump of data.

    Got it. Makes perfect sense now.

    How fast does mt-daapd compare using iTunes as a client versus with a real iTunes server and client? It should be pretty close to native speed, I’d think.

    Just did a few tests:
    [list4f0b836322]
    [*] mt-daapd on Cobalt Qube (300 MHz) to iBook over 11Mbps WLAN is approx. 1:00-1:15 minutes.
    [*] iTunes on iBook to iTunes on a Windows XP box over 11Mbps WLAN is approx. 0:15 minutes.


      My database has a size of 7129 songs which were scanned by mt-daapd on the Qube in 56 seconds upon startup in mode 0. Nearly all songs are .m4a, only a few are .mp3. My songs.db file is approx. 11.4 MB.

      Of course my 11 Mbit WLAN network is quite busy: The SoundBridge is now playing smoothjazz.com off the net and my fiancee is browsing the web while I’m doing all of this.

      Top reports the mt-daapd process in the 1-35% range of CPU usage, most of the time it’s in the

    #3178
    rpedde
    Participant

    I wonder where iTunes stores it’s playlists
    and if they are easy to access and read out, I bet it’s XML. Couldn’t find them in obvious places
    though…

    Yup, it’s in the “iTunes Music Library.xml” in your ~/Music directory. The playlists are readable, but the playlist definitions are not. Sadly.

    mt-daapd on Cobalt Qube (300 MHz) to iBook over 11Mbps WLAN is approx. 1:00-1:15 minutes.

    iTunes on iBook to iTunes on a Windows XP box over 11Mbps WLAN is approx. 0:15 minutes.

    Some of that is probably CPU, but not all of it, I wouldn’t think. I know one place I can shave some time off. Let me implement that and see what that does in the next nightly.

    — Ron

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.