After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 721312 - No thumbnails shown in client
No thumbnails shown in client
Status: RESOLVED OBSOLETE
Product: rygel
Classification: Applications
Component: MediaExport plugin
0.29.x
Other Linux
: Normal normal
: ---
Assigned To: Jens Georg
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2014-01-01 20:30 UTC by John Obaterspok
Modified: 2018-05-22 12:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Shot of xfce tunar and gupnp-av-cp (24.04 KB, image/png)
2014-01-11 11:47 UTC, John Obaterspok
  Details
server: Fix thumbnails on Samsung TVs (2.37 KB, patch)
2016-01-23 17:52 UTC, Jens Georg
none Details | Review

Description John Obaterspok 2014-01-01 20:30:48 UTC
rygel-0.20.2-1.fc20.x86_64
Using MediaExport plugin

I've verified on a Fedora 19 and two Fedora 20 systems that thumbnails are not shown on two different sets of Samsung TV's. Using wireshark I see that the thumbnails are not sent during #Browse (but are sent when using Serviio):

RYGEL:

<item id="ff5bdafc8b6c886931cf7525ffb80bbc" parentID="03fe29fea9cf79265a575549457d26f0" restricted="0" dlna:dlnaManaged="00000010">
<dc:title>IMG_1360_fix.jpg </dc:title>
<upnp:class>object.item.imageItem.photo </upnp:class>
<dc:date>2013-12-05T20:43:17Z </dc:date>
<upnp:objectUpdateID>511 </upnp:objectUpdateID>
<res updateCount="0" size="571027" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00f00000000000000000000000000000" resolution="1620x1080">http://192.168.0.103:53434/MediaExport/i/ZmY1YmRhZmM4YjZjODg2OTMxY2Y3NTI1ZmZiODBiYmM%3D.jpg
</res>
</item>

SERVIIO:

<item id="I_F^FOL_R1$MI7" parentID="I_F^FOL_R1" restricted="1">
<dc:title>IMG_1360_fix.jpg </dc:title>
<upnp:class>object.item.imageItem.photo </upnp:class>
<upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.0.103:8895/resource/7/COVER_IMAGE </upnp:albumArtURI>
<upnp:icon>http://192.168.0.103:8895/resource/7/COVER_IMAGE </upnp:icon>
<upnp:album>bildtest </upnp:album>
<dc:date>2011-05-18 </dc:date>
<res colorDepth="24" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="1620x1080" size="571027">http://192.168.0.103:8895/resource/7/MEDIA_ITEM/JPEG_LRG-0/ORIGINAL </res>
<res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="160x106">http://192.168.0.103:8895/resource/7/COVER_IMAGE </res>
<res colorDepth="24" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="1024x682">http://192.168.0.103:8895/resource/7/MEDIA_ITEM/JPEG_MED-0/MEDIUM </res>
<res colorDepth="24" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000" resolution="640x426">http://192.168.0.103:8895/resource/7/MEDIA_ITEM/JPEG_SM-0/LOW </res>
</item>


I can see that in rygel_visual_item_add_thumbnail_for_uri the call to rygel_thumbnailer_get_thumbnail@179 gets the correct thumbnail back and is then added to the RygelMediaObjects

(gdb) print ((RygelIconInfo*)thumb)->uri
$28 = (gchar *) 0x8256a0 "file:///home/john/.cache/thumbnails/normal/292fc269620516a09910438ab38550d9.png"

But somehow the thumbnail is not sent in the browse response to the client.
Comment 1 Jussi Kukkonen 2014-01-08 10:43:45 UTC
Your debugging results sound a little different, but I'll document this here just in case: tumblerd and current glib disagree about the location of thumbnails**. This leads into a situation where every time rygel needs a thumbnail, this happens:
 * GLib tells Rygel the thumbnail does not exist
 * Rygel tells Tumbler to generate the thumbnail
 * Tumbler will re-generate the thumbnail in a location where GLib (and by extension Rygel) won't find it

This is really annoying and hard to figure out but not a Rygel bug, I'd say. We might have to do something though, this is just broken. There is an easy workaround though: make a symlink from ~/.thumbnails to  ~/.cache/thumbnails.


The problem you describe could be different though: the debugging results do not sound 100% same.



**) Newish GLibs look in  $XDG_CACHE_HOME/thumbnails while tumbler creates them in $HOME/.thumbnails.
Comment 2 Jens Georg 2014-01-08 11:08:56 UTC
Sorry, that's missing from the bug's description, we had fixed that before, somehow the discussion left the mailinglist, sorry about that.

Steps to reproduce on F20 (I still have to check this):

[john@localhost ~]$ mkdir share
[john@localhost ~]$ cd share/
[john@localhost share]$  wget http://www.indiwall.com/big-wallpaper/1024x768/hd-wallpapers-farscape-dominar-rygel-xvi-wallpaper-yvt-1024x768-wallpaper.jpg
[john@localhost share]$  cp /etc/rygel.conf ~/.config

<Now edit ~/.config/rygel.conf and disable tracker and add uri=/home/john/share>
Started rygel
<no thumbnail appear>
Ctrl+c'd rygel
Went with nautilus to share map
rygel
<no thumbnails appear and rygel complains about DBUS thumbnailer missing>
Ctrl+c'd rygel
yum install tumbler
rygel
<No thumbnails appear and no DBUS error message>
Comment 3 John Obaterspok 2014-01-11 11:47:28 UTC
Created attachment 265997 [details]
Shot of xfce tunar and gupnp-av-cp
Comment 4 John Obaterspok 2014-01-11 11:48:39 UTC
I just tried with gupnp-av-cp and I don't get thumbnails there either. So then I can rule out the Samsung TV right?
Comment 5 Jussi Kukkonen 2014-01-12 10:49:14 UTC
(In reply to comment #4)
> I just tried with gupnp-av-cp and I don't get thumbnails there either. So then
> I can rule out the Samsung TV right?

gupnp-av-cp does not show thumbnails IIRC -- it's pretty much only useful in this case for checking if the thumnails are there by looking at the DIDL-Lite (right-clicking an item in the treeview).
Comment 6 Jens Georg 2014-01-16 12:46:50 UTC
Correct. You have to look at the DIDL to see whether it supplied thumbs.
Comment 7 John Obaterspok 2014-01-18 10:04:42 UTC
The DIDL contain no thumbnail:

<?xml version="1.0" encoding="UTF-8"?>
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:pv="http://www.pv.com/pvns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
  <item id="ff5bdafc8b6c886931cf7525ffb80bbc" parentID="03fe29fea9cf79265a575549457d26f0" restricted="0" dlna:dlnaManaged="00000010">
    <dc:title>IMG_1360_fix.jpg</dc:title>
    <upnp:class>object.item.imageItem.photo</upnp:class>
    <dc:date>2013-12-05T20:43:17Z</dc:date>
    <upnp:objectUpdateID>511</upnp:objectUpdateID>
    <res updateCount="0" size="571027" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00f00000000000000000000000000000" resolution="1620x1080">http://127.0.0.1:53434/MediaExport/i/ZmY1YmRhZmM4YjZjODg2OTMxY2Y3NTI1ZmZiODBiYmM%3D.jpg</res>
    <res updateCount="0" size="571027" protocolInfo="internal:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_FLAGS=00f00000000000000000000000000000" resolution="1620x1080">file:///mnt/images/IMG_1360_fix.jpg</res>
  </item>
</DIDL-Lite>
Comment 8 Jens Georg 2014-01-19 13:46:34 UTC
Tried the steps in comment #2, works for me :-/
Comment 9 John Obaterspok 2014-01-20 11:52:53 UTC
Did you see the thumbnail in the DIDL or where did you verify with?
Comment 10 Jens Georg 2014-01-20 12:48:39 UTC
After running nautilus, the thumbnail was available in the DIDL document
Comment 11 Jens Georg 2016-01-23 17:52:07 UTC
Created attachment 319592 [details] [review]
server: Fix thumbnails on Samsung TVs

Signed-off-by: Jens Georg <mail@jensge.org>
Comment 12 John Obaterspok 2016-01-31 14:48:55 UTC
I still dont get any thumbnails on my Samsung TVs.

I wiped .config/Rygel + .cache/thumnails
Then setup a test dir with a few images in. Used Thunar and verifed that I
got an entry in .cache/thumbnails
Finally used rygel from latest git of 31/1 but I stil dont get any thumbnails on two different Samsung models

-- john
Comment 13 GNOME Infrastructure Team 2018-05-22 12:43:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rygel/issues/61.