Posted by: darichman
« on: April 10, 2009, 02:16:17 pm »Thanks! I haven't seen that thread - will check it out.
Like Rick, it seems to me that MC's approach to video metadata is certainly less than inclusive (although recent trends indicate this may change at some point)...I gather you're talking about displaying video metadata? Yes, it's completely incomprehensible.
The way PVD refers to fields has changed since this post, but it shows how you can go about creating an mpl from PVD: http://yabb.jriver.com/interact/index.php?topic=47538.msg326313#msg326313
If the resultant MPL were in a folder that MC could pick up in auto-import? I know it's not exactly what you had in mind, but we'd be halfway there at least...
I'm working on something these days, maybe you'll see something within a few weeks
To use PVD as a silent web retrevial engine would just give your sister & husband the impression it doesn't work.As I said earlier in this thread, PVD should ideally feed info/disambiguation back to MC.
Version 1.1 has to be at least a year away, so I hope you don't plan on waiting. I realize you probably want to do it your way, regardless of my opinion. But might the "simpler approach" be something like what I suggest, and still be something you can build on later? If so, you might consider a successful "phase 1" plugin might generate enough interest to make things happen faster.I'm working on something these days, maybe you'll see something within a few weeks
The data integrity we are talking about is "Does the imported meta data correspond to the video I have?"
you still need to review the results and make corrections where appropriate.
It's not just that, though: Some users may have "lesser criteria" on data. For example, some of my friends use MC but complain about the lack of metadata possibilties for movies. Or my sister imports some movies into MC and her husband has no idea what the movies are about. A description, year, director might be nice for them.
But none of them are ready for PVD in its current state.
Some users may have "lesser criteria" on data. ...A description, year, director might be niceThe data integrity we are talking about is "Does the imported meta data correspond to the video I have?" It is not about how many fields from IMDB have been imported. So no you will not reliably get the above data from PVD unless you ensure it is accurately imported into PVD.
If that's the design premise, it's hard to imagine how your plugin will further the development of PVD.Why? You could still use PVD in the way you've always used it and prune the data. And then use an MC plugin for import. The difference would be that more people would use PVD.
I think I'll just add COM server to my TODO list for 1.1. I am pretty sure that it is the most recent version I will be able to concentrate on such things like controlling PVD from another App. Please use a simpler approach until then.
I think I'll just add COM server to my TODO list for 1.1. I am pretty sure that it is the most recent version I will be able to concentrate on such things like controlling PVD from another App. Please use a simpler approach until then.
If that's the design premise, it's hard to imagine how your plugin will further the development of PVD.Why? You could still use PVD in the way you've always used it and prune the data. And then use an MC plugin for import.
But none of them are ready for PVD in its current state.
Yes, but one could still handle data integrity issues with a seamless system. You mentioned a new MC field "DateImportedFromPVD" which could be used to block import. Or some other mechanisms could be used.QuoteI'm interested in a system where the entire operation of metadata import can be done from MC.I don't think the benefits that might be had using this approach would come close to outweighing the data integrity issues I raised above. I wouldn't risk messing-up my database using it, even if it worked. And I'm sure it won't. It's already enough of a challenge controlling "the entire operation of metadata import" directly from PVD.
couldn't the plugin still extract all the data temporarily to XML and import that?Yes, that's exactly what I am saying in the above posts. Use the mechanisms that are already there. (but pass the data through UDP instead)
I'm interested in a system where the entire operation of metadata import can be done from MC.
one somehow has to translate a user configuration into queries via code
If I would need existing data from PVD I would just query the PVD database directly using SQL and then put data into MC using it's API. This seems like most powerful and universal way to me.
Raldo, I don't understand your apparent reluctance to consider this may be the best solution.
If I would need existing data from PVD I would just query the PVD database directly using SQL and then put data into MC using it's API. This seems like most powerful and universal way to me.
It is very difficult for me to say which method is the best as I have never worked with MC and it's API.Well, I was more thinking in general terms. Would you view this as a good "general method" of integrating with a front end type of system?
If I would need existing data from PVD I would just query the PVD database directly using SQL and then put data into MC using it's API. This seems like most powerful and universal way to me.Some other users in your forum have already solved this. I.e. we can Import metadata from PVD.
Another approach that is much easier is to create an export template for PVD and write an import plugin for MC that understands files generated using the template.
If i would need to get data from MC into PVD I would just write an import plugin that uses MC API.
I have no problem adding some kind of communication protocol in PVD if it would make sense, but I do not see a need for this at this point.Fair enough, It's your call..
The way it would work (if possible) is as follows:Here I agree with rick.ca, PVD has put a lot of effort into collecting movie data from various sources so let it do it's job as it was designed to. Implementation options
(i) In MC, select one or more files and select "Import metadata from PVD"
(ii) The MC plugin signals PVD sequentially for each filename with with a request for metadata.
(iii) A receive thread on the PVD side processes each request and initiates a metadata scan.
(iv) When the scan for a file has finalized, PVD signals back to MC, either a disambiguation list of alternatives (as descibed above) or the "one and only result"
(v) If MC receives a list of alternatives, the MC plugin brings up a dialog from which the user can select the correct item. Then, MC requests data from PVD.
(vi) When the MC plugin has received data, it populates fields in the MC db according to user configuration in the MC Plugin.
Communication would take place via UDP.
Alternatively, MC could retrieve the data from the database (using the API some other user provided in "some other thread").
I don't think it's a sensible solution for what's being discussed here. Raldo is considering creating a plugin for J. River Media Center that would pull data directly from the PVD database into MC.