Art for external URLs on PS3?

  • Pete Fordham

    Pete Fordham - 2010-01-16

    Is there a way to associate some album art with an external URL item?

    I've got mplayer trans-coding a RealAudio streaming radio station to s16be PCM which works with my PS3. Now I want the radio station's logo to appear on XMB.

    If it can't be done can someone give me some pointers on how to add support, I'm having trouble figuring out how the code in interacts with XMBs request for the album art for mp3s and how to add artwork to CdsItem.


  • Pete Fordham

    Pete Fordham - 2010-01-16

    OK after more investigation CdsResource::addResource around line 357 of seems to be involved in all kinds of trickery to do with thumbnails.

    Am I right in thinking this tick is basically adding a second resource immediately after the one you want to have the thumbnail attached to which is the thumbnail itself and mark it as such? Is this what line 271 in is doing?

  • Jin

    Jin - 2010-01-16

    Well that depends… album art for music, or video thumbnail?

    The album art for music is rendered in a different way, so its not quite the same as a video thumbnail.

    The taglib handler adds a second resource, thats right, but it marks it as thumbnail, so that the cds resource manager renderes it as an album art link and not just as a second resource (which would be ok for videos).

    For the PS3 you probably also need to have a DLNA profile tag around there, i.e. the JPEG_TN and the image may not exceed 160x160 pixels.

    So much for the theory…

    Now, I think we have not foreseen a way to add thumbs to external url items, although technically all means are there. I guess the question is: from the user perspective, how would you like to do it?

  • Pete Fordham

    Pete Fordham - 2010-01-17

    I'd like to be able add a URI to point to an external image to use as the artwork as part of the external URL entry. It might be useful to support http:// and file:// and maybe even storing the thumbnail in the database?

    I still don't really understand the structure of the second resource for the art-work. Can you explain what's happening in a bit more detail for album art and video thumbnails.




  • Jin

    Jin - 2010-01-18

    music album art:
    <item id="50821" parentID="50820" restricted="1">
          <res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0" size="7412005" bitrate="24576" duration="00:05:07" sampleFrequency="44100" nrAudioChannels="2"></res>
          <upnp:albumArtURI profileID="JPEG_TN"></upnp:albumArtURI>

    Video picture:
    <item id="51656" parentID="50860" restricted="1">
          <res protocolInfo="http-get:*:video/avi:DLNA.ORG_OP=01;DLNA.ORG_CI=0" size="737662976" duration="01:47:07.3" bitrate="918" resolution="688x288" sampleFrequency="48000" nrAudioChannels="1"></res>
          <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=01;DLNA.ORG_CI=0" resolution="142x59"></res>

    The DLNA crap there is optional.

    Having another field in the web UI and/or allowing to modify the artwork from the playlist parser script may indeed be a good idea and the effort to add that should not be too high, I'll have a look, but better make sure its submitted as a feature request in the tracker so I do not forget about this.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks