Re: [PATCH] upnp: add support for thumbnails



On 20/01/2011 10:35, Jussi Kukkonen wrote:
> 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).
Managed to get that with ryhtmbox's upnp plugin, once you've played a
song that has cover art (does not seem to be persistent over sessions
though). Also, it turns out that if (and only if) it's available with
rhythmbox, it's available with rygel as well, from my experience. Also
it's weird that in both cases, thumbnails are only available for
individual tracks, and only the one that have been played, and not for
the album nor for the non-played tracks in the album...
Oh, and of course, the url provided by rhythmbox doesn't work, and the
one provided by rygel is a file://.
Anyway, I managed to implement that and test it a bit, it's a one-liner
with gupnp_didl_lite_object_get_album_art().
> 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.
In my experience it didn't, but my ~/.thumbnails/large is empty, will
try more with that, and try to support PNG_ and _SN, which will make me
refactor the stuff once again ;)
> 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.
Thanks for making me depressed! Will check that out.

Guij
>  - 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>
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list
>



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