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 9, 2007 #21 of 5687
    EmptyH

    EmptyH New Member

    7
    0
    Oct 18, 2006
    I've got XP firewall disabled - nothing should be blocking ports anywhere on my network.
     
  2. Jan 9, 2007 #22 of 5687
    EmptyH

    EmptyH New Member

    7
    0
    Oct 18, 2006
    I read one of the known problems:
    "GUID in beacons hardcoded. So only 1 server per network"

    I'm not sure if that means only one pyTivo server per network, or if that includes Galleon and TiVo Desktop. In any case, I shut down Galleon on my computer, and Galleon and Tivo desktop on my roommate's computer, restarted pyTivo and still don't get anything new on my NPL. I tried rebooting the TiVo just for S&Gs, but still no luck.

    Anybody got any other ideas for me to try?

    Thanks.
     
  3. Jan 9, 2007 #23 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    That just means pyTivo servers and pyTivo can easily be modified to add more.

    You really get no response at all in the cmd window huh?? Normally pyTivo spits out a few minor errors. I kinda wonder if it is even up and running.

    I dont know how much experience you have with coding, but you can add a line at the top of pyTivo.py:

    print "Started"

    if you dont see this output when you run pytivo then something isnt right with your python setup
     
  4. Jan 9, 2007 #24 of 5687
    EmptyH

    EmptyH New Member

    7
    0
    Oct 18, 2006
    I figured out what it was! I use Hamachi to connect to my computer at work. I tried closing Hamachi down and it works now. However Hamachi hooks into the system, it messes with pyTivo.
     
  5. Jan 10, 2007 #25 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    I am able to reproduce this and am looking in to it. Galleon seems to be working correctly so I must be doing something wrong.

    I think the http logs get sent to stdout and the ffmpeg output to stderr.

    I don't have MAC, but I am using Python 2.5 some of KRKeegan's fixes may have gotten it running on 2.4(If you run it from a console you should get a better error). You will also need to find a ffmpeg build to your MAC and edit plugins\video\transcode.py line 4 to the path of it.

    I also added a link to a change log in the first post.
     
  6. Jan 10, 2007 #26 of 5687
    turnipsun

    turnipsun New Member

    27
    0
    Jan 14, 2006
    Santa Clarita
    thanks for a response..

    I am super busy, but when I get a chance I will try to work on getting it working on my PPC MAC..
    I'll report back here with my info, so maybe I can help others and if you wana take my steps and post them somewhere..


    ALSO:::!!
    I have the program running on a PC on the network..
    IT IS AMAZING.. It has made me so excited.. I can't wait for updates to make it even better.. I just wanted to say great job and this is a HUGE advancement in TIVO.. atleast in my eyes..

    Chris
     
  7. Jan 10, 2007 #27 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Sorry I had to look up what hamachi was.

    Yes running a VPN will block pyTivo from working. The VPN essentially places your computer on your office lan, so TiVo is never able to see it on your home lan.

    I have never used hamachi but there should be some place in the options to make exceptions for local addresses, but be careful if you use a NAT at the office with the same IP range as home, you may make some problems.

    Kevin
     
  8. Jan 19, 2007 #28 of 5687
    sconfusion1

    sconfusion1 New Member

    3
    0
    Jan 18, 2007
    I'm having a bit of trouble getting this set up. I have Python 2.5 (WinXP) installed and I'm running pyTivo.py from the command prompt, with no Firewalls running.

    The server starts and runs fine, periodically spitting out get requests to the TiVo. However, when I bring up the Now Playing list, there's no Videos folder listed.

    I left the server running overnight and checked the Now Playing list when I woke up, and Videos was listed. After restarting my computer, running the script for five hours, and forcing a service connection, the Videos folder still isn't listed.

    Suggestions, please?
     
  9. Jan 19, 2007 #29 of 5687
    dsandor

    dsandor New Member

    2
    0
    Jan 19, 2007
    I am having a similar situation. Running on Windows XP with no firewall. I can go to a remote pc and hit the pyTivo server with a browser using 'computername:9032' and I get a document 'This is a tivoPY server' which is great.. it shows the program is working.

    Nothing shows in my NPL though. Is there a way to troubleshoot this? I am going to look into the python code a bit to see if I can emit some debug info... any idea of how the tivo discovers other DVR's on the network? I would expect that it pings the active machines in the subnet with an h.t.t.p get..?

    Thanks,
    dsandor
     
  10. Jan 20, 2007 #30 of 5687
    sconfusion1

    sconfusion1 New Member

    3
    0
    Jan 18, 2007
    dsandor,

    Try going to:

    h.t.t.p://127.0.0.1:9032/TiVoConnect?Command=QueryContainer&Container=Video

    ...and see if it returns anything. Mine returns a list of the first ten videos. I'm going to try adding port forwarding to my router and see if that helps.

    ETA: Port forwarding doesn't work.
     
  11. Jan 21, 2007 #31 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Dsander and Sconfusion

    It is hard to say what isnt working for you. I hate to do this but if you download TiVo desktop and enable tivo-to-go does it put a folder at the bottom of your now playing list??

    You must obviously be on the same subnet as your TiVo, I think have 7.2 or greater firmware on TiVo. Must be a tivo standalone box, hmm not sure what the other basic requirements are.

    If you use the link above and see the XML page load then you are having a network or TiVo problem not a pyTivo problem.
     
  12. Jan 22, 2007 #32 of 5687
    Deadpan Science

    Deadpan Science New Member

    22
    0
    Jan 21, 2007
    I just tried to install this. Maybe I'm doing something really stupid that is causing me to have this problem.

    I downloaded python 2.2, installed it, then installed pywin32-210, then I extracted pyTivo146.zip to C:\pyTivo-146. Then I edited pyTivo.py with Notepad++ so that it says:
    I also turned off my firewall just for testing. (If I use the tivo desktop software and put a file in c:\videos it shows up in the now playing list, even with the firewall on)

    then I went to start-> Run and ran

    After I did this I ran services.msc to see if there was a service installed. I saw one for tivo beacon, but nothing obviously related to pyTivo.

    What am I doing wrong here?
     
  13. Jan 24, 2007 #33 of 5687
    sconfusion1

    sconfusion1 New Member

    3
    0
    Jan 18, 2007
    KRKeegan, sorry for the delayed response... I just noticed the Page 2. *sigh*

    I have Tivo Desktop installed and I can transfer files between my PC and Tivo, but the only folder I have in the Now Playing List (with Grouping turned off) is Recently Deleted. The Tivo's visible via my network, and I can access its built-in web browser.

    Do you have any other suggestions?
     
  14. Jan 26, 2007 #34 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    I have been using python 2.5 and pywin32 build 210. You may also want to try running it in a console, that way you will be able to see any errors.

     
  15. Feb 9, 2007 #35 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    armooo

    Looks like you have been taking a much needed coding break. Pipakin has a similar server called Tivo.net. It is substantially more bulky and prone to many more bugs, but from what I understand he is able to avoid the transfer interrupted error at the end of the file.

    He said he passes the same 404 error as you at the end of the file, but the one thing that he does that is different is that he tells TiVo the duration of the file on the front end in the container.tmpl file. I have tried messing with this a little bit, but so far not so much luck for me. I thought maybe you would have more luck.

    Keep up the good work. I like that pyTivo is rather lightweight.

    Edit: On closer inspection I still get an error with Tivo.net, however pipakin and others don't so there is something else going on there.
     
  16. Feb 9, 2007 #36 of 5687
    pipakin

    pipakin New Member

    315
    0
    Jan 22, 2007
    Ouch man...very ouch. :eek:
     
  17. Feb 9, 2007 #37 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA

    aww sorry man. I am not meaning to complain. pyTivo is the southwest of transcoding servers. No frills nothing fancy just do the job. And for many of us Linux guys we prefer that method. Tivo.net has many more features and I think these additional features make it substantially more bulky.

    Plus I dunno, I kinda like how pyTivo only builds a cache if you actually load that folder from TiVo. Now I dont have any folder with more than 30 files in it, and I have a fast server so maybe other people would have problems.

    And I think mono maybe some of my problem, but I ended up with quite a few defunct ffmpeg instances running.

    Honestly I appreciate the work you have done, you have a nice piece of software there, but at the moment it just isn't for me. Maybe some time in the future.
     
  18. Feb 9, 2007 #38 of 5687
    pipakin

    pipakin New Member

    315
    0
    Jan 22, 2007
    *chuckle* I wasn't being 100% serious. Keep up the good work overe here. If I figure out anything on the transfer interrupted front, I'll let you guys know.
     
  19. Feb 10, 2007 #39 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    New Version 147

    I think armooo needed a little break. In the mean time I made a few alterations. The major addition is that the code should work on any python platform now. It has been tested on Windows and Linux.

    Please Note: The configuration file has changed a little please read more below.

    And many thanks again for armooo for starting this. Hopefully he can join us again when he has time.

    Download pyTivo Version 147

    ---Changes
    - Duration has been added
    so now the green bar on the bottom of the screen is accurate. I thought this would help the deleting problem but it didn't.

    - Single form of code
    so now this works with no changes on linux and windows

    - ffmpeg entry in config file
    allows you to move ffmpeg and allows a single version of code for multiple platforms


    ---Usage

    You need to edit pyTivo.conf in 3 places

    1. ffmpeg=
    2. [<name of share>]
    3. path=

    ffmpeg should be the full path to ffmpeg including filename. For windows users the exe has been included and is in the plugins/video directory.
    path is the absolute path to your media

    run pyTivo.py
     
  20. Feb 22, 2007 #40 of 5687
    Enrique

    Enrique Active Member

    5,066
    4
    May 15, 2006
    just ran pytivo.py and got this:
    Traceback (most recent call last):
    File "C:\pyTivo-146\pyTivo\pyTivo.py", line 12, in <module>
    httpd = httpserver.TivoHTTPServer(('', int(port)), httpserver.TivoHTTPHandle
    r)
    File "C:\pyTivo-146\pyTivo\httpserver.py", line 14, in __init__
    BaseHTTPServer.HTTPServer.__init__(self, server_address, RequestHandlerClass
    )
    File "C:\Python25\lib\SocketServer.py", line 330, in __init__
    self.server_bind()
    File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind
    SocketServer.TCPServer.server_bind(self)
    File "C:\Python25\lib\SocketServer.py", line 341, in server_bind
    self.socket.bind(self.server_address)
    File "<string>", line 1, in bind
    socket.error: (10013, 'Permission denied')


    missing something?
     

Share This Page