1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivoX

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

  1. rjgibson0066

    rjgibson0066 Member

    93
    0
    Feb 12, 2007
  2. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Feel free to use those if you want but please at least check the official installation instructions for OS X at the wiki here:

    http://pytivo.sourceforge.net/wiki/index.php/OS_X_Install

    pyTivo (not streambaby) is truly is not that hard for most users to get running. As always post with questions if you have them in the pyTivo forum or the pyTivo thread here at TCF.
     
  3. Fofer

    Fofer XenForo Rocks! TCF Club

    82,124
    298
    Oct 29, 2000
    This is great! Thanks so much bareyb. I'd love to see instructions for streambaby now too, simply because I and so many others have had a VERY time getting that to work with PyTivoX with OS X Lion.
     
  4. javabird

    javabird Active Member

    1,021
    0
    Oct 12, 2006
    Seattle
    Are you sure that's correct? Based on this information, it sounds like you can choose to either stream or download the show:

    http://www.tivo.com/mytivo/howto/re...nsfer_shows_from_mac.html#watching-videos-mac

    I used to use TivoTransfer with Toast 9, and it was drop-dead simple (but since I upgraded to Lion I Haven't upgraded Toast so I can't speak about Toast 11). If you do end up trying it, please post how you like it.
     
  5. Fofer

    Fofer XenForo Rocks! TCF Club

    82,124
    298
    Oct 29, 2000
    javabird, just to clarify, bareyb is talking about getting videos that are on his Mac, to transfer to the TiVo... not the other way around.

    Toast includes two apps that are TiVo related.

    One is TiVoTransfer, and that lets you copy videos from the TiVo, to the Mac.

    The other is Mac2TiVo. It allows you send videos (unfortunately, only ones that are in the proper MPEG-2 format) to the TiVo. (bareyb, just to correct you, this is a TRANSFER, not a stream.) The requirement of having to convert all videos to MPEG-2 ahead of time, for this to work though, is enough of a hassle to be a deal-breaker for many.

    TiVo Desktop (free from TiVo) is a tiny bit more capable, as it can also handle extracted .tivo files too. You need to know the "trick" to expose the hidden videos tab, though. Go to System Preferences (assuming you've installed TiVo Desktop for Mac OSX) and hold down the apple/command key on the keyboard and open the TiVo Desktop preference pane. You should now see a Videos tab where you can enter the directory for .tivo (or MPEG-2) files along with your Media Access Key.

    gteague, you mentioned a way to "tweak and hack" TiVo Desktop a little... does this include getting it to work with videos in formats other than .tivo or MPEG-2?


    That being said, the reason pyTiVo and PyTiVoX are preferred here is because it can handle many more video formats... it transcodes them-on-the fly, and lets you transfer them to to the TiVo, without you having to "prepare" anything ahead of time.

    AFAIK, the only way to set up any of these videos for streaming to the TiVo is with streambaby. I'd love to see a good set of instructions on how to "manually" set that up on the Mac, without PyTiVoX (since that particular part broke, in Lion.)
     
  6. Fofer

    Fofer XenForo Rocks! TCF Club

    82,124
    298
    Oct 29, 2000
    Here's how to use make a simple application to start PyTiVo. Open AppleScript Editor and paste this code in:

    Code:
    do shell script "cd /Applications/pyTivo 
    ./pyTivo.py"
    (and click on "run" to test it.)

    This can then be saved as an application.

    I'd like to also then have an easy way to quit PyTiVo when I'm done with my transfers. I found this link: Killing an Application With Terminal
    ...but I don't know how to translate that into an AppleScripted application (or if it's even possible.)
     
  7. bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    I do plan to spruce up the thread with some links to the Wiki and the other builds. Mainly I wanted to get something up with some screen shots (this is key) and more detailed (step by step) instructions. Something like that would have really helped me., so that's why I did it. I hope it helps...

    Thanks for the info Fofer, I'll look into that. I'm heading off to Tahoe in a couple hours so I better get packing! I'll touch base with you guys once we get there.
     
  8. rjgibson0066

    rjgibson0066 Member

    93
    0
    Feb 12, 2007
    Nothing EVER works for me!!! Trying to get pytivo installed and running but getting this:

    Robert-Gibsons-MacBook-Pro:pyTivo robertgibson$ cd /Applications/pyTivo
    Robert-Gibsons-MacBook-Pro:pyTivo robertgibson$ ./pyTivo.py
    Traceback (most recent call last):
    File "./pyTivo.py", line 80, in <module>
    while mainloop():
    File "./pyTivo.py", line 74, in mainloop
    httpd = setup()
    File "./pyTivo.py", line 22, in setup
    config.init(sys.argv[1:])
    File "/Applications/pyTivo/config.py", line 45, in init
    configs_found = config.read(config_files)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 297, in read
    self._read(fp, filename)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 504, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
    ConfigParser.MissingSectionHeaderError: File contains no section headers.
    file: /Applications/pyTivo/pyTivo.conf, line: 1
    '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1138\\cocoasubrtf320\n'
    Robert-Gibsons-MacBook-Pro:pyTivo robertgibson$

    Any ideas?
     
  9. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    ...

    edit....no I see what is going on. Your text editor is using Rich Text mode and placing some weird formatting in the file. If you are using TextEdit then open your pyTivo.conf and click 'Format' at the top of your screen on your menu bar and select 'Make Plain Text' from the drop down.

    Make sure it has at least this:
    Code:
    [Server]
    
    Save and try again.
     
  10. Fofer

    Fofer XenForo Rocks! TCF Club

    82,124
    298
    Oct 29, 2000
    Yup, you can also set TextEdit's prefs so that it creates new documents in plaintext by default.
     
  11. Dagwood70

    Dagwood70 New Member

    7
    0
    Jan 8, 2012
    OKC
    I believe what you are looking for is here: http://www.tivocommunity.com/tivo-vb/showthread.php?t=482353&highlight=How+to+set+up+Streambaby

    As a general question; what is the advantage (if any) of pyTiVo over Streambaby? I have the later up and running. I didn't succeed the first time trying to set up pyTiVo and wonder if I should bother trying again since I have Streambaby working brilliantly on my iMac (wired LAN -> wired TiVo).
     
  12. rjgibson0066

    rjgibson0066 Member

    93
    0
    Feb 12, 2007
    The saga continues but in a different form.

    It was the textedit format issue and after the fix it started up just fine. However my folder didn't show up in Now Playing. So I restarted the Tivo and tried again. Now I get this......

    Last login: Mon Feb 20 17:25:02 on ttys000
    Robert-Gibsons-MacBook-Pro:~ robertgibson$ cd /Applications/pyTivo
    Robert-Gibsons-MacBook-Pro:pyTivo robertgibson$ ./pyTivo.py
    INFO:pyTivo.beacon:Announcing shares...
    Error no Video plugin exists. Check the type setting for your share.
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo:pyTivo is ready.
     
  13. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    type = video

    not Video. it is case sensitive....although it really shouldn't be.
     
  14. rjgibson0066

    rjgibson0066 Member

    93
    0
    Feb 12, 2007
    How do I get into http://localhost:9032 if I can't start the service?

    Edit - never mind, you can.

    Ok, that worked - thanks so much.

    However I put a .mp4 file in the folder and nothing is showing up in the folder on the Tivo. What video formats are supported?
     
  15. gteague

    gteague golftango

    520
    0
    Apr 1, 2007
    dfw (euless)
    no, i was speaking about the video tab trick you explained. i do still use tivo desktop to let me access itunes and iphoto media on my tivo, but i might change over to pytivo if i get everything working. i've been using the toast tivo transfer for video xfer from mac to tivo, but i am firmly committed to getting streambaby working since what i want is streaming, not transfer.

    yes! me too, please!

    /guy
     
  16. gteague

    gteague golftango

    520
    0
    Apr 1, 2007
    dfw (euless)
    you beat me to the punch with the shell script, but yours is exactly right, based on my scripting of kmttg. thanks! bareby, you can credit fofer with this one.

    as far as killing the pytivo process by running a script or application, that would be way beyond my poor shell and script skills. the only way i know is to do it manually:

    ps -ax | grep pytivo

    note the process_id on the left side, then:

    kill -9 <process_id>

    or prefix with 'sudo' if it balks.

    obviously, the process_id is going to change with each launch and i'm sure you could save it to a temp variable and then have the script reference the temp variable, but that would take unix skills i don't possess.

    [later edit]: found that pytivo actually runs under the python process, so the command and the output is:

    Code:
    roma:/ sysop$ ps -ax | grep python
    12110 ttys000    0:19.24 python /Applications/_video/TiVo/pyTivo/pyTivo.py
    24007 ttys001    0:00.00 grep python

    if you've only got one python process it would be [relatively] easy to pipe or save the process_id to a temp variable and then when you write the script to have it reference the temp variable. you'd have a two-step process where you run one app to load the temp variable with the correct process_id, then then the quit or kill app.
    /guy
     
  17. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    All video formats (well almost, assuming of course you have an up to date FFmpeg like from the pyTivo forum).

    I believe this is related to your Streambaby issue as well. After reviewing your logs I think you may have a firewall issue.

    Is the system firewall enabled on your Mac?
     
  18. rjgibson0066

    rjgibson0066 Member

    93
    0
    Feb 12, 2007
    Well I did disable it with Streambaby and still had that problem.

    I forgot to disable using pyTivo, but will try right now.

    Edit - we have a BINGO! Thank you for hanging in there with me!

    How do I enable this Mac to Tivo connection without disabling the firewall.

    And, I transferred/watched on recording, and it now shows up in Now Playing as a single entry. I had assumed with pyTivo running it would show up in My PC folder. However, after transferring/watching My PC has disappeared from Now Playing.

    Stick with me please.
     
  19. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    In case anyone wants there is an option to run pyTivo in the background upon user logon or system startup. This is already described in the pyTivo wiki for OS X installation.
    -----------

    Mac OS X 10.6 and up

    Setting pyTivo to launch on startup automatically and in the background on Mac OS X is relatively easy.

    * You must make a text file named "pyTivo.plist" with any text editor.

    * Place the file in /Users/yourusername/Library/LaunchAgents (your user library folder) if you want pyTivo to load only when you are logged on. Or place the file in /Library/LaunchDaemons if you want pyTivo to startup on system boot regardless of whoever is logged in.
    ** In 10.7 Lion, Apple has hidden the User library folder. To view it open your Finder and hold down the 'Option' key and choose 'Go > Library' from the Finder menu.

    * Include the following code in the file (you need to update the path to the your pyTivo folder).

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>Label</key>
    	<string>pyTivo</string>
    	<key>ProgramArguments</key>
    	<array>
    		<string>python</string>
    		<string>/path/to/pyTivo/pyTivo.py</string>
    	</array>
    </dict>
    </plist>
    
    This will run pyTivo under the 'python' process in the background. Kill python process and pyTivo goes away until next logon. No windows, no icon, all logger output is shunted to the Console app.

    This is the way I have run it for years.
     
  20. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Well then I have a feeling then that the TiVo just didn't like your video format. There were a couple of odd codecs such as 'mjpeg' in your log. Try a MP4 with h264 video if you can test with that. I installed streambaby on my Lion OS X last night to test with and had no such issues with my videos.

    That's why I don't like streambaby....it's too particular. pyTivo works with anything. With the remux function that is in the recent builds from wmcbrine, lucasnz, or myself it is almost as good as streaming. I can select an MKV for transfer and pyTivo will remux the h264 video and audio into an MP4 automatically. Remux and transfer of full file is typically 10 mins.
     

Share This Page