Re: [PATCH] upnp: add support for thumbnails



On 01/19/2011 08:04 PM, Guillaume Emont wrote:
> Thanks for your comments Jussi. I will have a look at these things, and
> also I've seen that I didn't add thumbnail in supported_keys().
> 
> May I ask you if you know of a upnp server/configuration that provide
> albumArtURI and JPEG_SM/PNJ_TN/PNG_SM? I didn't handle these because I
> didn't encounter them, but I should admit I only tried with ubuntu's
> default configurations of rygel and mediatomb.

My tracker/rygel installation seems to be acting up after all the
testing at the moment... but rygel should give you a albumArtURI in the
right conditions, I believe. The DIDL excerpt below is from rygel, I
think (not 100% sure about that though).

I'll check if Rygel gives you large images (as I expect it to) later as
well. I don't think I've actually seen pngs used but if it's in the DLNA
profiles we should try to support it: It would sound smart to use png as
thumbnail format for png images, and I expect that does happen in reality.

Generally speaking http://www.upnp-database.info is an ok place to get
examples (and depressed) about UPnP AV and the implementations... (see
"additional data" tab that exists for many devices).
http://www.upnp-database.info/device.jsp?deviceId=174 seems to have
examples on PNG_* profiles.

 - Jussi



* DIDL item with albumArtURI


<item id="AllMusic,urn:uuid:21a322ea-c210-6941-993b-2623eda0f982"
      parentID="AllMusic"
      restricted="0">
  <dc:title>Soviet-Kuha 3: Painileiri</dc:title>
  <upnp:class>object.item.audioItem.musicTrack</upnp:class>
  <res
importUri="http://127.0.0.1:46808/RygelHTTPServer/Tracker/item/QWxsTXVzaWMsdXJuOnV1aWQ6MjFhMzIyZWEtYzIxMC02OTQxLTk5M2ItMjYyM2VkYTBmOTgy";
size="3553408" protocolInfo="http-get:*:audio/mpeg:*"
duration="0:03:42.000" bitrate="16000" sampleFrequency="44100"
nrAudioChannels="2">http://127.0.0.1:46808/RygelHTTPServer/Tracker/item/QWxsTXVzaWMsdXJuOnV1aWQ6MjFhMzIyZWEtYzIxMC02OTQxLTk5M2ItMjYyM2VkYTBmOTgy</res>
  <res
protocolInfo="http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01100000000000000000000000000000"
duration="0:03:42.000" bitrate="176400" sampleFrequency="44100"
nrAudioChannels="2"
bitsPerSample="16">http://127.0.0.1:46808/RygelHTTPServer/Tracker/item/QWxsTXVzaWMsdXJuOnV1aWQ6MjFhMzIyZWEtYzIxMC02OTQxLTk5M2ItMjYyM2VkYTBmOTgy/transcoded/LPCM</res>
  <upnp:albumArtURI
dlna:profileID="JPEG_TN">file:///home/jku/.cache/media-art/album-9f94c2dd60a23bdcfb0312af5e06e999-46df777d4412d790c4d44f6a3b6db656.jpeg</upnp:albumArtURI>
  <res size="3553408" protocolInfo="internal:*:audio/mpeg:*"
duration="0:03:42.000" bitrate="16000" sampleFrequency="44100"
nrAudioChannels="2">file:///media/music/mp3/Kuha./Soviet-Kuha_3:_Painileiri/sovietkuha_3_painileiri.mp3</res>
  <upnp:artist>Kuha.</upnp:artist>
  <upnp:originalTrackNumber>2</upnp:originalTrackNumber>
  <upnp:album>Telekineettinen Testilaboratorio</upnp:album>
  <upnp:genre>Progressive Rock</upnp:genre>
</item>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]