 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
baggsey
Joined: 16 Sep 2008 Posts: 15 Location: Illinois
|
Posted: Tue Oct 27, 2009 6:23 pm Post subject: Re: Decoding metadata in .ty+ and .tmf files |
|
|
| dlfl wrote: |
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. |
The genres are unimportant from my perspective, so I'd be inclined to exclude them. I'd like to ensure that station id and channel number are extracted, if at all possible, along with the ususal title, desciption, series title, seriesid, etc..
Do you want me to send you a .tivo file of a movie as well, for an alternative "non-series" test?
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Tue Oct 27, 2009 7:49 pm Post subject: Re: Decoding metadata in .ty+ and .tmf files |
|
|
| baggsey wrote: |
.......Do you want me to send you a .tivo file of a movie as well, for an alternative "non-series" test? |
Yes, please do.
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
baggsey
Joined: 16 Sep 2008 Posts: 15 Location: Illinois
|
Posted: Tue Oct 27, 2009 11:00 pm Post subject: |
|
|
Here is the tivo header for the movie.
| Description: |
|
 Download |
| Filename: |
Tivo Movie.tivo.zip |
| Filesize: |
14.06 KB |
| Downloaded: |
54 Time(s) |
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Fri Oct 30, 2009 2:11 am Post subject: Re: Decoding metadata in .ty+ and .tmf files |
|
|
| baggsey wrote: | The genres are unimportant from my perspective, so I'd be inclined to exclude them. I'd like to ensure that station id and channel number are extracted, if at all possible, along with the ususal title, desciption, series title, seriesid, etc..
................... |
Attached is a new version to try. I've tried to test it to ensure it does no harm for "normal" operation and it also seems to be doing OK for your two test files.
Note that the displayMajorNumber (i.e., channel #) metadata item is not in the xml files that I process for either your .TiVo's or others. I do get the call sign and to achieve display of that there has to be an entry for displayMajorNumber, so I set it to "0" (as for normal files also).
Just replace an already installed version of the executable with the new one. I gave it version 0.40 but will not release it until you test it.
Note this has the command line features just added to Ver. 0.39.
| Description: |
|
 Download |
| Filename: |
pyTivoMetaGen040.zip |
| Filesize: |
13.25 KB |
| Downloaded: |
70 Time(s) |
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
baggsey
Joined: 16 Sep 2008 Posts: 15 Location: Illinois
|
Posted: Fri Oct 30, 2009 3:46 pm Post subject: |
|
|
dlfl - thanks very much for this. I shall try it out when I get home from work. Looks like you were up late working on this - much appreciated!
Out of interest, I came across an old posting on the dealdatabase forum which indicates that a complete mapping of the genre codes to genre names is contained in file /tvlib/tcl/tv/dbEnum.tcl on a TiVo.
Someone went to the effort of extracting the complete genre mapping into an attachment which can be found at http://www.dealdatabase.com/forum/showpost.php?p=270555&postcount=18
although I am unable to read it for some unknown reason.
An earlier post in the same thread gives some examples of associated values for showtypes, genre, and advisory at
http://www.dealdatabase.com/forum/showpost.php?p=261424&postcount=2
So, if you were inclined to convert the genre codes for inclusion in the txt file, this file can probably be the guidelines.
Thanks again.
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Sat Oct 31, 2009 7:43 pm Post subject: |
|
|
| baggsey wrote: | dlfl - thanks very much for this. I shall try it out when I get home from work. Looks like you were up late working on this - much appreciated!
Out of interest, I came across an old posting on the dealdatabase forum which indicates that a complete mapping of the genre codes to genre names is contained in file /tvlib/tcl/tv/dbEnum.tcl on a TiVo.
Someone went to the effort of extracting the complete genre mapping into an attachment which can be found at http://www.dealdatabase.com/forum/showpost.php?p=270555&postcount=18
although I am unable to read it for some unknown reason.
An earlier post in the same thread gives some examples of associated values for showtypes, genre, and advisory at
http://www.dealdatabase.com/forum/showpost.php?p=261424&postcount=2
So, if you were inclined to convert the genre codes for inclusion in the txt file, this file can probably be the guidelines.
Thanks again. |
The tivocom.dll (tivoDecoder) that my program uses doesn't return the numerical codes in the xml text. It returns the bogus text genres. However I downloaded the numerical code file you linked and decoded some of the genre numbers in the xml file you sent. They don't appear to be correct.
I'll attach that genre code file here in case you're still having trouble getting it.
| Description: |
| DealDataBase genre code file |
|
 Download |
| Filename: |
TIVO xml field variable values.txt |
| Filesize: |
9.17 KB |
| Downloaded: |
63 Time(s) |
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
baggsey
Joined: 16 Sep 2008 Posts: 15 Location: Illinois
|
Posted: Sat Oct 31, 2009 10:45 pm Post subject: |
|
|
Excellent! Version 0.40 seems to be very robust, thanks. I've tried it with .tmf files extracted using Tysuitej 2.6 from the following machines:
US Sony SVR-2000 Series 1 running s/w 3.0
HD Dire*TV HR10-250 running s/w 6.3e
UK Thomson Series 1 running s/w 2.55
I've run the .tmf files through "tytotivo" to create the .tivo headers and then used your v0.40 create the txt files, and "tytompg" to create the matching mpg file.
And I've successfully pytivo'd the matching files across from all 3 source TiVos.
A few observations/thoughts:
1) The Genre thing is bugging me. I extracted the DbEnum.tcl file from the TiVo with the "Kojak" episode, and the genre number mapping to genre was the same as the file you downloaded. So the XML gives the genre numbers as 375,380, 124. On the HR10-250 Tivo where the program resides, the program genres are given as "Drama, Mystery/Crime" , (note combination of two genres) which according to the DbEnum file would be 43, 90, 36 for Drame, Mystery and Crime. There must be a more sophisticated mapping.
2) Regardless of the "time :" and "Original Air Date :" set in the txt file, the date and time of the file loaded on the the TiVo is always the date that I created the mpg file, not the original broadcast date. Any ideas? It seems to be the same for all my uses of Pytivo, regardless of your software.
3) The actors names are not being displayed on the TiVo, either embedded before the program description, or present when pressing the "info" button on the TiVo remote, although they are present in the txt file created by PyTivoMetaGen V0.40. This seems to be consistent with txt files created by V0.37 from standard .tivo files extracted from the TiVo Series 3, however.
Pressing the "info" button on a regular Series 3 TiVo show displays Series Title, Episode Title description, content rating and Rating before showing actors, guest stars etc. I dont know if its necessary to generate dummy content rating and program rating for the other actors names, etc to appear?
Anyway - great job!
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Sun Nov 01, 2009 1:36 am Post subject: |
|
|
| baggsey wrote: | Excellent! Version 0.40 seems to be very robust, thanks. I've tried it with .tmf files extracted using Tysuitej 2.6 from the following machines:
US Sony SVR-2000 Series 1 running s/w 3.0
HD Dire*TV HR10-250 running s/w 6.3e
UK Thomson Series 1 running s/w 2.55
I've run the .tmf files through "tytotivo" to create the .tivo headers and then used your v0.40 create the txt files, and "tytompg" to create the matching mpg file.
And I've successfully pytivo'd the matching files across from all 3 source TiVos.
A few observations/thoughts:
1) The Genre thing is bugging me. I extracted the DbEnum.tcl file from the TiVo with the "Kojak" episode, and the genre number mapping to genre was the same as the file you downloaded. So the XML gives the genre numbers as 375,380, 124. On the HR10-250 Tivo where the program resides, the program genres are given as "Drama, Mystery/Crime" , (note combination of two genres) which according to the DbEnum file would be 43, 90, 36 for Drame, Mystery and Crime. There must be a more sophisticated mapping.
2) Regardless of the "time :" and "Original Air Date :" set in the txt file, the date and time of the file loaded on the the TiVo is always the date that I created the mpg file, not the original broadcast date. Any ideas? It seems to be the same for all my uses of Pytivo, regardless of your software.
3) The actors names are not being displayed on the TiVo, either embedded before the program description, or present when pressing the "info" button on the TiVo remote, although they are present in the txt file created by PyTivoMetaGen V0.40. This seems to be consistent with txt files created by V0.37 from standard .tivo files extracted from the TiVo Series 3, however.
Pressing the "info" button on a regular Series 3 TiVo show displays Series Title, Episode Title description, content rating and Rating before showing actors, guest stars etc. I dont know if its necessary to generate dummy content rating and program rating for the other actors names, etc to appear?
Anyway - great job! |
You're welcome. Glad it's working for you.
Could you hand edit a file to explore your idea that dummy items are needed to get vActor items to display? If you find out what's needed I can make the program do this for your .TiVo files. I assume this is only an HR10-250 problem (correct?), so I wouldn't be able to do the testing.
I don't have any ideas for the other two issues -- sorry.
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Wed Dec 02, 2009 6:36 am Post subject: |
|
|
I have tried the zipped installer in 0.40 and seem to get errors.
On Win7, it says it stopped working
On xp-32 bit, it says application failed to initialized properly xC00000135
Is there a 0.40 kit that works?
I've tried 2 win7 systems and an xp one
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Wed Dec 02, 2009 8:41 pm Post subject: |
|
|
| philhu wrote: | I have tried the zipped installer in 0.40 and seem to get errors.
On Win7, it says it stopped working
On xp-32 bit, it says application failed to initialized properly xC00000135
Is there a 0.40 kit that works?
I've tried 2 win7 systems and an xp one |
0.40 was a special version for Baggsey and is just the exectuable file, not an install package. Unless you need the special features incorporated for Baggsey, just download Ver. 0.39 installer from the link given in the first post. Be sure to uniinstall any previous versions you have.
If you actually need 0.40 just install an earlier version then replace the executable with the one in the 0.40 zip.
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
Posted: Wed Feb 03, 2010 9:52 pm Post subject: Ver. 0.41 |
|
|
See first post for changes and download link.
_________________ TiVo HD, Win 7 64bit, Wired Ethernet
Try metagenerator 3 and pyTivoMetaGen
VideoReDo users: try VAP |
|
| Back to top |
|
 |
|
|
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
|
|