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

    briankasper New Member

    94
    0
    Dec 1, 2004
    Los...
    I don't think there really is an official "minimum system". I'm running it on a Windows XP system with an AMD Athlon XP 2500+ (1800 MHz) CPU and 1GB of RAM, and it works fine. My computer slows down quite a bit for interactive users when pyTivo is transcoding a video file, but we just live with that.

    To my mind, the biggest concern is your CPU -- video transcoding takes a lot of CPU horsepower. In fact, ffmpeg will use all the CPU cycles it can get, so when pyTivo has to convert a file it's sending to a TiVo, my system CPU usage pegs at 100%.

    pyTivo should run, and convert videos, on pretty much any system. The main problem if your CPU isn't grunty enough will be that you won't be able to transcode videos fast enough to watch them in real time on your TiVo.

    Sorry I can't be more informative. What CPU do you have, what OS are you running, and how much system RAM do you have?

    -Polarweasel
     
  2. briankasper

    briankasper New Member

    94
    0
    Dec 1, 2004
    Los...
    Go to this page: http://pytivo.armooo.net/

    Click on the "Installation" link for your operating system (Windows, Linux, OS X, Solaris, Linksys NSLU2). You're running Vista64, so you should click on "Windows". I've never installed pyTivo on either a 64-bit OS or on Vista, so you may have problems with which I'm not familiar, but it *should* work.

    Follow the instructions you find there.

    The installation instructions have become a bit more complicated of late, as rdian06 has supplied new versions of the Windows installer that install updated versions of the two "forks" (parallel development branches) of pyTivo (thanks, rdian06!). These two installers can be found here:

    wgw's fork: pyTivo-wgw-2008.10.15-RC1.zip http://pytivo.krkeegan.com/download.php?id=114

    wmcbrine's fork: pyTivo-wmcbrine-2008.08.20-RC1.zip http://pytivo.krkeegan.com/download.php?id=115

    Either should work.

    For help on how to configure pyTivo, go to this page: http://pytivo.armooo.net/wiki/ConfigurepyTivo

    -Polarweasel
     
  3. lrhorer

    lrhorer Active Member

    6,924
    1
    Aug 31, 2003
    San...
    If you ask me, nothing "runs" on any computer under Windows. And to the OP, the answer of course is the minimum requirement is a 48 core 50 THz system with a 2000 TB RAID 60 drive array and 800G of RAM running under a radically optimized Linux kernel. :D

    Speaking seriously, briancasper's comments are pretty much on the money. I happen to be running pyTiVo on a 3.0Ghz dual core AMD Athlon 64 under Debian "Lenny" Linux with 8G of RAM and a 160G system drive. The videos are all kept on an 8TB RAID 6 array. Since essentially all my videos were recorded from TiVos in the first place, adn since all my TiVos are Series III class, the system never has to do any transcoding, at all. If the particular content being transferred does not require transcoding, then the CPU utilization is quite, quite low. On the few occasions I have transferred content which did require transcoding, the CPU utilization was not pegged, but then for the time being at least I don't ever transcode HD content. If all you are doing is transferring TiVo-friendly download content, then you won't need much at all in terms of either CPU horsepower or RAM. Hard drive space is of course another matter. HD content can easily gulp down more than 10GB per hour of recording. In addition, transferring very high bandwidth HD content (more than 17 Mbps on average) can be very challenging for the system, even without transcoding. If you are going to transfer much in the way of high bandwidth HD, and it needs transcoding, I suggest you transcode the file prior to transferring it, pyTivo's ability to transcode on the fly notwithstanding.

    This, along with quite a few other reasons is why I prefer a dedicated video / file server. Not that the machine I am using would suffer too greatly from the added stress of just pyTiVo, but the server does nothing but... serve. Since it can do so with peaks exceeding 450Mbps, it has no problem at all serving videos to a handful of TiVos and user workstations. (I often edit and transfer videos from my workstation while programs are downloading to one or more TiVos).
     
  4. briankasper

    briankasper New Member

    94
    0
    Dec 1, 2004
    Los...
    Surprisingly, I find myself disagreeing with you. I've quite a bit of experience with different operating systems, and I have to give Microsoft credit, Windows 2000 was actually their first decent general-use OS. Windows XP is even a nontrivial improvement over Win2000.

    I'd prefer the reliability, security, true multiuser functionality, and ease of remote access of one of the Unixen, but since stuff like Python is available under Windows, I can live with it. We only have one system at home, and my wife and kids need to run some Windows-specific software, so for us the path of least resistance is to run Windows.

    What? No petabyte holographic qubit storage? Ah well, we can always dream.

    Please excuse me while I wipe the drool off my monitor ....

    You make several very good points here. How do you transcode files by hand? Just run ffmpeg with the appropriate options from the command line? We have a mix of stuff downloaded from our S3 and videos in other formats; I occasionally use SUPER, which is a GUI frontend for mencoder and ffmpeg, to convert videos to MPG for serving to our TiVo, but I've never mucked around with it enough to make 100% sure I have the framerate, bitrate, etc. exactly correct so the videos don't have to be transcoded on the fly.

    I'm not able to do anything CPU-intensive when a video is being transcoded to our S3. At present, we're *just* able to get by with a single-CPU system for combined general use and video serving, and I sometimes have to play with relative process priorities to make that happen. I've had my motherboard and CPU for something like 6-7 years, so a computer upgrade is definitely in our immediate future. I'll be going with a quad-core 64-bit CPU, but we'll unfortunately still be running 32-bit Windows, as it works just well enough that I can't justify the potential problems of upgrading the OS.

    -Polarweasel
     
  5. dlfl

    dlfl Cranky old novice

    7,107
    52
    Jul 6, 2006
    Dayton OH
    If you use pyTivoMetaGen and have a preference about the handling of the Title item for series episodes, take a look at this post on the pyTivo forum.

    Post your desires either there or here.
     
  6. Southcross

    Southcross New Member

    238
    0
    Nov 28, 2008
    thanks for the info.... I just installed it today (and have already started a mental wish list of enhancements).

    Right now its being run on a Windows box... Core2Duo 1.8ghz, 2GB ram, 1.5TB storage... so far runs like a champ and blows the standard tivo software out of the water. Only failure i've had so far was with a RealPlayer .RM video, otherwise it transferred every file I tried so far.

    I'm wondering if I could use any of the other machines I have (I have many collecting dust) just to serve files... maybe even just pre-converted/.tivo files. Several PII and a handful of PIII/Celeron machines... RAM ranging from 384MB to 1GB.


    Edit... ok, have to add a comment from pulling my hair out for about 1/2 hour now... "music"
    There is no confirmation/viewable share via the pyTiVo interface that your music share is there, working, what its sharing... it wasn't until I looked out of curriousity that I saw "my music" listed in the "music, pics, etc" section of the Tivo. Seemed a touch counter intuitive
     
  7. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    That's nothing pyTivo can control. It's just where Tivo choose to place it.
     
  8. westside_guy

    westside_guy Annoyingly ephemeral

    464
    1
    Mar 13, 2005
    The soggy...
    I find myself using pytivo for videos, but still using (the Mac version of) Tivo Desktop for my music and photo sharing. Tivo's software handles my iTunes playlists and the like, which I find handy.
     
  9. Southcross

    Southcross New Member

    238
    0
    Nov 28, 2008
    I'm talking about the built in interface http://localhost:9032 that is pyTiVo controlled ;) its not listed as a "share" like the video shares

    Another "bug"? Unless its already a known issue that I just haven't see in the 70+ pages to this thread LOL!

    I get a "no option" error when I try to push a video
    Code:
    No option 'tivo_username' in section: 'Server'
    
    Traceback (most recent call last):
      File "C:\pyTivo\plugins\video\video.py", line 484, in Push
        m = mind.getMind()
      File "C:\pyTivo\mind.py", line 259, in getMind
        username = config.getTivoUsername()
      File "C:\pyTivo\config.py", line 39, in getTivoUsername
        return config.get('Server', 'tivo_username')
      File "C:\Python26\lib\ConfigParser.py", line 540, in get
        raise NoOptionError(option, section)
    NoOptionError: No option 'tivo_username' in section: 'Server'
    
    I assume I need to set an option somewhere?
     
  10. wmcbrine

    wmcbrine Ziphead

    10,439
    55
    Aug 2, 2003
    Only the video shares are listed there because the only purpose of that listing is to allow the use of the push feature, which doesn't apply to music or photos.

    Push requires the username and password that you use on tivo.com.
     
  11. vinman

    vinman New Member

    8
    0
    Sep 21, 2002
    posted this on the pytivo board but since this seems active i guess ill put here as well, any help would be appreciated

    Been using Pytivo for awhile on older computer for awhile but that one had issues so i am trying to install it now on newer Vista box. I downloaded the latest version pyTivo-wgw-2008.10.15-RC1.exe and installed Python 2.61 version. It seemed to install fine. i put the folders like i had them on old server (my conf file is below) and when i go to the tivos i can see the My Video My TV folders but when i select them they are empty? there seems to be alot more options in this conf file then the old one so not sure if im missing some other config i need to change. Any help is appreciated

    thx
    Vinman

    [loggers]
    keys = root

    [handler_rotfile]
    formatter = basicform
    class = logging.handlers.RotatingFileHandler
    args = ('C:\Program Files\pyTivo\debug.log', 'a', 10485760, 5)

    [handler_console]
    formatter = basicform
    class = StreamHandler
    args = (sys.stdout,)

    [My Videos]
    type = video
    path = \\Nas-01-ba-5a\media\Videos\Movies

    [My TV]
    type = video
    path = \\Nas-01-ba-5a\media\Videos\TV

    [Admin]
    tivo_mak = XXXXXXX
    togo_path = C:\downloads\stuff
    type = admin

    [handlers]
    keys = console,rotfile

    [formatters]
    keys = basicform

    [formatter_basicform]
    class = logging.Formatter
    format = %(asctime)s %(levelname)-5s %(name)s: %(message)s

    [logger_root]
    handlers = console,rotfile
    level = DEBUG

    [Server]
    port = 9032
    hack83 = true
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
     
  12. Southcross

    Southcross New Member

    238
    0
    Nov 28, 2008
    ahh... gotcha! :up: seems to be working now :D
     
  13. Clusty

    Clusty New Member

    42
    0
    Jun 11, 2007
    Is there another good XML-metadata site for movies? Movie-xml.com isn't working.
     
  14. dlfl

    dlfl Cranky old novice

    7,107
    52
    Jul 6, 2006
    Dayton OH
    Yes, Netflix has an API that allows you free access to their XML database. This plus TheMovieDB and IVA are used by pyTivoMetagenerator. If your OS is Windows you should try it.
     
  15. PaulS

    PaulS Member

    685
    2
    Sep 16, 2002
    Southern NH
    Never mind. Dlfl beat me to it.
     
  16. dlfl

    dlfl Cranky old novice

    7,107
    52
    Jul 6, 2006
    Dayton OH
    I've added a check box to set whether the episode # and episode name are incorporated into the title item for series episodes.

    Follow the link in my signature to download. Be sure to uninstall any previous version.
     
  17. wgw

    wgw New Member

    217
    0
    May 16, 2007
    That's the way the tivo provides the episode number, season+episode. I'd recommend that any metagenerator do the same. I agree, putting the episode number in the metadata without the season is pointless.
     
  18. wgw

    wgw New Member

    217
    0
    May 16, 2007
  19. Jan 3, 2009 #2099 of 5866
    AZ_Tivo

    AZ_Tivo New Member

    262
    0
    Jan 17, 2005
    AZ
    I am trying to install this on a new Vista machine (logged in as admin). But when I try http://localhost:9032/ I get page cannot be displayed. Also, I cannot stop service from program. I can stop it from the services console. Some basic permission issue here?

    When I stop the service from services and go into console I see the error message. It says name 'logging' is not defined. I am enclosing a screenshot. Can someone help please?


    EDIT : Uninstalled Python 2.5 & 3.0 and installed 2.6 with pytivo again. That took care of it.
     

    Attached Files:

  20. Jan 3, 2009 #2100 of 5866
    AZ_Tivo

    AZ_Tivo New Member

    262
    0
    Jan 17, 2005
    AZ
    Now that ptivo is running fine on my new vista box, I am trying to modify the config for me SD tivo and HD tivo. Can someone tell if this looks ok?

    [Server]
    port=9032
    ffmpeg=C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe

    [My Videos]
    type=video
    path=D:\MyMovies

    [Admin]
    type=admin

    [loggers]
    keys=root

    [handlers]
    keys=console,rotfile

    [formatters]
    keys=basicform

    [logger_root]
    level=DEBUG
    handlers=console,rotfile

    [handler_console]
    class=StreamHandler
    formatter=basicform
    args=(sys.stdout,)

    [handler_rotfile]
    class=logging.handlers.RotatingFileHandler
    formatter=basicform
    args=('C:\Program Files\pyTivo\debug.log', 'a', 10485760, 5)

    [formatter_basicform]
    format=%(asctime)s %(levelname)-5s %(name)s: %(message)s
    class=logging.Formatter

    [_tivo_HD]
    aspect169=True
    audio_br=384K
    video_br=8192
    width=1920
    height=1080
    ffmpeg_prams= -vcodec mpeg2video -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %

    (aspect_ratio)s -comment pyTivo.py -ab %(audio_br)s %(audio_fr)s %(audio_codec)s -f vob -


    [_tivo_SD1]
    aspect169=True
    audio_br=192K
    video_br=4096K
    width=544
    height=480
    ffmpeg_prams= -vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s

    %(aspect_ratio)s -comment pyTivo.py -ab %(audio_br)s %(audio_fr)s %(audio_codec)s -f vob -
     

Share This Page