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. Jan 1, 2010 #2681 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,404
    43
    Aug 2, 2003
    In recent versions, the option to send doesn't even appear unless you've set those. I guess you're running an old version.

    In recent versions of pyTivo, ffmpeg will be found automatically if it's in the PATH, or in the "bin" directory, which is where I recommend placing it.

    206 is normal.

    Not enough to go on here. Are there any other messages on the console?

    Anyway, I'd guess that the TiVo is dropping the connection. You could try rebooting it.
     
  2. Jan 1, 2010 #2682 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,404
    43
    Aug 2, 2003
    $ python
    >>> import Image
     
  3. Jan 1, 2010 #2683 of 5755
    lex3001

    lex3001 New Member

    54
    0
    Feb 13, 2005
    I started with an old version and added those options. Then I got (gitted?) your latest build and copied over. Anyway, that part is working. Just a suggestiong.

    Cool. Anyway that part is resolved.

    Hmm. No other messages in the console at all. I'll try rebooting the TiVo. Anything else I need to transfer raw .tivo files? Do I need TiVo Desktop installed as well or anything? Any way to verify that transcoding is or is not happening? I am expecting no transcoding, or would like to force that to make it all go faster. Thanks!
     
  4. Jan 1, 2010 #2684 of 5755
    lex3001

    lex3001 New Member

    54
    0
    Feb 13, 2005
    I can initiate the transfer from the TiVo manually and the programs will transfer perfectly. Its only when I use Send To TiVo that they do not transfer.

    I believe the problem is that when "?Format=video%2Fmpeg" is appended to the query string, pytivo is returning an empty file. I can confirm this by manually trying to access the URL for movie from pytivo with and without that query string. Without the query string, IE will let me "download" the whole .tivo file. With query string, Windows Media Center tries to play it but it ends up being a zero byte file. I'm not sure where to go from there, though. Any ideas?

    More info

    I am using your pytivo build Master from Wed, 30 Dec 2009 03:25:51 +0000

    PYTIVO.CONF
    Code:
    [MyMovies]
    type = video
    path = C:\Documents and Settings\All Users\Documents\My Videos
    
    [_tivo_SD]
    
    [_tivo_HD]
    
    [Server]
    tivo_password = ********
    tivo_mak = **********
    ffmpeg = C:\Program Files\pyTivo\bin\ffmpeg.exe
    temp = C:\Documents and Settings\All Users\Documents\pyTivo
    tivo_username = ********
    port = 9032
    

    LOG WHEN INITIATING TRANSFER FROM TIVO (WORKS)
    Code:
    Checking to see if pyTivo is already running . . .
    
    Starting pyTivo Server. Use ctrl+Break to exit.
    
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: MyMovies
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.3.3 [01/Jan/2010 10:49:09] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:09] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:23] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:23] "GET /TiVoConnect?Command=QueryContainer&Container=MyMovies&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:26] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:26] "GET /TiVoConnect?Command=QueryContainer&Container=MyMovies&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2FMyMovies%2FDinosaur%2520Train%2520-%2520Valley%2520of%2520the%2520Stygimolochs%2520Tiny%2520Loves%2520Fish%2520%252809_07_2009%2529.TiVo&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:26] "GET /TiVoConnect?Command=TVBusQuery&Container=MyMovies&File=%2FDinosaur%20Train%20-%20Valley%20of%20the%20Stygimolochs%20Tiny%20Loves%20Fish%20(09_07_2009).TiVo HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:29] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:29] "GET /TiVoConnect?Command=QueryItem&Url=http%3A%2F%2Fa%2Fb%3FContainer%3D%2FNowPlaying%26id%3D%2FMyMovies%2FDinosaur%2520Train%2520-%2520Valley%2520of%2520the%2520Stygimolochs%2520Tiny%2520Loves%2520Fish%2520%252809_07_2009%2529.TiVo HTTP/1.1" 404 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 10:49:31] "GET /MyMovies/Dinosaur%20Train%20-%20Valley%20of%20the%20Stygimolochs%20Tiny%20Loves%20Fish%20(09_07_2009).TiVo
    HTTP/1.1" 206 -
    

    LOG WHEN USING "SEND TO TIVO" (DOES NOT WORK)
    Code:
    Checking to see if pyTivo is already running . . .
    
    Starting pyTivo Server. Use ctrl+Break to exit.
    
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: MyMovies
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 11:13:14] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.3.3 [01/Jan/2010 11:13:14] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jan/2010 11:13:27] "GET /TiVoConnect?Command=QueryContainer&Container=MyMovies HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jan/2010 11:13:27] "GET /TiVoConnect?Command=XSL&Container=MyMovies HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jan/2010 11:13:43] "POST /TiVoConnect HTTP/1.1" 302 -
    INFO:pyTivo:127.0.0.1 [01/Jan/2010 11:13:43] "GET /TiVoConnect?Command=QueryContainer&Container=MyMovies HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jan/2010 11:13:43] "GET /TiVoConnect?Command=XSL&Container=MyMovies HTTP/1.1" 200 -
    INFO:pyTivo:192.168.3.5 [01/Jan/2010 11:14:01] "GET /MyMovies/Dinosaur%20Train%20-%20Beating%20the%20Heat%20Flowers%20for%20Mom%20(09_07_2009).TiVo?Format=video%2Fmpeg HTTP/1.1" 206 -
    
     
  5. Jan 1, 2010 #2685 of 5755
    lex3001

    lex3001 New Member

    54
    0
    Feb 13, 2005
    I think I figured it out. Re-read some wikis and realized that TiVo files don't push without tivodecode, and added

    Code:
    tivodecode = C:\Program Files\kmttg\tivodecode\tivodecode.exe
    to my .conf. It seemed to do something more than before.

    I think I might just configure kmttg to do the decode for me if I still have have issues, but hopefully I am all squared away now. To bad pus doesn't support TiVo files in native format (assuming MAK is the same, as it is in my case).

    Next step... upgrade the HD TiVo hard drive to 1.5GB before transferring everything from my 500GB Series 2....
     
  6. Jan 1, 2010 #2686 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    import PIL succeeds, but import Image fails - any idea how to fix this?
     
  7. Jan 1, 2010 #2687 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    Okay, I created another symlink to the same directory as PIL using Image. The above now results in:

    Code:
    Python 2.5.4 (r254:67916, Jun  2 2009, 02:51:52)
    [GCC 4.2.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import Image
    Image.py:53: RuntimeWarning: Python C API version mismatch for module _imaging:
    This Python has API version 1013, module _imaging has version 1012.
      import _imaging
    >>> quit()

    But running python2.5 I get no warning at all (which is what use to start pyTivo):
    Code:
    Python 2.5.4 (r254:67916, Jun  2 2009, 02:51:52)
    [GCC 4.2.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import Image
    >>>
    And pictures still fail after a complete restart. Any thoughts on further diagnostics?
     
  8. Jan 1, 2010 #2688 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    Okay, ran in command line mode. Here's the error pyTivo is throwing:
    Code:
    ERROR:pyTivo:Could not open /share/Pictures/Fun/Stitched_001.JPG -- 'module' obj
    ect has no attribute 'open'
    INFO:pyTivo:x.x.x.x [01/Jan/2010 17:20:28] code 404, message Not Found
    INFO:pyTivo:x.x.x.x [01/Jan/2010 17:20:28] "GET /Dir%20Photos/Fun/
    Stitched_001.JPG?Width=88&Height=60&PixelShape=40%3A33&Format=image%2Fjpeg HTTP/
    1.0" 404 -
    Weird, since it lists the files, and they definitely exist. Now I'm stumped.
     
  9. Jan 1, 2010 #2689 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    Okay, I fixed it, but there are two issues, one I'd recommend you fix, the other I'm not sure about (both in photo.py):

    1) from PIL import Image - you currently just say import Image, but I believe this is the proper form? It fixed things for me.

    2) The pic.draft()failed with an integer divide by zero, so I just commented out that section.

    Will test some more and let you know how it goes. Any ideas on these issues?

    Thanks.
     
  10. Jan 3, 2010 #2690 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    Still working well. Would recommend you make the above changes (unless you have some reasons for them?).
     
  11. Jan 4, 2010 #2691 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,404
    43
    Aug 2, 2003
    The reason for the .draft() call is a massive speedup on loading, especially for thumbnails, with no real PQ loss. The fact that it doesn't work on your system only suggests that your installation of PIL is broken... which we kind of knew already.

    Similarly, "import Image" is something that works, with a correctly installed PIL. However, I can find no agreement on a preferred form (both appear in the PIL docs). I can include both, for good measure.
     
  12. Jan 4, 2010 #2692 of 5755
    AbMagFab

    AbMagFab What happened, TiVo?

    3,638
    0
    Feb 5, 2001
    Not sure why you think my PIL install is broken? It's just a directory off the python directory.

    There are a number of documented issues with "import Images" from the PIL causing a blank load of the __init__.py file, versus the proper Images.py file. Since the library is PIL, and you're loading Images.py from it, my understanding from the people with issues out there is "from PIL import Images" is the proper syntax, at least on Linux.

    As for the draft, it loads super fast with it commented out. Perhaps the linux ipkg distro has an issue with the draft function? In any case, commenting it out seems to make no difference, either to speed or functionality.
     
  13. vectorcatch

    vectorcatch New Member

    129
    0
    Nov 20, 2008
    I saw this and just thought I should point you guys to a post I made in the pyTiVo forum about the graceful shutdown.

    http://pytivo.sourceforge.net/forum/graceful-shutdown-of-linux-daemon-t1310.html

    I found that I had to make some small changes for it to work correctly, but in the end they weren't too bad.
     
  14. Mar 5, 2010 #2694 of 5755
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    What causes the following error when I try Soft Reset PyTivo -
    Unsupported Command
    Query:

    * Container: ['$quote($container)']
    * Command: ['Reset']
     
  15. Mar 5, 2010 #2695 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,404
    43
    Aug 2, 2003
    Comes from you using a version from between 2/10, when I broke the javascript out into a separate file, and 2/20, when I fixed the obvious problem that came of it no longer being in a template. D'oh!

    Update your installation.
     
  16. Mar 5, 2010 #2696 of 5755
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    thanks - I was going off of old info as I had to do a rebuild of my PC -
     
  17. TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    Hey guys - I'm still using one of krkeegan's builds of pyTivo that I grabbed in Feb 2008. (First consistently stable build I got, after bugs causing crashes on the Tivo were fixed) I grabbed a more recent one a year ago, but never really dove into using it - I've used it a couple of times when the old one didn't like a particular video file for converting.

    So what am I missing by not updating? Or should I just stick with my "if it ain't broke" system? I have very low demands - Series 2 Tivo, and I have my bit rate set to 1024K, so video quality isn't important to me.
     
  18. orangeboy

    orangeboy yes, I AM orangeboy!

    4,085
    0
    Apr 19, 2004
    East Moline, IL
    Where I once worked, the adage had always been: "if it ain't broke, don't fix it". I amended it to include "is a good way to get left behind". If you follow wmcbrine's versions, you can see all the updates here: http://repo.or.cz/w/pyTivo/wmcbrine.git/shortlog
     
  19. dlfl

    dlfl Cranky old novice

    7,056
    27
    Jul 6, 2006
    Dayton OH
    And as you're digesting the several hundred terse comments in the "short log", please do everyone a favor and compile an easily understandable summary of the major improvements since early 2008! :D

    No criticism intended -- free software usually doesn't have "hand-it-to-me-on-a-platter" documentation.
     
  20. orangeboy

    orangeboy yes, I AM orangeboy!

    4,085
    0
    Apr 19, 2004
    East Moline, IL
    Well, one thing the shortlogs show is that the app is not being ignored with development sitting idle!
     

Share This Page