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. PeteTV

    PeteTV New Member

    44
    0
    May 6, 2006
    This doesn't seem to do anything different... the movieYear doesn't show up.

    Does this require a special version of pyTivo? If so, could you please post a link to a .zip or .tar file?

    Thanks.
     
  2. Danimal4326

    Danimal4326 New Member

    47
    0
    Apr 8, 2003
    Yes, you need the latest beta version..

    Download the latest snapshot from http://repo.or.cz/w/pyTivo/wgw.git
     
  3. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I think that you have to NOT have originalAirDate and you HAVE to have movieYear for mpaaRating to actually work.
     
  4. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Correct. However, my patch to handle mpaaRating automatically suppresses originalAirDate when movieYear is defined. So you have to define movieYear to get mpaaRating, but you don't have to worry about originalAirDate per se.
     
  5. PeteTV

    PeteTV New Member

    44
    0
    May 6, 2006
    OK... I've upgrade... but it looks like the problem I was having isn't related to the version I was using, it's because I'm also trying to use "starRating". I didn't notice the error before, but now I see the following:

    Code:
    ...
      File "/usr/local/pyTivo-2008-01-24-wgw/plugins/video/video.py", line 181, in TVBusQuery
        handler.wfile.write(t)
      File "/usr/lib/python2.5/socket.py", line 255, in write
        data = str(data) # XXX Should really reject non-string non-buffers
      File "/usr/local/pyTivo-2008-01-24-wgw/Cheetah/Template.py", line 990, in __str__
        def __str__(self): return getattr(self, mainMethName)()
      File "_usr_local_pyTivo_2008_01_24_wgw_plugins_video_templates_TvBus_tmpl.py", line 214, in respond
    IndexError: string index out of range
    
    Is "starRating" supported? I'm just using a number (eg. "starRating : 6") in the .txt file. Does it need to be something else?
     
  6. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    no. I think there was a problem. Get the latest version (1.3.0.5) and it should fix that problem. It's supposed to be "starRating : x6"

    The latest version is found in my signature.
     
  7. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    The format for starRating requires another character before the number:

    starRating: x6

    (or a full tuple, but let's not go into that).
     
  8. PeteTV

    PeteTV New Member

    44
    0
    May 6, 2006
    Thanks... that did the trick.

    It certainly would be helpful if there was a little (I hate to use the word "Documentation") README.meta included in the distribution that shows what keywords are supported and the correct format for each value.

    Also in the case of things like mpaaRating, starRating, tvRating, showingBits, where the value is a code, some kind of mapping of the code to the value displayed by the TiVo. (eg, "mpaaRating : P4" == "Rated R").

    The README.meta doesn't need to be a complete document about Metadata... just a list of the keywords, values and code mappings.

    I realize http://pytivo.armooo.net/wiki/MetaData shows some information about the available keywords, but it isn't complete (nothing about mpaaRating, starRating, movieYear) and even for some of the keywords it does include, there's not much detail (eg. showingBits).

    Including a README.meta with the actual distribution would be better because it could be modified as new fields are supported and/or more details are discovered. It also means the user would know what keywords are supported based on the version they have.
     
  9. Enrique

    Enrique Active Member

    5,066
    4
    May 15, 2006
    Need help installing PyTivo: when I try to run Pytivo I get:
    C:\Program Files\pyTivo>run pyTivo.py
    'run' is not recognized as an internal or external command,
    operable program or batch file.

    I have XP SP2
     
  10. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Try "python pyTivo.py". You're taking the README too literally. Where it says "run pyTivo.py", it doesn't mean "type 'run pyTivo.py'"; it means "follow the procedure that constitutes running 'pyTivo.py'". (There are several ways -- you could open a command-line window, or you could use Windows' "Run" command. On a Unix system, you could start it like "./pyTivo.py". You could also start it from a GUI by clicking on the pyTivo.py icon. Etc.)
     
  11. Enrique

    Enrique Active Member

    5,066
    4
    May 15, 2006
    OK I did that, when I am trying to install it as a Service it says 'python' is not recognized as an internal or external command,
    operable program or batch file, When I just click on the pyTivoService.py it still does not install as a Service.

    I did install python.
     
  12. thczv

    thczv New Member

    47
    0
    Dec 20, 2001
    Sacramento, CA
    I had PyTivo working just fine, but I decided to make it better by installing a newer version that would support music playlists. So I installed wmcbrine's latest version. Now some things work and others don't.

    As to video, pytivo looks like it is working. The server is up, and I can browse videos. When I choose one, it gives me the option to transfer it. I tell it to transfer the video, and then I tell it to play the video. But it immediately says I need to wait for more video to transfer. No video ever transfers.

    As to music, if I choose individual mp3 files, they play just fine. Pytivo also sees my playlists, and I can choose to play them. When I try to play playlists, it shows the name of the song, but no music ever plays.

    Any ideas?

    Thanks,
    Dave
     
  13. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Not without more information. Like, what are you seeing in the pyTivo window when these problems occur? (Error messages?) And you might need to post your pyTivo.conf... maybe a problem playlist...

    P.S. When you say my latest version, I assume you mean the one from the "snapshot" link nearest the top of the page here, and not just the last one I posted to this thread? (I guess I should post another...)

    ISTR that Python doesn't add itself to the PATH when you install it. You'd have to do that manually, or use the full path when invoking it.
     
  14. thczv

    thczv New Member

    47
    0
    Dec 20, 2001
    Sacramento, CA
    Right. I mean the latest version from the snapshot at the top of that page.

    I have attached two files, one showing all the text from the pyTivo window when the playlist didn't work. I don't notice any obvious error messages.

    The forum wouldn't let me attach my pyTivo.conf file, but I am including the text of it below.

    I appreciate any help you can offer.

    Thanks,
    Dave

    [Server]
    aspect169 = false
    ffmpeg = h:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    port = 9032
    debug=true

    [Thczv]
    type = video
    path = g:\Video

    [MP3]
    type = music
    path = h:\MP3

    [Playlists]
    type = music
    path = h:\MP3\- Playlists
     

    Attached Files:

  15. wgw

    wgw New Member

    217
    0
    May 16, 2007
    The recent update with "Recurse=Yes" in the title seems to have introduced a problem, perhaps one that only effects Windows. Try downloading a snapshot below that.
     
  16. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    You can attach any type of file by zipping it up first. Or, in this case, just renaming it to ".txt".

    OK, you can't have your MP3's and Playlists in separate shares; it won't work. (You can navigate to "- Playlists" -- is that really the name? -- from within the MP3 share, and they should work then.)

    Now, how about the video problem?
     
  17. thczv

    thczv New Member

    47
    0
    Dec 20, 2001
    Sacramento, CA
    I started out with a single MP3 share, of which the "- Playlists" folder is a subfolder (naming it that way places it near the top alphabetically, so I don't have to scroll all the way down to "P"). I changed it to have playlists as a separate share just to make sure I wasn't having a problem with subfolders (which I had before with video).

    Thanks to your advice I know not to have a separate share for playlists. But for the record, my playlists fail in exactly the same way whether or not they are in a separate share.

    I don't claim to understand this stuff well enough to say for sure. But I am not convinced that my video problem and my playlist problem don't have the same cause. In both cases my tivo acts like it is playing the files, though they don't play.

    Dave
     
  18. thczv

    thczv New Member

    47
    0
    Dec 20, 2001
    Sacramento, CA
    So much for that idea. Following wgw's advice, I switched to an earlier snapshot (the one with the comment "Pointless variable"), and my video started working again. However, my playlists did not start working.

    Here is an interesting twist, though: I noticed that on my Series 2 Tivo I can play plain mp3s, even though I can't play playlists. But on my Tivo HD I can't play mp3s OR playlists.

    Very strange.
     
  19. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Hmm... I hate to say this, but try rebooting the Tivo.
     
  20. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I might do that...
     

Share This Page