This project has moved. For the latest updates, please go here.

Metadata Lookup

Jan 28, 2014 at 8:26 PM
I am using SageTV to record OTA HD TV shows using a Silicondust HDHomerun capture device.
The resulting file is an mpeg recording, with a filename as follows(ShowName-Season#-Episonde#-EpisodeName-Somesort of unique ID in SageTV database-video number(if computer reboots during a recording or something...instead of overwritting file it will increment this last number by one...sageTv knows to stitch these files together on playback):
Example:
TheMindyProject-S02-E14-TheDesert-6134704-0.mpg
SageTV has a plugin that scrapes the recording and generates the following file with the metadata:
TheMindyProject-S02-E14-TheDesert-6134704-0.mpg.properties.

Here is a link to the .propertes file: https://www.dropbox.com/s/8umbcasr3i9n8i5/TheMindyProject-S02E14-TheDesert-6134704-0.mpg.properties

I use MCEBuddy to convert my recordings to .mp4 and to cut the commercials so I can play them back commercial free in plex. Everytime I run MCEBuddy I get the error/email notification that MCEBuddy is unable to download the series information....which I understand since the original file name is not in the format recognized by MCEBuddy. So my question is a feature request...is there a way to set up a mask or something to correctly download the series information since SageTV has a standard filenaming structure? If not is there a way to have MCEBuddy read the .properties file? This would allow me to use the renaming capabilities of MCEBuddy to generate a filename that imports/works well with Plex.
Coordinator
Jan 28, 2014 at 8:50 PM
if this properties file is a standard format, we can setup MCEBuddy to read the metadata from this file.

Open a new issue and put the details there and we'll look into it.


Coordinator
Jan 28, 2014 at 8:56 PM
Also need some clarifiations.

Is this the episode premiere date/time?
OriginalAirDate=1390348800000

I don't see the recorded date and time, where is that?

What is SeriesInfoID and ExternalID and New?

When is Year used? (for movies?)




Jan 28, 2014 at 8:58 PM
Sounds good. One issue I will have with it reading the .properties file is the time delay between the recording and the time that the sagetv plugin generates the .properties file. In looking at the time stamp on some of these files it can be many hours after the recording is finished. Maybe this is something that can be addressed on the sagetv plugin side, I will have to check this out.

If it was able to do it from the filename structure that would eliminate even the need for this plugin on the sagetv side of things.

Dan
Coordinator
Jan 28, 2014 at 9:58 PM
Otherwise set the age delay on the settings page of mcebuddy which will give it time to finish processing before being processed by mcebuddy.

Jan 29, 2014 at 2:06 AM
Maybe this screenshot will help...it is from the web based scraper BMT (SageTV plugin). It lists the OriginalAirDate as: 2014-01-21 19:00 does that number in your post somehow convert to that??? Here is the link to the screenshot. https://www.dropbox.com/s/curqae0xnou10rr/Screenshot%202014-01-28%2021.52.24.png

Here is a link to a movie recorded via SageTV...yes year is for Movies.

https://www.dropbox.com/s/1tzz1ajjkou0ubb/Screenshot%202014-01-28%2022.02.39.png

The age delay sounds like it will work.

Dan
Coordinator
Jan 29, 2014 at 6:37 AM
can you get me a sample properties file for a movie which should help complete the metadat reading. having the tvdb or imdb id is a big plus. is that there for series also?


Jan 29, 2014 at 1:41 PM
Rboy1,

I will get you some samples...however in opening one...I noticed an issue with my Movies and they are not scanning correctly. I have asked a fried to email me one of his properties files. Check out this link, it is the documentation for the SageTV BMT scraping plugin. About half way through the document under the section: "Updating Metadata for a single item" there is a definition for each of the fields in the property file.

https://docs.google.com/document/d/1C-c6NbMOks48GImP4TxDeL-5G3oqsTGHIUwDTdAQ8Ug/mobilebasic
Coordinator
Jan 29, 2014 at 3:26 PM
okay will wait


Jan 29, 2014 at 6:27 PM
OK...here are some files. notice the filename on the first one...it has no extension since it is a folder name...within the Avatar folder is the Video_TS folder as this is a native DVD rip that I have not converted to .mp4 yet (MCEBuddy can't do this conversion so I have been doing them one by one in handbrake)

https://www.dropbox.com/s/49qv1k22lfehfbh/Avatar.properties

https://www.dropbox.com/s/8azobim4raf9fnj/Captian%20Phillips.m4v.properties

https://www.dropbox.com/s/1admo4n8he91cgz/Cars%202.mp4.properties

Here is another TV Show .properties file:

https://www.dropbox.com/s/n64ns293w5hceh3/TheFollowing-S02E01-Resurrection-6131523-0.mpg.properties

Let me know if you need anything else.

Dan
Coordinator
Feb 3, 2014 at 6:35 PM
do you have a sports show properties file also?
Would appreciate another tv series file to validate


Feb 3, 2014 at 7:02 PM
Here are some more TV series files...let me know if you need more. I just grabbed one form ABC, PBS, NBC, and CBS since I had already given you one from FOX.

I do not have any sports show properties files. I would be more than happy to create one, however I do not have cable, so I will probably have to wait until either the Olympics starting later this week or something on one of the over the air stations on the weekend.


https://www.dropbox.com/s/sfatj6o0ahvplrv/GreysAnatomy-PerfectStorm-5310468-0.mpg.properties
https://www.dropbox.com/s/5rmx74ypgqu0nz2/Nature-TheFunkiestMonkeys-6147272-0.mpg.properties
https://www.dropbox.com/s/fmiggfdlnfwzgdq/SaturdayNightLive-S39E14-6151969-0.mpg.properties
https://www.dropbox.com/s/uqfzp0ojhayps1z/TheAmazingRace-S23E03-KingArthurStyle-5967272-0.mp4.properties
Coordinator
Feb 3, 2014 at 7:12 PM
that would be good, any sports show or if you have the definitions for the properties file that would also be enough. I'm trying to see if there is anything in the properties files to indicate if it's a sports show.

2 things I'm missing right now:
1. Sports show identification
2. Recorded date/time (the file only has original aired)


Coordinator
Feb 3, 2014 at 8:27 PM
Okay added support you'll find it in the next build


Feb 3, 2014 at 8:30 PM
Sounds Great! I can't wait to try it!

Dan
Feb 7, 2014 at 1:26 AM
RBoy1,

I see you added the ability to read the SageTV properties file in the early access build. I tried to convert a TV show and I get the error downloading metadata message. How do you enable this feature?
Coordinator
Feb 7, 2014 at 4:26 AM
nothing to enable, get the latest build and ensure the properties file is lying with the source file and has the same name with .properties extension and MCEBuddy will do the rest automatically.


Marked as answer by rboy1 on 2/7/2014 at 1:00 PM
Feb 7, 2014 at 10:21 AM
OK...looks like I have an aging issue as the .properties file does not have all of the metadata. I will test some more.

Thanks,
Dan
Feb 13, 2014 at 11:49 AM
Rboy1,

So I have tested some more and set MCEBuddy to wait/age for 1 hour and it is not performing the metadata lookup. Attached is a log for a recording along with its .properties file. Can you take a look and let me know what you think?

https://www.dropbox.com/s/q4eh6rkj2i0nbp4/NewGirl-S03E16-Sister-6186624-0.mpg-Convert%20to%20MP4-2014-02-11T22-32-45.7539204-05-00.log
https://www.dropbox.com/s/3tsughtcs7wx8u3/NewGirl-S03E16-Sister-6186624-0.mpg.properties

Thanks,

Dan
Coordinator
Feb 13, 2014 at 3:46 PM
That is because your filenames don't match.

Your original file is:
NewGirl-S03E16-Sister-6186624-0.mpg

MCEBuddy is expecting the properties files to be named:
NewGirl-S03E16-Sister-6186624-0.properties

Where as your properties file is:
NewGirl-S03E16-Sister-6186624-0.mpg.properties

That is why it isn't able to find it. Is that something you can configure or is it fixed?
If it's fixed I can adjust MCEBuddy to look for the other filename


Coordinator
Feb 13, 2014 at 3:54 PM
done it'll look for both types of names in the next build.


Feb 13, 2014 at 4:23 PM
Thanks Rboy1! To answer your question it is not something I can configure. It always appends .properties to the end of the filename. As a matter of fact after I run MCEBuddy and it creates a file with the .mp4 extension...it creates a new properties file with the filename.mp4.properties This will work great...thanks for making the change.

Dan
Coordinator
Feb 13, 2014 at 4:27 PM
MCEBuddy generates an XML file. Properties file isnt' a standard used by many programs. However you can write a small script that runs through custom command to copy your original properties file.


Feb 14, 2014 at 7:35 PM
RBoy1,

I tested the new build and it works perfectly! Thank You!!!

Dan
Mar 20, 2014 at 12:26 PM
Rboy1,

I decided to turn MCEBuddy loose on my entire SageTV recording directory. Most of the files are able to read the SageTV .mpg.properties file however a bunch of them give me the unable to download metadata. Below are the .mpg.properties file and the MCEBuddy log for the recording. Can you take a look and see why this was unable to download the metadata. Thanks - Dan.

https://www.dropbox.com/s/xdwfxzmra1umyuw/Survivor-S28E04-OddOneOut-6317701-0.mpg-Convert%20to%20MP4-2014-03-20T06-32-26.1415433-04-00.log
https://www.dropbox.com/s/d3ce27uqapzz04e/Survivor-S28E04-OddOneOut-6317701-0.mpg.properties
Coordinator
Mar 20, 2014 at 12:50 PM
There is a difference between downloading metadata and extracting metadata. If the error is cannot download then it isn't able to find the metadata in the Internet based on what it extracted from the properties file. That is not an error just that the info doesn't exist on any website.

Mar 20, 2014 at 1:40 PM
Rboy1,

I copied the important lines from the log file that I attached. To me it looks like it is unable to extract the metadata....Marker not found???? In my above post I included a link to the .mpg.properties file.


2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracting SageTV meta data
INFORMATION> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracting Generic Tags
WARNING> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Unable to extract meta data from file \TOWER\SageTV\Survivor-S28E04-OddOneOut-6317701-0.mpg. Marker not found
WARNING> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> No recording meta data can be extracted, using Title extracted from file name. If you are running MCEBuddy on a Windows Server, this is normal as the Media Center filters are not available on that platfom.
2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracted Showname from Title -> Survivor-S28E04-OddOneOut-6317701-0
2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted ->
Coordinator
Apr 1, 2014 at 11:16 AM
That's because your properties file is using a different format it doesn't have the tag Title instead it uses MediaTitle. I'll add support for the new tag in the next build.