pyTivoX

Discussion in 'TiVo Home Media Features & TiVoToGo' started by Yoav, Dec 10, 2008.

  1. Tapper69

    Tapper69 New Member

    8
    0
    Jun 27, 2010

    Advertisements

    I posted in the pyTivo forum to hopefully get an answer from the developer. pytivo.sourceforge.net/forum/os-x-lion-10-7-and-pytivo-t1799.html
     
  2. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    That is not the developer. The developer of pyTivoX is MIA for quite some time (the streambaby dev too).

    This is the pyTivoX developer site.
     
  3. bigdave2004

    bigdave2004 Member

    56
    0
    Dec 17, 2002
    Orlando, FL
    I got it to work in pyTiVox by running streambaby manually first (making sure pyTiVoX is stopped. So I downloaded streambaby-0.29, modified streambaby.ini, copied the ffmpeg.bin from /Applications/pyTivoX.app/Contents/Resources to /usr/bin and the all dylib to /usr/lib started it using the included script. I can see it on my tivo (Stream, Baby, Stream) but I would get a failed when trying to play anything. Killed that and started up pyTivoX again and now it works fine. I can't explain it. See it this works for you.
     
  4. TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Just a heads up to everyone: I managed to get streambaby-0.29 working on Mac OS X 10.7 Lion. What a ROYAL PAIN compared to pytivox though, with lots of research required.

    Long story short, I wrote my steps (boiled down from all the tactics / research I tried) down for anyone else who might be interested:

    install Xcode's new version (4.2 for Lion) from the App Store
    install Macports 2.0 for Lion (from http://macports.org )
    install ffmpeg using "sudo port install ffmpeg" - all the required bits are now included by default, some pages that say you need other variants too are old.
    install streambaby (from http://code.google.com/p/streambaby/ - then just unzip to desired location and edit streambaby.ini to point to my video dir)

    If you want it to autostart, go to system preferences / users / my user / login items / add streambaby, check Hide. I also removed pytivox at the same menu, just as a precaution.


    re: bigdave2004: I got that same thing happening too - when I had not installed ffmpeg yet, but just tried to run streambaby on its own. For some reason, the full ffmpeg install seems to be required to get Streambaby working, but pytivox has its own files/version/whatever that it's okay with using, but when streambaby tries to use them it fails.

    Not really sure what exactly BROKE pytivox, but it's clearly pytivox and not streambaby related.
     
  5. mcowger

    mcowger New Member

    2
    0
    Apr 3, 2010

    Advertisements

    This process worked great for me. Thanks!
     
  6. docfmiles

    docfmiles New Member

    3
    0
    Feb 6, 2008
    PyTivox stopped working on both series 3 and HD when OSX Lion was installed, I ran the solution that theWGP had gotten to work, but then I have been unable to "just unzip to desired location and edit streambaby.ini to point to my video dir"
    Can you post an example of exactly how you edited streambaby.ini. Additionally, I have a number of files on multiple HDDs, so solving this one last little step will make my life a whole lot better and let me get on to actually exploring the "Lion"
     
  7. TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Sure thing - here's more specific directions for the actual streambaby part.

    1) Download streambaby-0.29.zip from http://code.google.com/p/streambaby/

    2) Double-click streambaby-0.29.zip in Finder - it should open in Archive Utility and unzip into a folder called streambaby-0.29

    3) Move that folder to wherever you want to run streambaby from permanently

    4) Open the folder streambaby-0.29 and double-click "streambaby.ini" to open it in TextEdit

    5) Edit the "dir.1=/path/to/videos" line to specify your first location, name it with "dir.1.name=Whatever" add a line (or edit the example line, but REMOVE THE # IN FRONT!) with "dir.2=/other/path/for/videos" for your second location, then name it with "dir.2.name=Whatever2" - all in all it sounds more complicated than it is. Don't touch anything else in that file.

    As an example, the only lines in my streambaby.ini that don't have a # in front (so they'll be ignored) look pretty much like this:

    dir.1=/tivo
    dir.1.name=Tivo Stream
    dir.2=/media/video
    dir.2.name=Media Backup

    Note that these are just "top-level directories" you're adding - if there's a sub-dir in there, streambaby will let you navigate to a video inside it from the Stream, Baby, Stream interface on your Tivo.

    6) Save and exit TextEdit.

    7) Start Streambaby by double-clicking the file just named streambaby, then go to your Tivo! On the Premiere it's under Showcases & Extras, I don't know about S3 and haven't loaded it on my TivoHD.

    8) When you're done, make sure you're in the Terminal window that popped up with Streambaby running in it, and hit Control-C to exit. Yes, actual Control - not command. Then quit Terminal and you're back to normal.

    Sorry if it was overly detailed, but I was bored and if people are using this process I'd like to assist.

    On a related note, has anyone heard from / been able to get ahold of the pytivox maintainer? Is there any chance someone else would be able to take the project over, at least to just fix the broken function, not take on full development? PyTivoX really does work much easier and simpler than this manual-Streambaby method. I'd do it but I'm no coder! :)
     
  8. Aug 3, 2011 #1128 of 1455
    chrisc983

    chrisc983 New Member

    1
    0
    Jul 20, 2011
    TheWGP great post. Could you possibly post a more detailed instruction on how to install ffmpeg on a mac. I'm still new to apple. Thanks.
     
  9. Aug 3, 2011 #1129 of 1455
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    http://pytivo.sourceforge.net/wiki/index.php/OS_X_Install

    Read the section on FFmpeg. User rdian06 has prebuilt binaries that are older. Macports results in the newest build but is not the quickest or easiest method.

    Or if you were using pyTivoX before you can just strip the existing FFmpeg files out of the pyTivoX app and point StreamBaby at it.
     
  10. Aug 4, 2011 #1130 of 1455
    TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Literally, installing ffmpeg is now super-easy. I can't really simplify it much more than I already stated:

    1) download Macports 2.0 for Lion from http://macports.org - it has its own installer so you won't really have to do anything but click through the installer.

    2) Go to the Search bar, type Terminal, hit enter, in the window that pops up type:
    "sudo port install ffmpeg" and hit enter. Enter your password if it asks for it. Let it run till it's finished - once it stops, you're all done with ffmpeg!

    I like this method because it's the fewest steps and no special command-line arguments, no real complicated steps or gotchas. Installing Xcode is now cake from the App Store, so Xcode to Macports to ffmpeg is literally a handful of clicks & one keyboard command, with no other websites or instructions to read or special arguments to figure out.
     
  11. Aug 4, 2011 #1131 of 1455
    MattR1970

    MattR1970 New Member

    3
    0
    Aug 4, 2011
    OMG, thank you for the instructions re: Streambaby!!! Worked like a charm.

    I was so pissed when Lion broke pyTiVo, especially since Vuze on TiVo broke mysteriously a few months back.
     
  12. Aug 5, 2011 #1132 of 1455
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    I have been considering releasing static builds of FFmpeg that are usable in OSX tools such as pyTivoX and streambaby for awhile so I have linked to a test build. So for anyone who wants to try it this is an Intel only build from from GIT a few days ago. I stripped out some unnessary libs to reduce size so this build of FFmpeg may not be suitable for anything but pyTivo et al.

    Hopefully I can get some feedback to see if I need to make adjustments. If the code is suitable I will keep a thread updated on the pyTivo forums with the latest FFmpeg code every few months.

    The test build is available here.

    Code:
    ffmpeg version N-31755-g31fe5d9, Copyright (c) 2000-2011 the FFmpeg developers
      built on Aug  4 2011 17:51:10 with clang 2.1 (tags/Apple/clang-163.7.1)
      configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-runtime-cpudetect --enable-hardcoded-tables --enable-libmp3lame --enable-libx264 --mandir=/opt/local/share/man --disable-indevs --cc=/Developer/usr/bin/clang --arch=x86_64 --disable-shared --enable-static --enable-pthreads
      libavutil    51. 11. 1 / 51. 11. 1
      libavcodec   53.  9. 1 / 53.  9. 1
      libavformat  53.  6. 0 / 53.  6. 0
      libavdevice  53.  2. 0 / 53.  2. 0
      libavfilter   2. 27. 5 /  2. 27. 5
      libswscale    2.  0. 0 /  2.  0. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    
     
  13. Aug 6, 2011 #1133 of 1455
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    I taken all the steps here but when I try to run "sudo port install ffmpeg" and hit enter I get this:

    [iMac21-i3:~] brian% sudo port install ffmpeg
    Password:
    sudo: port: command not found
    [iMac21-i3:~] brian%

    I went to the MacPorts website and tried their instructions to get it running, but to no avail.

    Any help would be appreciated.

    Brian
     
  14. Aug 6, 2011 #1134 of 1455
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    It seems MacPorts did not install correctly. Reboot and try again perhaps.

    You can try installing my test build of FFmpeg in the post above yours. You can just extract it somewhere and point your configuration files at it. I am attempting to create a standard build that I will keep updated and that everyone can easily install.
     
  15. Aug 6, 2011 #1135 of 1455
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Thanks,

    I may try your method.

    I have rebooted and reinstalled MacPorts at least 6 times.

    I have tried its self update command to no avail also. The installer says it installs, but I can not find it anywhere on my machine, even following the paths listed in their help docs.

    I am the administrator for the machine.


    Brian
     
  16. Aug 6, 2011 #1136 of 1455
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    try:
    Code:
    sudo /opt/local/bin/port selfupdate
    sudo /opt/local/bin/port install ffmpeg
    
    if that works then it's a simple fix to update your .profile variables to link the port command with the shell.
     
  17. Aug 6, 2011 #1137 of 1455
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    HI,

    That worked for MacPorts and installing ffmpeg.

    However, this is what I get when I run Streambaby:

    [iMac21-i3:~] brian% /Applications/streambaby-0.29/streambaby ; exit;
    Initializing StreamBaby v0.29...
    08/06/11 19:18:13 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
    08/06/11 19:18:14 Listener: added factory
    08/06/11 19:18:14 Main: streambaby ready & listening.


    Obviously I am not very good with UNIX. So how do I fix my .profile?

    Thanks,
    Brian
     
  18. Aug 6, 2011 #1138 of 1455
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    I should add...

    Nor do I see streambaby on my Tivo HD.

    This is from my streambaby.ini

    dir.1=/Volumes/iTunes/iTunes Music/Movies/
    dir.1.name=Movies
    dir.2=/Volumes/iTunes/iTunes Music/TV Shows/
    dir.2.name=TV Shows


    b
     
  19. Aug 7, 2011 #1139 of 1455
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Streambaby is still looking for the old FFmpeg. The new FFmpeg you installed is located at /opt/bin/ffmpeg

    In streambaby.ini

    Code:
    ffmpeg.path=/opt/bin/ffmpeg
    
    to update your .profile file which should fix your ability to run the port command go to your terminal.app and type

    Code:
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    
    then logout or restart for changes to take effect.
     
  20. Aug 7, 2011 #1140 of 1455
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Hi,

    Thanks for sticking with me through this.

    I added the path statement to the .ini file. Got the same result. looked at it a minute and realized that the path should be: /opt/local/bin/ffmpeg

    tried that with the same result.

    Since streambaby is in the /Applications/streambaby-0.29/ dir and the path is from the volume root, does the path need to indicate that?

    When trying the .profile fix, the export command is not found.

    [iMac21-i3:/] brian% export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    export: Command not found.


    Thanks,

    b
     

Share This Page

spam firewall

Advertisements