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 715145 - Integrate LMS plug-in
Integrate LMS plug-in
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: rygel-maint
rygel-maint
: 757120 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-11-25 09:03 UTC by Jens Georg
Modified: 2016-01-17 21:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Georg 2013-11-25 09:03:45 UTC
https://git.gnome.org/browse/rygel/log/?h=wip/lms

I filed this bug so we can keep track of the branch and so on and so I have a place where I can drop comments.

First thing: If we were to integrate bug 710704 and this, together with MediaExport we'd have 3 copies of the database management code in Rygel - that's rather ugly.

Also the LMS stuff shares certain similarities with the Tracker plug-in.

Should we start re-designing our database-based plugins to work on common ground?

Have a "DataProvider" thing that can plug either MediaExport, Tracker or LMS and does generic magic on top of that?

Two issues that might arise here are:
 - What to do with the server-side playlists in MediaExport
 - What to do with the directory structure support from MediaExport
Comment 1 Jussi Kukkonen 2013-11-26 09:46:05 UTC
Very proactive!

Agreed on both db management and to a degree on the similarities with tracker: Should try to find things to share. I've been copy-pasting on purpose so far since the code has seen some drastic changes: I'm still not sure if the lms plugin design is that great, but it does seem obvious that e.g. the db management will be very similar.
Comment 2 Jens Georg 2014-02-13 14:18:26 UTC
Looking at https://github.com/profusion/lightmediascanner/commit/a9ede073cde2bbb26f74e04786c55ca93bbaa540 - wouldn't it be more "elegant" to somewhat reuse the gupnp-dlna profiles?
Comment 3 Jens Georg 2014-07-30 06:45:58 UTC
Heads up: I'm planning to move the SqliteWrapper, Database and DatabaseCursor classes to core
Comment 4 Jens Georg 2015-04-01 14:18:41 UTC
Also see 

https://github.com/Pelagicore/Media-Manager-Rygel-LMS-Plugin

For some fixes
Comment 5 Jens Georg 2015-04-24 07:53:54 UTC
And https://git.gnome.org/browse/rygel/log/?h=wip/lms-tizen with fixes from Tizen and rebased against master.
Comment 6 Jens Georg 2015-04-24 07:59:55 UTC
Btw. I had issues with "unfindable objects" because LMS does not seem to index videos very vell (missing video streams, only container information) so the join in find_object fails
Comment 7 Jens Georg 2015-05-05 07:58:19 UTC
Huh... How did it become critical...
Comment 8 Jens Georg 2015-10-26 09:10:17 UTC
*** Bug 757120 has been marked as a duplicate of this bug. ***
Comment 9 tarnyko 2015-11-04 09:55:59 UTC
Hi Jens, folks,

I opened this duplicate (https://bugzilla.gnome.org/show_bug.cgi?id=757120) ; the patch within basically comes from Tizen.

I made a diff with https://git.gnome.org/browse/rygel/log/?h=wip/lms-tizen, and it is basically the same code :). Yes, fully duplicated work, that's what you get for not digging deep enough into branches...

On my side, LMS plugin works well for .wav, .flac files .eg. ; it does not index Ogg Theora well though, but it is more likely a problem in LMS' Ogg implementation (LMS codebase, not Rygel codebse).
I could try to reproduce and debug your video issue, Jens, if you give me a hint on the media files you are using.

Besides this, is there anything preventing LMS plugin from being merged ?
Comment 10 Jens Georg 2015-11-05 11:30:03 UTC
There were some comments based on its usefulness, and despite that I'm currently trying to fix the massive code duplication regarding SQLite access, but basically it should go in this unstable cycle.

Regarding the videos I have to re-check, sorry. It's been some time since I checked.
Comment 11 Jens Georg 2015-11-07 11:51:45 UTC
Regardng the videos, I think I accidently configured the video-dummy engine. I re-checked and with generic it works fine.

But I get tons of

(lt-rygel:18592): Lms-WARNING **: rygel-lms-all-videos.vala:105: Query failed: Unable to find id 2712