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. Jun 9, 2009 #2321 of 5684
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    From some past experiments it was determined at least for certain resolutions you can get non-16:9 ratios to display correctly (with bars). In some cases setting proper PAR/DAR settings is all that is needed for it to display correctly. See this thread starting at this post for some examples:
    http://www.tivocommunity.com/tivo-vb/showthread.php?p=7154170#post7154170
    TivoHD does a much better job than the original S3 series units at proper scaling and MP4 decoding in general (not too surprisingly).
     
  2. Jun 9, 2009 #2322 of 5684
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    As I use this function quite a bit, I've come to the conclusion that for 1080i and 1080p resolutions, TivoHD handles non 16:9 aspect ratios correctly almost every time. For 720p, It does not. Sometimes it does. Sometimes setting the display aspect ratio correctly fixes it, sometimes not. I have taken to re-encoding all vids that are not full frame 720p to add the black bars. They ALWAYS display correctly then. Far too much trouble to remux to an mp4 container, transfer to tivo only to find out the vid does not play correctly and do it again.

    For 1080p video, I just remux and send, it mostly always works unles the vid has other problems. Does take a good bit more storage space though and my displays do not handle 1080p.
     
  3. Jun 9, 2009 #2323 of 5684
    cherry ghost

    cherry ghost Active Member

    5,281
    6
    Sep 13, 2005
    Chicago
    Thank you
     
  4. spocko

    spocko TiVo HD

    433
    1
    Feb 4, 2009
    I have a MPG file which plays back with no audio when pulled to my Tivo via pyTivo. The file originated as a VOB ripped from a DVD. I have tried renaming the original VOB to MPG, and also tried converting it to MPG the VOB2MPG program. Either way I get no audio when the resulting MPG is played on my Tivo. The audio plays fine on my PC. Anyone have any ideas?

    ----------------------------------
    Edit:

    Nevermind, I found the answer here:
    http://pytivo.krkeegan.com/how-to-make-mpegs-vobs-compatible-with-tivo-and-pytivo-t366.html

    My issue above was because I did not rip the primary audio track when I ripped the DVD. Mpeg Streamclip takes care of this, but VOB2MPG does not.
     
  5. pcbrew

    pcbrew New Member

    101
    0
    Mar 14, 2008
    DFW
    Is the site down?

    I cannot access or even ping: http://pytivo.armooo.net
     
  6. loganasu

    loganasu I'm a lurker

    286
    0
    Jan 17, 2005
    Yes, It appears to be down. (or at least I can't get to it, either.)
     
  7. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    No luck here either. I guess I will hold off on installing it.
     
  8. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
  9. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Thanks I think I have it installed correctly. Now I have some reading to do on initial setup.

    EDIT: Site is back up now. Now if I can figure out why my videos aren't showing up.
     
  10. pcbrew

    pcbrew New Member

    101
    0
    Mar 14, 2008
    DFW
    Thanks Rdian06!
    Let me preface this my saying I am doing this on WHS - an HP Mediasmart EX485, and I also have the Tivo Publisher service installed, in case that matters... However, as has been noted, Tivo Publisher is slow transferring, not clear if it is transcoding all the time and I also do not get the HD photo's checkbox to enable hi-res JPEGs.

    In a quest for faster transfers, I decided to try pyTivo. I got:
    • python 2.6.2
    • the March 2009 Windows installer from your link
    • wmcbrines' latest package

    Then I logged in via remote desktop and installed Python and ran the WIndows installer and set to run as a service and configured the directories.

    I can see videos, music, and photos directories but have the follwoing issues:
    • Music - works fine
    • Videos

      • .tivo file - get menu to transfer but does not actually transfer - as expected per documented bug
      • .mpg file (single large mpg2 filed from DVD rip using DVD shrink) does not show any info when file is selected and no option is given to transfer the file.
      • I also tried with a 720x480 DivX .avi file and 720p Quicktime .mov file (movie trailer) with the same effect.
    • Photos - I can see all the directories and files but get no thumbnails and when I actually try to view a file, I get nothing (an icon of a cracked picture).

    I tried updating with wmcbrines latest update (from sometime yesterday) but not sure if I am doing this right. Following some other directions, I copied over all of the files from the new snapshot (manually, one directory at a time) and deleted the .pyc files and tried restarting the server to rebuild, but it does not appear that the service runs at startup and I cannot open the config webpage (http://localhost:9032/) even after manually starting pyTivo. Seems something I copied over messed up the service and firewall.

    Any help would be appreciated.
     
  11. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    It sounds like pyTiVo can't find ffmpeg which is what it uses to process videos. In your pyTivo.conf file, is it pointing to the proper location of ffmpeg? In the [Server] section there should be a line like:

    ffmpeg=<path to ffmpeg>

    edit: oh, I see you tried to manually update ... maybe you should try to re-install and start over?
     
  12. pcbrew

    pcbrew New Member

    101
    0
    Mar 14, 2008
    DFW
    The problems were there before I tired updating (unexpected behavior when I select anything other than a .tivo file). I have removed(uninstalled) and re-installed using the Windows installer and am back where I started.

    I'll check the ffmpeg path tonight to see if I can get past that hurdle before tackling the update issues.

    Do I need anything special to get the photo viewer working?
    Should it support HD photos?
     
  13. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Yes, you need the Python Imaging Library.

    It will output any resolution requested. But the built-in player on the TiVo only requests SD. You need an HME-based viewer to get HD pictures on the TiVo. (You can run TiVo's "HD Photos" HME app with pyTivo as the backend instead of TiVo Desktop.)

    As for your other problems, 1) post a log (and please, read it yourself first -- you'd have seen a warning about the missing Python Imaging Library there), and 2) you can't upgrade rdian06's installer just by unzipping one of my snapshots over it. That used to work, but not with his last version.
     
  14. pcbrew

    pcbrew New Member

    101
    0
    Mar 14, 2008
    DFW
    Thanks windracer and wmcbrine.

    Yes, it was a bad ffmpeg path and failure to read all the directions.
    The ones I followed from AVSforum did not include the bit about the Python imaging lib.

    Now I have the basics working:
    • Music
    • Photos
    • Videos (except .tivo files)

    Can you give me some advice on:
    • How to patch the release with a later snapshot, or how to setup the snapshot from scratch and run pyTivo as a service (want this to run at startup on a WHS box). I need this to fix the issue with .tivo files.
    • How to "run TiVo's "HD Photos" HME app with pyTivo as the backend instead of TiVo Desktop"

    Edit: I managed to get the HD Photos working. Must have been some issue in running the launcher when I tried at first. Keeping this section in case it can help someone else. I will also note that I installed Java 1.6 to start with (for Tivo Publisher) and auto-updated after that so it now works with the latest Java release.

    For the HD photos part, I found this post: How to use the HD Photos app from Dec 2007, but mentions that it requires Java 1.5 as Java 1.6 and later have certificate issues.
    That post It links to this one: Making the HD Photos HME application run on Mac OS X.
     
  15. pcbrew

    pcbrew New Member

    101
    0
    Mar 14, 2008
    DFW
    I have almost everything working now!

    I assumed there was some magic in Rdian06's Windows Installer that I would not be able to do with just a git snapshot. However, I started checking into what I pulled down last weekend to see what it would take to get an alternate snapshot running, even if manually, so I would get support for native .tivo files. When I finally RTFM, I saw there are instructions in the README for running pyTivo as a service that starts up without having to login, etc. All that is required is another python component.

    So, I now have a very recent version of pyTivo running as a service when my server starts vs. having to remote desktop in and manually start.

    I still have to login via remote desktop and launch the HD Photos service but photo browsing is a distant 3rd in use cases for me so I am 99% satisfied with where I am.

    If anyone knows how to run the HD Photos launcher at startup, let me know. I'll have to search around on the Windows Home Server and HP Mediasmart forums for that info.
     
  16. diceman719

    diceman719 New Member

    27
    0
    May 19, 2006
    Does anyone know where I can get the Windows version of the PIL?
    Neither pythonware nor efffbot seem to want to talk to me...

    Thanks,
     
  17. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    I can not figure out what I am doing wrong. I can see the Tivo and browse my Now Playing list but I can't get any shares to show up. If I go to My Videos under the web configuration nothing shows up. Any ideas? I have tried both network shares and local files and folders.
     
  18. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    The account used to run pyTivo has to have read permissions to your videos.

    If you're using the Windows installer and you are running pyTivo as a service, then unless you specified a Windows Service username/password during install the service will run as the System user. Try shutting down the service and running pyTivo from console (Start Menu group items are available for this) so it runs as your normal user. If that works then you definitely need to fix your file permissions.
     
  19. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Thanks. I got it running under console which works but I can't for the life of me get it working as a service. It works for now so I am going to stop messing with it :).
     
  20. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    You can bring up the Windows Services list and modify the service to run as your account by providing your username/password.

    Start->Run->Type "services.msc".

    Find the pyTivo service and edit it's properties. Use the Log On tab to enter your username/password.
     

Share This Page