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. Dec 11, 2008 #41 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    The problem is that it's not just python that doesn't work on 10.4
    The auto-launch is a 10.5 thing too.
    I don't want to be in the unenviable situation of maintaining two builds, especially when the instructions for one of the builds is "well this one doesn't work right, you need to go off and download and build python 2.5 or better".

    If you're willing to make a page describing everything else that needs to be done and how to do it, I can build you a half-working thing (the auto-launch button won't do the right thing, and python will need to be installed manually). All 10.4-related issues will become your problem though :)...
     
  2. Dec 11, 2008 #42 of 1437
    darksurtur

    darksurtur New Member

    156
    0
    Jan 2, 2008
    I appreciate the offer, but you've done more than enough. I do actually have a working pyTivo setup on my 10.4 Powerbook G4; I was asking mostly for friends who are not nearly as computer savvy and would have an even harder time figuring it out (it took me a while, even following the OSX install instructions). If they really want it, they can upgrade ...
     
  3. Dec 11, 2008 #43 of 1437
    westside_guy

    westside_guy Annoyingly ephemeral

    464
    1
    Mar 13, 2005
    The soggy...
    Yes, and if it could make a good cup of coffee that'd be great. :D Seriously, this is a cool project you're putting together and I appreciate it.

    Here's what I think happened, just based on previous experience with other pyTivo implementations. My home network uses a particular subnet, let's say 192.168.43.x. When VMware sets up its virtual network devices for NATing the virtual machine, it automatically chooses an unused private subnet - for example, 192.168.197.x. Left to its own devices, pyTivo seems pick up 192.168.197.x rather than 192.168.43.x; I'm guessing it's the first one that comes up when pyTivo checks for existing networks.

    So in my pyTivo.conf file (using the krkeegan build), I've now got a line something like "beacon 192.168.43.255 listen" that tells pyTivo which is the correct subnet.
     
  4. Dec 11, 2008 #44 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    BTW, the "listen" keyword is only needed for use with the TiVo's "Manually add a server..." function. If you're not using that, you're making pyTivo grab port 2190 for no reason.
     
  5. Dec 11, 2008 #45 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    So, weird question, but can you tell me if this invocation correctly reports the right 'beacon' address?: (just cut and past it into a Terminal.app... it's very icky).

    Code:
    ifconfig `route get default | sed -n -e 's/.*interface: \(.*\)/\1/p'` | sed -n -e 's/.*broadcast \(.*\)/\1/p'
    
    If it does I'd rather automatically discover the right value and hide it from the user...
     
  6. Dec 11, 2008 #46 of 1437
    raianoat

    raianoat TiVoBlog.com

    229
    0
    Jan 27, 2004
    I can't seem to get a video to transcode using pyTiVoX (.5). Here's a copy of my log:

    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] 192.168.1.102 - - [11/Dec/2008 22:38:01] "GET /pyTiVoX%20Videos/2008/02%20Alex%20%26%20Nicholas/P2030034.MOV HTTP/1.1" 200 -
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] FFmpeg version SVN-r16042, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] configuration: --arch=i386 --disable-vhook --disable-shared --enable-static --enable-pthreads --disable-mmx --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libx264 --enable-swscale --extra-cflags=-I/Users/yoav/src/lame-398-2/include -I/Users/yoav/src/faad2/include -I/Users/yoav/src/faac/include -I/Users/yoav/src/x264 --extra-ldflags=-L/Users/yoav/src/lame-398-2/libmp3lame/.libs -L/Users/yoav/src/faad2/libfaad/.libs -L/Users/yoav/src/faac/libfaac/.libs -L/Users/yoav/src/x264/
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] libavutil 49.12. 0 / 49.12. 0
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] libavcodec 52. 6. 1 / 52. 6. 1
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] libavformat 52.23. 1 / 52.23. 1
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] libavdevice 52. 1. 0 / 52. 1. 0
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] libswscale 0. 6. 1 / 0. 6. 1
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] built on Dec 10 2008 10:52:10, gcc: 4.0.1 (Apple Inc. build 5484)
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/NAS/iPhoto Library/Originals/2008/02 Alex & Nicholas/P2030034.MOV':
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Duration: 00:00:20.00, start: 0.000000, bitrate: 14217 kb/s
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.0(eng): Video: mjpeg, yuvj422p, 640x480, 30.00 tb(r)
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.1(eng): Audio: pcm_u8, 7875 Hz, mono, s16, 63 kb/s
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Output #0, vob, to 'pipe:':
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.0(eng): Video: mpeg2video, yuv420p, 640x480, q=2-31, 9951 kb/s, 30.00 tb(c)
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.1(eng): Audio: ac3, 48000 Hz, mono, s16, 384 kb/s
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream mapping:
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.0 -> #0.0
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Stream #0.1 -> #0.1
    12/11/08 10:38:01 PM [0x0-0x287287].com.yoav.pyTivoX[326] Press [q] to stop encoding
    12/11/08 10:38:02 PM [0x0-0x287287].com.yoav.pyTivoX[326] frame= 16 fps= 0 q=2.9 size= 0kB time=0.50 bitrate= 0.0kbits/s
    12/11/08 10:38:02 PM [0x0-0x287287].com.yoav.pyTivoX[326] Audio resampler only works with 16 bits per sample, patch welcome.
    12/11/08 10:38:03 PM [0x0-0x287287].com.yoav.pyTivoX[326] 192.168.1.102 - - [11/Dec/2008 22:38:03] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    12/11/08 10:38:07 PM [0x0-0x287287].com.yoav.pyTivoX[326] 192.168.1.102 - - [11/Dec/2008 22:38:07] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
     
  7. Dec 11, 2008 #47 of 1437
    westside_guy

    westside_guy Annoyingly ephemeral

    464
    1
    Mar 13, 2005
    The soggy...
    Oh ok - thanks!

    Ew, sed... but yes, it does appear to work. Thanks!

    BTW you should work "awk" into that line just on general principles. :p
     
  8. Dec 11, 2008 #48 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    (cut it to keep the reply short).

    I can't make much from the logs, but my guess is either ffmpeg is unable to correctly read the media file, or else pyTivo isn't happy with something about it (there's a warning about Audio resampler only works with 16 bits per sample, patch welcome. )...

    Hoping someone can chime in. If it's something I can fix I'd be happy to, but don't know why it's breaking...
     
  9. Dec 11, 2008 #49 of 1437
    mohanman

    mohanman New Member

    99
    0
    Dec 18, 2007
    Dude.. this is one of the best programs I have had in a long time! Thanks to the developer! I started watching divx movies on my tivo, and the quality is fantastic!

    My question is, can someone tell me what video formats it supports. I'll look again at the main website, but was curious if people have a lot of luck with mkv and ac3 files? anyone know bitrate (MBPS?). Screw getting blueray player.. this is the best!

    Thanks
    Mo
     
  10. Dec 11, 2008 #50 of 1437
    mohanman

    mohanman New Member

    99
    0
    Dec 18, 2007
    Well I think I answered my own questions. I'm able to transfer 5mbps h264 files with ac3 so far. I hope one day there will be streaming so that you don't need to transfer the videos. But I think since I can do this now, gotta get a 500gb TIVO external drive! Coverart would be nice too.
     
  11. Dec 12, 2008 #51 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok, 0.6 is up.
    The main change was the addition of the beacon line (computed based on the default route's interface -> broadcast).

    I'm hoping it makes it work for those using vmware, and doesn't break for anyone else <crossing fingers>
     
  12. Dec 12, 2008 #52 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    There is a streamer written by moyekj.. it's just not wrapped up as an app, so you'll have to do some legwork. Look at http://tivocommunity.com/tivo-vb/showthread.php?t=403066 but keep in mind that when you stream then stuff like skipping around in the movie becomes messier.
     
  13. Dec 12, 2008 #53 of 1437
    westside_guy

    westside_guy Annoyingly ephemeral

    464
    1
    Mar 13, 2005
    The soggy...
    It seems to be working for this VMware user... :-D

    Thanks for all the work you've put into this.
     
  14. Dec 12, 2008 #54 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
  15. Dec 12, 2008 #55 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Can you put up one of your failed movies somewhere so I can try it?
    Also, what version of Mac OS and what processor are you using?
     
  16. Dec 13, 2008 #56 of 1437
    raianoat

    raianoat TiVoBlog.com

    229
    0
    Jan 27, 2004
    I'm using a Macbook Pro (Intel) Running Leopard 10.5.5

    Here's a url for a video that doesn't seem to transcode for me (32 MB)....

    http://www.tivoblog.com/pytivox/PA170012.MOV

    Thanks!
     
  17. Dec 13, 2008 #57 of 1437
    tim_ver

    tim_ver New Member

    35
    0
    Nov 30, 2007
    Ok, I am new to this so please do not laugh.

    If I understnad this you download the pyTivo program from here:
    http://www.python.org/download/releases/3.0/

    Install it on your PC, for me the Windows AMD64 MSI Installer (I have Vista 64). Then I can see the share folder it creates on my PC on my Tivo.

    And select the files I want say Family_trop_2008.avi and watch it on my TV through Tivo?

    Is this correct or did I miss something?

    Also does it leave the files on the PC just view them trough the Tivo/TV or does it physical move them over to the Tivo and store them there to watch/delete?

    Thanks much
     
  18. Dec 13, 2008 #58 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Well, I won't laugh, but I'll point out you're posting in a thread about a mac port of the program.

    I can tell you for sure that you don't want to install python 3.0 (you want 2.5 or 2.6). Other than that, I'm not much help to you, but there's a whole install document at http://pytivo.armooo.net/wiki/WindowsInstall. Try posting the same question in the main pytivo thread.
     
  19. Dec 13, 2008 #59 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok, so I messed with your file, and yes there's an issue. Turns out the newest source code of ffmpeg spews errors with your source movie (it tries to encode mp2 at 16-bit and spews) -- which is why I wasn't seeing it here.

    Anyways, I found a patch someone submitted TODAY (yeah it's a new bug). I'm going to integrate it into a new build and see if it fixes it. Assuming all your files share the same problem, then we're good. Otherwise, if other files fail, I'll need you to get more of them to me.

    Update: Yes the patch fixes that bug. Working on a new build for tonight...
     
  20. Dec 13, 2008 #60 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok, version 0.7 is up. It should fix the bug raianoat reported.

    Additionally, it now enables the local web configuration (http://localhost:9032). Keep in mind that if you make changes via the web interface, you should NOT click 'Restart' which will overwrite those changes. (Quitting and re-running the pyTivoX is ok though). Don't think most users will need the web interface.. but was asked for it so enabled it.
     

Share This Page