1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Jul 7, 2010 #2841 of 5687
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Seems to me that pyTivoMetaThis is encountering an error parsing information coming back from thetvdb (it's data source for TV series.) Otherwise you'd see a lot more actor info and an episodeTitle.

    Run it again with a -dddd switch to print all the debugging information.
     
  2. Jul 7, 2010 #2842 of 5687
    PeskyPete

    PeskyPete New Member

    63
    0
    Mar 20, 2010
    Interesting!
    So running pmt (pytivometathis) from an explorer window is one of the issues.
    It has to be run from a dos box.
    Running from a command line (dos box), I am able to pipe the errors to a report file (pytivometathis-0.22.py -dddd > test.rep)

    I now do not get any .txt files generated.
    I have a default.txt file with what I think is the correct series ID, since that's one of the choices pmt gave me when I first ran it:
    seriesId : 77470

    My error report is:
    IMDB module could not be loaded. Movie Lookups will be disabled. See http://imdbpy.sourceforge.net

    Console Input encoding: cp850
    Console Output encoding: ascii
    Metadata File Output encoding: UTF-8

    Error looking information from thetvdb, no metadata will be retrieved for TV shows.

    ## Looking for videos in: .
    fileList after cull: ['The Office S03E01.mpg', 'The Office S03E02.mpg']

    --->working on: The Office S03E01.mpg
    Metadir is: .
    Metadata service for TV shows is unavailable, skipping this show.

    --->working on: The Office S03E02.mpg
    Metadir is: .
    Metadata service for TV shows is unavailable, skipping this show.
     
  3. Jul 7, 2010 #2843 of 5687
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    It looks like when you first attempted to run pyTivoMetaThis, thetvdb was at least partially available because that's where the seriesID comes from. They may have been having problems and didn't return full results.

    For your more recent attempts, it looks like thetvdb is completely unavailable.

    Without a data source, it can't create any output.

    The IMDb error is normal if you didn't install IMDbPY module.

    Thetvdb appears to be up right now, though their announcements mention various MySQL database issues they've been having and fixing.
     
  4. Jul 7, 2010 #2844 of 5687
    PeskyPete

    PeskyPete New Member

    63
    0
    Mar 20, 2010
    Anyone have any insight of why 10-23 didn't get put in the directory?
     
  5. Jul 7, 2010 #2845 of 5687
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    To get pyTivoMetaThis to work with single files passed from the command line, I had to modify the code a bit:

    Code:
    def processDir(dir, MirrorURL):
    	if os.path.isfile(dir):
    		fileList = [os.path.split(dir) [1]]
    		dir = os.path.dirname(dir)
    		dirList = []
    	else:
    		debug(1,'\n## Looking for videos in: ' + dir)
    		(fileList, dirList) = getfiles(dir)
    
    This is how it looked before the mod:

    Code:
    def processDir(dir, MirrorURL):
    	debug(1,'\n## Looking for videos in: ' + dir)
    	(fileList, dirList) = getfiles(dir)
    
    I've got some other mods in place to run it in "batch/function" mode, so it ignores metadata files already in place, and doesn't create any actual files, but rather output's the data to stdout so I can parse what pieces I want/need. But those mods aren't relevant to this topic.
     
  6. Jul 8, 2010 #2846 of 5687
    PeskyPete

    PeskyPete New Member

    63
    0
    Mar 20, 2010
    Well, persistence is paying off.
    I am not a programmer, so debugging code is not my cup of tea.
    However, using the pipe command, and ctrl c'ing the pytivometathis program (because it hangs...), I am able to see somewhat, what is happening.
    I increased the timeout value to the tvdb site, and then found that there were several episodes called "The Office".
    I renamed the episodes to "The Office (US)" and FINALLY, got the prog. to write TWO .txt files. which transferred over into one directory.

    Update:
    All metafiles for my 'real' directory of a complete season of The Office were finally written.
    I believe there were two problems:

    If the timeout setting for tvdb is set too low (default is 5, mine is now 25), and you have a slow connection to the Internet (Either it's my cable company or router s/w), then pytivometathis will time out.

    If your filename (I used "The Office S03E01.mpg") is ambiguous, tvdb will give pytivometathis several choices (including the US and UK versions of the show).
    I am running this in a command box in Windows 7, and I am not presented with these choices at this time, so the program appears to 'hang'.

    Renaming all my videos to "The Office (US) S03E01.mpg" bypassed the choice problem and all meta files were created.
    Pytivo then did the rest!
    I HOPE that my time spent debugging this will aid others.
    Thanks to Rdian06 for pointing me in the right direction.
    Pete
     
  7. Jul 8, 2010 #2847 of 5687
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    There are 4 different 'The Office' on tvdb.com. Try putting 'The Office (US) S03E01.mpg' or 'The.Office.(US).S03E01.mpg' (I prefer to eliminate spaces since it breaks a lot of DOS batch files).

    update: oops, didn't look at the last page of replies on this before posting. Looks like he already figured this out.
     
  8. Jul 8, 2010 #2848 of 5687
    PeskyPete

    PeskyPete New Member

    63
    0
    Mar 20, 2010
    :up: Thanks anyways - point taken re. spaces.
    Yeah, batch and batch type files are always prone to unusual circumstances!
     
  9. Jul 8, 2010 #2849 of 5687
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    When you run the script from a command line, it runs in interactive mode and should print out options if more than one show matches. Perhaps you redirected the output to a file so you weren't seeing the prompts?

    The script also has the concept of non-interactive mode where it will just use the first match if there are multiple matches. It tries to detect whether to be in interactive mode or not, but maybe it's broken on Win7. It works fine for me on Win XP.
     
  10. Jul 8, 2010 #2850 of 5687
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    It used to run in interactive mode for me as well. It works as PeskyPete describes now for me in XP and Vista.
     
  11. Jul 8, 2010 #2851 of 5687
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    I just downloaded a fresh copy of pyTivoMetaThis 0.22 and placed it in a directory alongside three files (0 bytes, only the name matters) named:

    The Office S03E01.mpg
    The Office S03E02.mpg
    The Office S03E03.mpg

    Now if you double click the script from the Windows Explorer, it runs in non-interactive mode and will create two files:

    The Office S03E01.mpg
    The Office.seriesID (which contains 172751)

    This is because of all the possible matches, the first returned match is "The Office (DE)" with a thetvdb seriesID of 172751. In non-interactive mode, the first match is automatically used and "The Office.seriesID" is created.

    Now, if you then switch to the command line and run pyTivoMetaThis from there in interactive mode, it will reuse the data in "The Office.seriesID" and NOT prompt you.

    If you go to Season 3 of The Office (DE) (172751) on thetvdb, there is only one episode in the database - so trying to query S02 and S03 will fail and no metadata files will be created for them.

    Now delete The Office.seriesID and the bogus .txt files so you start again with just the three dummy office mpgs and the pyTivoMetaThis script. Then run pyTivoMetaThis from a command line and because no "The Office.seriesID" file is found AND there are multiple matches for "The Office", the script will prompt you to choose which thetvdb seriesID to use.

    Final note, thetvdb seriesID is NOT the pyTivo/Tivo seriesId (notice the slightly different spellings). They have similar names, but very different formats. thetvdb seriesIDs are assigned by thetvdb and are just numbers. pyTivo/Tivo seriesId values begin with EP or SH and are followed by 6 or 8 digits (you may see some of them written as EP or SH followed by 7 digits in thetvdb database, but these are invalid for Tivo grouping and must be padded with a leading 0 - see http://pytivo.sourceforge.net/forum/gmd-s-python-metadata-generator-grouping-fix-t1058.html.)

    Tivo seriesIds are stored in the thetvdb database as the "Zap2it / SchedulesDirect ID". If you're browsing thetvdb website, you must be logged in to your thetvdb account to see them (go to the Series main page and under Information, click "show/hide edit".) For shows that don't have the Zap2it ID field filled in, you can go to zap2it.com, find the shows main page, and then look at the end of the URL to find the Tivo/Zap2it seriesId (begins with EP.)
     
  12. Jul 8, 2010 #2852 of 5687
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Yes, following you now. I was double-clicking the .py file. If I create a simple batch file that just calls the .py file, it goes back to interactive and asks me to pick the correct series.
     
  13. Jul 8, 2010 #2853 of 5687
    PeskyPete

    PeskyPete New Member

    63
    0
    Mar 20, 2010
    I tried pushing 14 files to Tivo, but only 3 went through. Is there an issue sometimes with sending a lot of files?
    I am trying again, but doing 3 at a time.
    I sent a whole bunch more than that before, so I am a bit surprised.

    Edit:
    Seems to be ok now, sent 3, then 5, and now I'm sending 6 over.
    Network glitch??
     
  14. Kivo

    Kivo Member

    35
    0
    Feb 19, 2003
    I have a Tivo HD and a Premiere. I've been using pyTivo (and kmttg) to push H.264 files encoded with Handbrake to the Tivo HD. It's been working flawlessly for months and still does. However, when I try to push the same exact files to the Premiere, the video only fills a 4:3 portion of the screen with black bars on the sides.

    Does anyone know why this is happening? Is there a setting in pyTivo somewhere that I need to change?
     
  15. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Perhaps you need to upgrade to a version of pyTivo that will recognize the Premiere as an HD unit. That change was made on March 3rd. If it's not that, then I'd look at the settings on the TiVo itself -- make sure the aspect ratio and zoom settings are correct. (Or, if the ostensibly correct setting doesn't work, just set zoom mode to "Full".)
     
  16. Kivo

    Kivo Member

    35
    0
    Feb 19, 2003
    How do I install a new version? I tried downloading the latest zip file and copying the files to my pyTivo directory, but it didn't work. The service started, but when I tried to go to the configuration page I got an error.
     
  17. Kivo

    Kivo Member

    35
    0
    Feb 19, 2003
    I finally got the new pyTivo installed by following Scott's instructions here: http://scottsoapbox.com/2010/04/20/pytivo-install-instructions/#more-976. Thank you, Scott!

    Now, pyTivo is pushing the files perfectly, except for one thing. The audio is stereo, instead of 5.1. The files I'm pushing are MP4 with AC3 and AAC tracks, in that order. The 5.1 plays on the Tivo HD, but not on the Premiere.

    UPDATE: My audio problem was a problem with my system setup. Everything seems to be working great now.
     
  18. sdzc

    sdzc New Member

    101
    0
    Sep 3, 2005
    I am trying to get this installed and am just not getting it.

    I have Python 2.7 installed
    I try to run pyTivo-wmcbrine-2009.03.19-RC1, but this asks for a version of Python of 2.4, 2.5 or 2.6. How/Where do I get a newer version that will work with 2.7?

    Thanks in advance for any help.
     
  19. jcthorne

    jcthorne Active Member

    2,726
    3
    Jan 28, 2002
    Houston
    Click on the link in WMCBRINE's signature a few messages up....download and install the latest version from a few weeks ago.
     
  20. sdzc

    sdzc New Member

    101
    0
    Sep 3, 2005
    I was at that site last night, but which link on the page is the one I want? The "Download Source" button?? If so, I did download that zip file, but what do I do with the unzipped stuff in the folder?

    To be honest, I am looking for an exe file, but do not see one.

    I have this folder now: \wmcbrine-pytivo-af4ac21.zip\wmcbrine-pytivo-af4ac21 on my PC. Just do not know what to do with it.

    edit:

    I uninstalled 2.7 and installed 2.6.6. That allowed the wmcbrine to install, but I cannot open the config file (windows does not recognize the extension and wants to know what program to open it with)
     

Share This Page