How To Install pyTiVo On A Mac

I finally got around to installing pyTiVo on my MacBook Pro (running Leopard 10.5.5).  Unlike the Windows install, installing pyTiVo on a Mac isn’t all that easy.  The instructions on pyTiVo’s website were very helpful however, I thought I would publish the following instructions since I think they’re a more complete.  If I ever get to it, I’ll go ahead and update the pyTiVo wiki with these instructions.

The entire install took a couple of hours.  Most of this time was spent waiting for Xcode to download (996 MB) and compiling/buidling FFmpeg via MacPorts.  Let me know if these instructions are incomplete or if you encounter a problem with them.

Now that I have pyTiVo running on my MacBook Pro, I plan on putting together a complete review sometime in the near future.  Thus far I am extremely happy with the product.  It truly is great to be able to watch all of my home movies from the comfort of my couch.  Great job pyTiVo developers, I really do appreciate this product!

  1. Download and install XCode 3.1.2 from here (996MB).
  2. Download and install MacPorts 1.6.0 from here.
  3. Edit the .profile file located in your home directory and set the PATH variable to the following:
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
  4. Open the terminal (/Applications/Utilities/Terminal) and update MacPorts using the following command (additional info on the port command can be found here):
    sudo port -v selfupdate
  5. Install lame using the following command:
    sudo port install lame
  6. Build and install FFmpeg using the following command:
    sudo port install ffmpeg +lame +libogg +vorbis +theora +faac +faad +xvid +x264 +a52 +dts
  7. Download and extract the current release of pyTiVo from this url.  Note that pyTiVo has been forked into a number of different versions.  I’m using the wmcbrine version on my MacBook Pro.  You can extract pyTiVo anywhere on you HD however, I choose to place it in my Applications folder since this seems to make the most sense.
  8. Once extracted, copy pyTivo.conf.dist to pyTivo.conf
  9. cd to the directory where you extracted pyTiVo to and issue the following command:
    python pyTivo.py
  10. If all is successful, you should see the following in your terminal window:
    INFO:pyTivo:pyTivo is ready.
  11. Open your web browser and access the following url:
    http://localhost:9032
  12. Click on the “pyTivo Web Configuration” link.
  13. Next, click on the “MyMovies” configuration item in the upper left hand corner.
  14. Enter the path to your video files in the “path” textbox.  Note that pyTiVo will search subfolders for video files.
  15. Edit your server settings via the “Global Server Section”
  16. Enter the full path to FFmpeg:
    /opt/local/bin/ffmpeg
  17. In order to save your changes, click on the “Save Changes” button and than the “Soft Reset pyTivo” button.
  18. Now, pickup your TiVo remote and access your Now Playing List.  From there you should see a new item at the bottom of the screen called “MyMovies” (you can change this value in step 13 above).  Select the “MyMovies” item and you should see all of your videos/subfolders listed.  In my case, I have pyTiVo configured to access the “originals” folder in my iPhoto library.  I store all of my home videos in my iPhoto library so, this works out great for me.
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • FriendFeed

24 comments to How To Install pyTiVo On A Mac

  • I just realized that I forgot to include a step where you configure the path to FFmpeg. I’ll update the instructions later today when I get home from work…

  • MacGuruTX

    What’s the advantage of pyTiVo over Tivo Desktop on a Mac?

  • @MacGuruTX,
    Good question! pyTiVo will transcode your video for you so that you can watch almost any video file on your TiVo. For example, I have pyTiVo point at my home videos which are in a number of different formats. pyTiVo is able to take these videos and convert them into a TiVo friendly format (MPEG2) on the fly.

  • Brian

    Hi. I’m trying to follow your directions and think i need help with #3. I’m not sure which one is the PATH variable. Can you output your .profile so that I can see what has been edited? Thanks!

  • Brian,
    Here’s my .profile file. I’ll update the instructions later today.

    export PATH=/opt/local/bin:/opt/local/sbin:$PATH

    Let me know if you need anymore help….

  • Dale

    I’m curious why each of us has to compile our own version of ffmpeg…shouldn’t a pre-compiled version be posted? Seems it would make the install much easier. Anyway, thank you Alex for the instructions, I am going to give them a try this weekend or next.

    • @Dale,
      The developer of FFmpeg does not post precompiled versions. I’ll bet you that there is a precompiled version of FFmpeg out there that would work however, I’m not sure where to get it from. Please let us know if you find a precompiled version that works….

  • Brian

    Thanks Alex. Is that the only thing in your .profile??

    Here’s what I have:

    ##
    # DELUXE-USR-LOCAL-BIN-INSERT
    # (do not remove this comment)
    ##
    echo $PATH | grep -q -s “/usr/local/bin”
    if [ $? -eq 1 ] ; then
    PATH=$PATH:/usr/local/bin
    export PATH
    fi

    • @Brian,
      My .profile file only has what I posted in the previous comment. Based on what you posted, it looks as though you could replace your .profile file with the following:

      ##
      # DELUXE-USR-LOCAL-BIN-INSERT
      # (do not remove this comment)
      ##
      PATH=/opt/local/bin:/opt/local/sbin:$PATH
      echo $PATH | grep -q -s “/usr/local/bin”
      if [ $? -eq 1 ] ; then
      PATH=$PATH:/usr/local/bin
      fi
      export PATH

      Try this out and let me know if it works for you. Also, you might want to make a backup of this file before you start changing it….

  • Brian

    Also,
    When installing Xcode, there were options on what to install. Here are the defaults:

    checked: Developer Tools Essentials
    checked: System Tools
    checked: UNIX Development Support
    unchecked: Mac OS X 10.3.9
    unchecked: WebObjects

    Is this correct? Thanks for writing out these instructions and making this process easier Alex!!

  • Brian

    OK. So I’ve gotten to the point where I can see the folder and files on the Tivo, but when I select the video files to play, I get a blank Tivo screen with the title PC: Movies on top with the Tivo logo on the upper left..almost as if I had selected an empty folder. Still trying to troubleshoot

  • Brian

    Thanks Alex. I figured out the problem after pulling out some hair. The path to ffmpeg was incorrect. I actually copy and pasted the path from your post, which didn’t actually include the file.

    So the correct path would be: /opt/local/bin/ffmpeg
    I originally entered: /opt/local/bin/

    Thanks again so much for you help!

  • Dale

    Thank you Alex for putting these instructions together! I have pyTivo running and have been able to watch video on my TivoHD. One step I had to add between steps 8 and 9 above, was to copy the pyTivo.conf.dist to pyTivo.conf. Otherwise, when I execute the command I received an error message about pyTivo.conf not found.

    Thanks again! Now I am off to play with settings to get 1080i transcoding to work.

    Dale

  • [...] today, I stumbled upon a new program for my Mac which pretty much makes my pyTiVo install guide obsolete.  The program is called pyTiVoX and it allows you to run pyTiVo on a Mac without having [...]

  • Rich

    This worked great — now, how do I set it up so that it automatically runs when I reboot the computer?

  • [...] and configuring pyTiVo rather trivial.  In fact, this application essentially renders my Mac pyTiVo install guide obsolete…. .gallery { margin: auto; } .gallery-item { float: left; margin-top: 10px; [...]

  • J Snow

    Thank you so much for posting this. I’ve been using PY tivo on a windows machine but all my video files are on my Mac so this is great.

    I’ve dusted off my old Unix skills and managed to get thru this pain free. Just a couple of comments; There have been several new releases to the WMCBRINE version of PY Tivo since the 08/08 releases. I tried some of the 12/08 releases and they failed. When I went back to the last Aug ‘08 release everything worked fine.

    Also-when I went to run PY Tivo I was given a message that I should be using the latest version of Cheetah with compiled C Version of NameMapper. I didn’t upgrade Cheetah but everything is working fine.

    Thanks again!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled