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. Dec 7, 2009 #2621 of 5755
    reneg

    reneg Member

    711
    3
    Jun 19, 2002
    Shotgun a few potential causes for WindowsError:
    1) pytivo.conf Configuration
    a) double check your ffmpeg path
    b) double check your path statement in your share
    2) file system
    a) check file permissions
    b) check open file handles
    c) don't share a root directory of a drive, try sharing a subdirectory
     
  2. Dec 7, 2009 #2622 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,405
    43
    Aug 2, 2003
    5353 UDP is for Zeroconf, which is relatively new to pyTivo. I don't know where opening ports is discussed (I've never had to do it).

    You actually have two problems, AFAICT -- opening 5353 should fix one, but it won't help the other.
     
  3. Dec 7, 2009 #2623 of 5755
    reneg

    reneg Member

    711
    3
    Jun 19, 2002
    Sorry I didn't explain it clearer. A WindowsError could be due to open file handle(s) on a deleted file(s). Windows won't remove a deleted file directory entry until all open handles are closed. One common source of handles being left open are from explorer extensions. Rebooting your PC also clears up these quasi-deleted files, so I doubt that this is your issue.

    I use a freeware tool, Unlocker 1.8.8, to close open handles when I run across this type of issue.
     
  4. Dec 7, 2009 #2624 of 5755
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    The error is a result of not having a valid ffmpeg conf line.

    pyTivo needs to know the full path to the ffmpeg executable name. Notice how your conf file has C:\Program Files\kmttg_v0p7b\tivodecode\tivodecode.exe for tivodecode, but your ffmpeg line has C:\Program Files\kmttg_v0p7b\ffmpeg .

    Is that a folder or is that an exe file? If it's a folder, then you need to add the \<ffmpeg file name.exe> to the end of it. If it's the actual exe file, then add the .exe onto the end.

    kmttg is written in Java which may not care about leaving off the .exe or it may allow pointing to the folder that contains ffmpeg.exe, but pyTivo MUST have the actual full path and file name exactly.
     
  5. Dec 7, 2009 #2625 of 5755
    moyekj

    moyekj Well-Known Member

    11,270
    84
    Jan 23, 2006
    Mission...
    Your ffmpeg setting is wrong. You are pointing to directory instead of executable. It should probably be:
    ffmpeg = C:\Program Files\kmttg_v0p7b\ffmpeg\ffmpeg.exe
    EDIT: Rdian06 beat me to it but I'll leave my post anyway.
     
  6. Dec 7, 2009 #2626 of 5755
    jkates

    jkates New Member

    18
    0
    Jun 11, 2002
    That version is the current version for CentOS/RHEL 5.4. I can look at compiling a stand alone version but I would break a lot of the box upgrading the bundled version of Python.

    -Jason​
     
  7. Dec 7, 2009 #2627 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,405
    43
    Aug 2, 2003
    Yeah, so I've read... a good reason to move off that platform, IMHO. Python 2.5 is over three years old already.

    But anyway:

    :)
     
  8. Dec 7, 2009 #2628 of 5755
    jkates

    jkates New Member

    18
    0
    Jun 11, 2002
    :D Thanks for the 2.4 fix.Python is using 2.0% of the CPU and the download is moving along much better than real time. In the pas it was just about real time.

    Thanks Again -Jason​
     
  9. Dec 8, 2009 #2629 of 5755
    Eddief66

    Eddief66 Member

    804
    0
    Oct 24, 2009
    Corpus...
    I'm having a problem with Push. I keep getting the following error:
    Using python ver. 2.6.4 and wmcbrine's latest fork. I thought that it might have been the video format so I used Videora Tivo converter to transcode a video and still get the error but here's no problem pulling any videos no matter what the format. Do I need to use an older version of python?

    Edit: I tried using python ver. 2.4.4 and it didn't make any difference.
     
  10. Dec 8, 2009 #2630 of 5755
    reneg

    reneg Member

    711
    3
    Jun 19, 2002
    Python version should not matter, I'd stick with 2.6.4.

    I recall seeing a problem like this once on push, but am having trouble remembering what I changed to fix it. I don't see how you are initiating the push. Check the syntax of your push command, case is significant. You can also try forcing a transcode with a default.txt file in the same directory as the "push" file. Put

    Override_vCodec: foo

    in the default.txt file.
     
  11. Dec 8, 2009 #2631 of 5755
    moyekj

    moyekj Well-Known Member

    11,270
    84
    Jan 23, 2006
    Mission...
    That means login to tivo mind server is failing. Make sure you have your tivo.com login & password set in pyTivo.conf in Server section:
    tivo_username = ...
    tivo_password = ...
     
  12. Dec 8, 2009 #2632 of 5755
    reneg

    reneg Member

    711
    3
    Jun 19, 2002
    That was it. My memory is worse than I thought.
     
  13. Dec 8, 2009 #2633 of 5755
    Eddief66

    Eddief66 Member

    804
    0
    Oct 24, 2009
    Corpus...
    I could have sworn I did enter those but if that turns out to be the problem I'm going to build a kicking machine for myself. I just downgraded pytivo to an earlier version and I had to manually add a server section and username and password settings but it worked. Only problem is I can only push one video at a time with it and the reason I wanted to get push working is because I could check more than one video and send them all to tivo. I'll go ahead and upgrade again and see how it goes after making sure to enter the username and password.

    Edit: Well it worked. Thanks to both of you for your help. Now I need to start building that kicking machine. :eek:

    Just one more thing. There seems to be a delay before the tivo starts recording with push but with pull it was immediate. Is that normal?
     
  14. Dec 8, 2009 #2634 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,405
    43
    Aug 2, 2003
    Yes. The reason you have to enter your username and password is that, for a push, pyTivo sends a message to a server running at TiVo Inc., to tell the TiVo box to request the file. Later, the TiVo gets the message, and only then actually starts pulling the file from pyTivo. So that's why there's a delay.
     
  15. Dec 8, 2009 #2635 of 5755
    wmcbrine

    wmcbrine Ziphead

    10,405
    43
    Aug 2, 2003
    You'd have to ask them. But, this feature was originally designed to support TiVoCasts (now called Web Videos). It's also used for Amazon VOD. Your TiVo is probably behind a NAT firewall, which makes it a little difficult to contact it directly from outside your LAN. This way, all the requests go outward, which works much better with a typical home network.

    They can stop any functionality at any time. They didn't need to make push work this way for that.
     
  16. cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    We moved recently so I missed some shows so I downloaded a few that I missed. Since I can't get streambaby to work I want to push the show back to the same folder as the others. The only issue I am having is that the show has todays date so it is out of episode order. Is there a way so that I can make it have the correct date so that the episodes are in order on the tivo box?
     
  17. Spenner

    Spenner Member

    88
    2
    Mar 28, 2006
    Nope. With Push, you can put it into a folder, but you can't set the date (it'll always be the date/time it was pushed). If you Pull, you can set the date with a metadata file, but you can't put it into a folder. Yep, bummer.
     
  18. waynomo

    waynomo My One Time TCF Club

    12,357
    73
    Nov 9, 2002
    Seven...
    I am new to this forum so don't know much but . . .

    Have you tried changing the date/time on your PC? Then make a copy. Delete the original and rename the copy. Then change the time back.

    Good luck.
     
  19. moyekj

    moyekj Well-Known Member

    11,270
    84
    Jan 23, 2006
    Mission...
    Most likely the date is set based on TiVo clock when it pulls the file -- the PC clock will have no influence.
     
  20. waynomo

    waynomo My One Time TCF Club

    12,357
    73
    Nov 9, 2002
    Seven...
    I was thinking that he downloaded the file from the internet or some other non-tivo place. I was figuring that since they were in the process of moving that the Tivo wasn't hooked up.

    Of course even in that circumstance I am not sure my idea will work.
     

Share This Page