pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pyTivoMetaGen.exe creates metaData files from .TiVo files
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Other Apps
 View previous topic :: View next topic  
Author Message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Sun Mar 22, 2009 10:36 pm    Post subject: Reply with quote

Sounds like a problem with the tivocom.dll that is normally installed in C:\Program Files\Common Files\TivoDecode. (Is it there?).

This file must be "registered" with Windows in order to be used. It normally is registered by the pyTivoMetaGen installer. It can be registered manually -- just click Start, Run and enter
"regsvr32 tivocom.dll". This will do no harm even if it is already registered.

Do you have .NET Framework 2.0 installed? Look in Control Panel->Add Remove Programs. If not, install it. It coexists with other .NET versions and I'm not sure if the program will work correctly without version 2.0.

Your setup is identical to mine other than possibly the .NET 2.0 issue.

I hope this doesn't mean that some TiVo files have formats that can't be read by tivocom.dll.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
Anomaly



Joined: 29 Jan 2009
Posts: 14
Location: U.S.A

PostPosted: Mon Mar 23, 2009 7:10 pm    Post subject: Reply with quote

dlfl wrote:
Sounds like a problem with the tivocom.dll that is normally installed in C:\Program Files\Common Files\TivoDecode. (Is it there?).

This file must be "registered" with Windows in order to be used. It normally is registered by the pyTivoMetaGen installer. It can be registered manually -- just click Start, Run and enter
"regsvr32 tivocom.dll". This will do no harm even if it is already registered.

Do you have .NET Framework 2.0 installed? Look in Control Panel->Add Remove Programs. If not, install it. It coexists with other .NET versions and I'm not sure if the program will work correctly without version 2.0.

Your setup is identical to mine other than possibly the .NET 2.0 issue.

I hope this doesn't mean that some TiVo files have formats that can't be read by tivocom.dll.

Thank-you for the response. tivocomm.dll is present, and I 're-registered' it just to double tap. .NET versions 2.0 and 3.0 are both installed as well.
Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Tue Mar 24, 2009 2:23 am    Post subject: Reply with quote

Do you have TiVo Desktop installed and MAK registered with it? The Tivocom.dll, if I remember correctly, gets the MAK (which it must have) from a registry entry in My Computer\HKEY_CURRENT_USER\Softare\TiVo\SharingKeys. There are two data items there: TiVoToGo Media and TiVoToGo Metadata

Does your registry have these items?

Also, try re-entering your MAK in TivoDesktop (if you already have it installed).

For some gory details about how the MAK is accessed by Tivocom.dll see the posts staring here in the TivoCommunity forum TVAP thread.

FrooBrar is the author of TivoDecode and the TivoCom.dll.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
Anomaly



Joined: 29 Jan 2009
Posts: 14
Location: U.S.A

PostPosted: Tue Mar 24, 2009 6:11 am    Post subject: Reply with quote

PM sent
Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Sat Jun 20, 2009 9:41 pm    Post subject: Reply with quote

If you want to run pyTiVoMetaGen on a machine without TiVo Desktop installed, see this post.

EDIT: This feature was incorporated in Ver. 0.39.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP


Last edited by dlfl on Tue Nov 03, 2009 3:13 am; edited 1 time in total
Back to top
View user's profile Send private message
bhiga



Joined: 15 Oct 2009
Posts: 1
Location: Oregon

PostPosted: Thu Oct 15, 2009 6:24 am    Post subject: Reply with quote

Great util. Thank you!

Any hopes for a command-line version? Or if one exists, could you point me in the right direction?

I like to script my own processing behaviors.

Brandon
Back to top
View user's profile Send private message
baggsey



Joined: 16 Sep 2008
Posts: 13
Location: Illinois

PostPosted: Sun Oct 18, 2009 9:35 pm    Post subject: Decoding metadata in .ty+ and .tmf files Reply with quote

This is a great tool. I've been trying recently to use it to decode the metadata in .ty+ or .tmf files extracted from my HR10-250 Directivo.

Step 1 - extract .ty+ or .tmf files
Step 2 - convert to .tivo file using tytotivo exe
Step 3 - use PyTivometagen v .37 to extract the metadata.

The txt file is incomplete with

isEpisode : false (even though it has "1" ie true in the xml)
seriesTitle : (blank)
title : (blank)
seriesId : (blank)

All other tags are found. Any ideas why not all data is found? I presume that the xml may either be at a different release level from a series 3 .tivo file. I've attached a copy of the showing.xml being procesed.

Thanks



xmcontent.txt
 Description:

Download
 Filename:  xmcontent.txt
 Filesize:  2.7 KB
 Downloaded:  11 Time(s)

Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Sat Oct 24, 2009 12:00 am    Post subject: Reply with quote

bhiga wrote:
Great util. Thank you!

Any hopes for a command-line version? Or if one exists, could you point me in the right direction?

I like to script my own processing behaviors.

Brandon

No problem. What would you like the arguments to be ? It could process all the .TiVo files in a specified directory or just one that you specify.
Or both modes if that is useful.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Sat Oct 24, 2009 12:13 am    Post subject: Re: Decoding metadata in .ty+ and .tmf files Reply with quote

baggsey wrote:
This is a great tool. I've been trying recently to use it to decode the metadata in .ty+ or .tmf files extracted from my HR10-250 Directivo.

Step 1 - extract .ty+ or .tmf files
Step 2 - convert to .tivo file using tytotivo exe
Step 3 - use PyTivometagen v .37 to extract the metadata.

The txt file is incomplete with

isEpisode : false (even though it has "1" ie true in the xml)
seriesTitle : (blank)
title : (blank)
seriesId : (blank)

All other tags are found. Any ideas why not all data is found? I presume that the xml may either be at a different release level from a series 3 .tivo file. I've attached a copy of the showing.xml being procesed.

Thanks

How do you generate the xml file?

I think to work on this I would need a sample .TiVo file. However, that would normally be a problem due to your media access key being different from mine. Even if I knew your MAK it would still be complicated because PyTiVoMetaGen reads the MAK from the Windows Registry, and I really don't want to be messing with that part of my registry to spoof a different MAK.

If you have a way to generate the xml file automatically as part of your process flow, it might make sense to create a new program that reads that and creates the metadata file. Let me know if you want to try that, and also whether you want a command line program or gui (or both).

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 1226

PostPosted: Sat Oct 24, 2009 12:15 am    Post subject: Reply with quote

bhiga wrote:
Any hopes for a command-line version?

This is built into pyTivo if you use a recent version:

/path/to/pyTivo/metadata.py video.tivo > video.tivo.txt

_________________
My pyTivo fork
Back to top
View user's profile Send private message
baggsey



Joined: 16 Sep 2008
Posts: 13
Location: Illinois

PostPosted: Sat Oct 24, 2009 5:56 pm    Post subject: Re: Decoding metadata in .ty+ and .tmf files Reply with quote

dlfl wrote:

How do you generate the xml file?

I think to work on this I would need a sample .TiVo file. <deleted>......

If you have a way to generate the xml file automatically as part of your process flow, it might make sense to create a new program that reads that and creates the metadata file. Let me know if you want to try that, and also whether you want a command line program or gui (or both).


I agree that it might be better to create a new program to read the xml file and create the pytivo txt file from that, if you're willing to do so. A command line program would be excellent.

Here's my process in more detail:

I initially used the TysuiteJ tool to extract a .tmf file from my HR10-250, which is basically a rar/zip file of the program with the showing.xml metadata concatenated at the end.

I then used a utility called "tytotivo" to create an encrypted .tivo file header file which uses the MAK of the target TiVo where you want to load the file.

tytotivo -m 1234567890 -i tmffile.tmf -o tmffile.tivo

I then wrote a simple BAT exec to break the .tmf file into its separate .ty and showing.xml components, using 7zip.

I have appended two examples of the generated .tivo header files and the extracted raw xml files for both a Kojak episode and a movie.

In the case of the Kojak episode, "is episode" is not identified, as well as blank series title and title, and the genre decoding seems strange.

In the case of the movie, it seems that only the genres are decoded incorrectly.

Would welcome any help you can provide. Thanks again.



tmf2tivo samples.zip
 Description:

Download
 Filename:  tmf2tivo samples.zip
 Filesize:  29.07 KB
 Downloaded:  12 Time(s)

Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Mon Oct 26, 2009 8:40 pm    Post subject: Re: Decoding metadata in .ty+ and .tmf files Reply with quote

baggsey wrote:
............
I agree that it might be better to create a new program to read the xml file and create the pytivo txt file from that, if you're willing to do so. A command line program would be excellent.
..........
I have appended two examples of the generated .tivo header files and the extracted raw xml files for both a Kojak episode and a movie.

In the case of the Kojak episode, "is episode" is not identified, as well as blank series title and title, and the genre decoding seems strange.

In the case of the movie, it seems that only the genres are decoded incorrectly..

It looks like the metadata is in the xml files, just a different format than the current one. I'm hoping the tivodecoder (courtesy of FrooBrar the TivoDecode author) that my program uses to read the xml will read the complete xml data into my program from your .TiVo files (thus my request for one encoded with my MAK per my PM). If so, I can figure out how to parse it and a modified version of my program, which can be command-line driven, will do the trick.

Otherwise we fall back to the idea of a separate program as discussed.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
baggsey



Joined: 16 Sep 2008
Posts: 13
Location: Illinois

PostPosted: Mon Oct 26, 2009 10:47 pm    Post subject: Re: Decoding metadata in .ty+ and .tmf files Reply with quote

dlfl wrote:

I'm hoping the tivodecoder (courtesy of FrooBrar the TivoDecode author) that my program uses to read the xml will read the complete xml data into my program from your .TiVo files (thus my request for one encoded with my MAK per my PM).


Thanks. I've appended the .tivo header regenerated with your MAK - hopefully you can read it. It matches the xml in the previous post. Thanks.



kojak.tivo.zip
 Description:

Download
 Filename:  kojak.tivo.zip
 Filesize:  11.66 KB
 Downloaded:  9 Time(s)

Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Tue Oct 27, 2009 12:45 am    Post subject: New version 0.39 Reply with quote

See the link in my signature for download link and installation instructions.

It now queries for the MAK, and remembers it, if you run it on a machine without TiVo Desktop installed.

Now has a command line mode which is triggered by running the program with appropriate command line args. Run with just '?' as the only arg to get more complete help on CL operation.

If a command line invocation fails to successfully process even one file, a message to that effect pops up, followed by the help (usage) message. This is still a GUI program even when running in CL mode, although if there are no errors you will probably never see a GUI display.

In case you're not aware, you can add command line arguments to a shortcut -- so you can launch CL ops that way, as long as fixed arguments are OK for your app.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
dlfl



Joined: 05 Jan 2008
Posts: 88
Location: Near Dayton, Ohio

PostPosted: Tue Oct 27, 2009 1:42 am    Post subject: Re: Decoding metadata in .ty+ and .tmf files Reply with quote

baggsey wrote:
dlfl wrote:

I'm hoping the tivodecoder (courtesy of FrooBrar the TivoDecode author) that my program uses to read the xml will read the complete xml data into my program from your .TiVo files (thus my request for one encoded with my MAK per my PM).


Thanks. I've appended the .tivo header regenerated with your MAK - hopefully you can read it. It matches the xml in the previous post. Thanks.

The good news is my program can read the xml out of the TiVo you furnished. The bad news is the genre problem. The xml read by the program doesn't exactly match the xml format sample you sent. The genre's are code numbers in your xml while the xml read in (via the tivoDecoder) has strings like "Special" and "Fourth of July" (as you saw). Perhaps the tivodecoder is translating those numbers to genre text strings, which aren't correct for the version you are using.

I think I can parse out the other items (e.g., Title) but the genre's are a problem. How important are they to you? I could rig the program so it didn't output any genre tags for your type file, since it will be able to detect which xml type it's processing.

_________________
TiVo HD, Win 7 64bit, Wired Ethernet
Try pyTivoMetaGen
VideoReDo users: try TVAP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Other Apps All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.3860s ][ Queries: 14 (0.0275s) ][ Debug on ]