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. May 1, 2013 #4221 of 5683
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Is there any way to force pyTivo to not use a cache, preferably on a share basis? I offload programs to DVD, have a video share defined that points to my DVD drive but if I change the disk in the drive, I have to cycle pyTiVo to get it to recognize the new disk.
     
  2. May 1, 2013 #4222 of 5683
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    It's been a long time since I've run pyTiVo as a windows service, but I think it has to do with file permissions.

    I believe the service uses the Local System account by default. You can either go to the services control panel and change the pyTiVo properties >'Log On'> Logon on as... user to yourself, or give the Videos folder 'System' permission.
     
  3. May 1, 2013 #4223 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    I'll give that a shot - thanks!
     
  4. May 1, 2013 #4224 of 5683
    gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    Let us know how it goes. I'm still looking to improve the windows installation directions on the wiki(happy to see that most of it worked for you!), and the service installation part obviously needs more work.
     
  5. May 1, 2013 #4225 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    I tried both suggestions, but no joy. :(


    ETA: added logging per the post above and nothing looks out of the ordinary:

    2013-05-02 11:28:54,648 INFO pyTivo: Last modified: Tue Apr 30 10:17:46 2013
    2013-05-02 11:28:54,648 INFO pyTivo: Python: 2.7.4
    2013-05-02 11:28:54,648 INFO pyTivo: System: Windows-7-6.1.7601-SP1
    2013-05-02 11:28:54,684 INFO pyTivo.beacon: Scanning for TiVos...
    2013-05-02 11:28:56,101 INFO pyTivo.beacon: Arthur
    2013-05-02 11:28:56,102 INFO pyTivo.beacon: Announcing shares...
    2013-05-02 11:28:56,104 INFO pyTivo.beacon: Registering: MyMovies
    2013-05-02 11:28:56,904 INFO pyTivo: pyTivo is ready.
     
  6. May 2, 2013 #4226 of 5683
    lofty17

    lofty17 New Member

    13
    0
    Oct 4, 2006
    I don't have hearing aids yet, but maybe someone else here knows someone who is happy with theirs.

    It was a 10 years from now kind of comment. :)

    Larry
     
  7. May 2, 2013 #4227 of 5683
    newsposter

    newsposter Poster of News

    34,262
    6
    Aug 18, 2002
    SE PA
    if you get get it to run every time upon boot id be impressed. i have a batch file i made up and even that wont start upon every bootup
     
  8. May 3, 2013 #4228 of 5683
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    It sure sounds like a user permissions in service mode issue and I'm surprised that neither suggestion helped. It's hard to tell what's going on with the information provided. Could it be related to firewall or virus scanning? It may be worth trying to remove the service, copy the pytivo directories to c:\pytivo, and reinstalling the service in the new location.
     
  9. May 3, 2013 #4229 of 5683
    pmiranda

    pmiranda New Member

    669
    0
    Feb 12, 2003
    Austin, TX
    I'm pretty sure I had the same issue with Win7 and got it working as a service.
    In the Services program, right-click pyTiVo, select Properties, and go to the Log On tab.
    I have mine set to log in to the same account that I have windows auto-log-on to, and it's an admin account (Not Administrator, but with admin privileges). It also has my password in there.

    Then make sure the folder you're trying to share is readable by that account.
    I run pytivo right out of C:\Program Files\PyTiVo
    It makes it a pain when you want to update since winzip can't extract directly to Program Files, but that just reminds me to copy a backup of the old install in case I break something.
     
  10. May 3, 2013 #4230 of 5683
    wkearney99

    wkearney99 Bill Kearney

    1,919
    3
    Dec 5, 2003
    Bethesda,...
    Yep, if you're going to run as a service it often helps to log in manually as the account that's going to run the service and make sure the account has effective privileges to access anything it needs to properly run the program. This means read access to where the media files are stored and also write access to where the logs are written. Note that read access to media files may also mean it needs read access to parent directories leading down to it.

    Whatever you do, don't cop out and open up the privileges wider than necessary. As in, don't make the whole tree read/write for everyone. And don't run it as a user that belongs to any administrator groups! Those are ways malware gain access to or abuse your system. You want services running with as little access as is necessary and NO MORE.
     
  11. May 3, 2013 #4231 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    I have no trouble at all when running pyTivo from the command line, so wouldn't that rule out firewall and virus protection problems?

    All of the pytivo directories are already in c:\pytivo - I installed them there in the first place.

    I did exactly that - changed the Log On to use my own username and password, which has Administrator privileges.

    The folder is definitely readable by that account. I created the folder with that account.

    I'm puzzled, but again all works just fine when running pyTivo from the command line. So it's not a big deal, but it would be nice to run it as a service instead.

    Maybe later today I'll delete the service and re-install it just for kicks.
     
  12. May 3, 2013 #4232 of 5683
    wkearney99

    wkearney99 Bill Kearney

    1,919
    3
    Dec 5, 2003
    Bethesda,...
    Where are the video files? Are they in a directory inside c:\pytivo, or somewhere else? It might help if you post your pytivo.conf file (just redact your MAK, tivo username and password from it)
     
  13. May 3, 2013 #4233 of 5683
    wkearney99

    wkearney99 Bill Kearney

    1,919
    3
    Dec 5, 2003
    Bethesda,...
    It might also help if you used the windows CACLS.EXE program to show the existing privileges on the directories. As in, "cacls c:\pytivo" and also on where ever you've got the video files stored. Post the responses you get from it.

    EDIT: Technically the CACLS.EXE program has be supplanted by the ICACLS.EXE program, which will show you a bit more information.
     
  14. May 3, 2013 #4234 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    pytivo.conf:

    Code:
    [Server]
    port = 9032
    ffmpeg = c:/pytivo/bin/ffmpeg.exe
    tivo_username = **********
    tivo_password = **********
    tdcat = c:/pytivo/bin/tdcat.exe
    tivodecode = c:/pytivo/bin/tivodecode.exe
    
    [MyMovies]
    type = video
    path = c:\videos
    
    [_tivo_SD]
    
    [_tivo_HD]

    Code:
    C:\>cacls c:\pytivo
    c:\pytivo BUILTIN\Administrators:(ID)F
              BUILTIN\Administrators:(OI)(CI)(IO)(ID)F
              NT AUTHORITY\SYSTEM:(ID)F
              NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(ID)F
              BUILTIN\Users:(OI)(CI)(ID)R
              NT AUTHORITY\Authenticated Users:(ID)C
              NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(ID)C
    
    C:\>cacls c:\videos
    c:\videos BUILTIN\Users:(OI)(CI)F
              BUILTIN\Administrators:(ID)F
              BUILTIN\Administrators:(OI)(CI)(IO)(ID)F
              NT AUTHORITY\SYSTEM:(ID)F
              NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(ID)F
              BUILTIN\Users:(OI)(CI)(ID)R
              NT AUTHORITY\Authenticated Users:(ID)C
              NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(ID)C
    
     
  15. May 5, 2013 #4235 of 5683
    wuzznuubi

    wuzznuubi New Member

    118
    0
    Jan 16, 2013
    Just a guess, but replace the forward slashes (/) with backslashes (\) since you're on Windows.
     
  16. May 5, 2013 #4236 of 5683
    wkearney99

    wkearney99 Bill Kearney

    1,919
    3
    Dec 5, 2003
    Bethesda,...
    I can't recall if the / vs \ makes a difference in the conf file, but mine running on windows uses the \ backslashes.

    I didn't see a a redacted line for "tivo_mak = ", is it not present or did you just remove it entirely? Not that I think it would make a difference regarding the problem you're having.

    For giggles, create a subdirectory under c:\pytivo and put some videos in there. Then create a section for them:
    Code:
    [test]
    type = video
    path = c:\pytivo\video
    
     
  17. May 5, 2013 #4237 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    Just tried that, but no difference.

    I never entered that because I don't use TivoToGo. My impression from the install instructions was that I wouldn't need it. That, coupled with the fact that everything works perfectly when running from the command line, would indicate it's unnecessary. Am I wrong there?

    I'll try that next. Thanks.
     
  18. May 5, 2013 #4238 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    Tried that, and although on the Now Playing list I do see the "test" folder as well as the "MyMovies" folder, both remain empty.

    When I stop the Service and start pyTivo from the command line, all programs show up as expected.
     
  19. May 5, 2013 #4239 of 5683
    wuzznuubi

    wuzznuubi New Member

    118
    0
    Jan 16, 2013
    Do you have any other versions of Python installed on your PC?
    Did you download and install the pywin32-218.win-amd64-py2.7.exe?
    Do you get this when you open a cmd window, cd to C:\ and type Python.exe
    Code:
    C:\>Python.exe
    Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> ^Z
    Check your system environment PATH to see if it might be pointing to another python version or directory
    Code:
    C:\>PATH
    PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python27
    Can you get to the pyTivo Web Configuration page when just the service is running?
    Try http://localhost:9032/

    Try changing the beacon address (set to IP address of your TiVoHD) or zeroconf settings (try True or False)

    I've always run pytivo from the commandline, but I just installed it as a service and it works fine (Win7-64bit).
     
  20. May 6, 2013 #4240 of 5683
    scooterboy

    scooterboy Coney Island Small

    29,943
    24
    Mar 27, 2001
    East...
    Answers in bold below:

     

Share This Page