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. Feb 21, 2009 #321 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I'm honestly not sure :(. I'd be a little wary of forcing everything/everyone to a fixed sample rate. I'm inclined to hoping that ffmpeg figures out a 'better way to convert' so we don't have to worry about it.
     
  2. Feb 21, 2009 #322 of 1437
    SuperSpiker

    SuperSpiker New Member

    28
    0
    Jan 13, 2003
    I'm running PytivoX 1.1b21 on OSX 10.5.6. I have a Tivo HD.

    When I access the folders I've shared with PytivoX via "Now Playing" on the Tivo everything works as expected.

    But when I try to access those same shared folders via "Music, Photos, and Showcases" and click on "pyTivoX - Streambaby" I get this error: "An error occured while running the application. HTTP failure (Http connection error: 0x50005)"

    Everything was working fine when I was using 1.1b16 but when I updated to 1.1b19 is when the above error started. I thought that 1.1b21 would fix this error but it's still happening.

    I would include the error log in this post but I'm not sure how to find it.

    Any help to resolve this error would be appreciated. PyTivoX and and Streambaby are an AWESOME combination for streaming video files to my Tivo. THANKS to the developers of both!

    Joe.
     
  3. Feb 21, 2009 #323 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    You can look at the log by opening Finder, and then choosing from the menu: "Go", "Go to Folder..." and typing in "/tmp/", the logs will be named pyTivoX-SB.log and pyTivoX.log

    That said, I'm hazarding a guess that this is related to the fact that streambaby is trying to stream it now where it was transcoding before (which would explain why pytivo is still working with it). You can force streambaby to transcode by selecting any quality OTHER than 'same'.
     
  4. Feb 21, 2009 #324 of 1437
    SuperSpiker

    SuperSpiker New Member

    28
    0
    Jan 13, 2003
    Here is the pyTivoX.log:

    Code:
    INFO:pyTivo:pyTivo is ready.
    /Applications/pyTivoX.app/Contents/Resources/pyTivo-wmcbrine/Cheetah/Compiler.py:1532: UserWarning: 
    You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
      "\nYou don't have the C version of NameMapper installed! "
    192.168.1.7 - - [21/Feb/2009 00:16:25] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    192.168.1.7 - - [21/Feb/2009 00:21:52] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -

    Here is the pyTivoX-SB.log:

    Code:
    Sat 2009/02/21 00:15:06.629|   |main|StreamBabyConfig|WorkingDir: /private/tmp
    Sat 2009/02/21 00:15:06.631|   |main|StreamBabyConfig|StreamBabyDir: /Applications/pyTivoX.app/Contents/Resources/streambaby
    Sat 2009/02/21 00:15:06.631|   |main|StreamBabyConfig|CurDir: /private/tmp
    Sat 2009/02/21 00:15:10.356|   |main|FFmpegJavaConfig$1|Loading avutil, default: /Applications/pyTivoX.app/Contents/Resources/libavutil.dylib
    Sat 2009/02/21 00:15:10.548|   |main|FFmpegJavaConfig$1|Loaded: /Applications/pyTivoX.app/Contents/Resources/libavutil.dylib
    Sat 2009/02/21 00:15:10.549|   |main|FFmpegJavaConfig$1|Loading avcodec, default: /Applications/pyTivoX.app/Contents/Resources/libavcodec.dylib
    Sat 2009/02/21 00:15:13.362|   |main|FFmpegJavaConfig$1|Loaded: /Applications/pyTivoX.app/Contents/Resources/libavcodec.dylib
    Sat 2009/02/21 00:15:13.588|   |main|FFmpegJavaConfig$1|Loaded avCodec version: 52 (3412480)
    Sat 2009/02/21 00:15:13.588|   |main|FFmpegJavaConfig$1|Loading avformat, default: /Applications/pyTivoX.app/Contents/Resources/libavformat.dylib
    Sat 2009/02/21 00:15:14.876|   |main|FFmpegJavaConfig$1|Loaded: /Applications/pyTivoX.app/Contents/Resources/libavformat.dylib
    Sat 2009/02/21 00:15:15.011|   |main|FFmpegJavaConfig$1|Loaded avFormat version: 52 (3415298)
    Sat 2009/02/21 00:15:15.011|   |main|FFmpegJavaConfig$1|Loading swscale, default: /Applications/pyTivoX.app/Contents/Resources/libswscale.dylib
    Sat 2009/02/21 00:15:15.517|   |main|FFmpegJavaConfig$1|Loaded: /Applications/pyTivoX.app/Contents/Resources/libswscale.dylib
    Sat 2009/02/21 00:15:15.526|   |main|FFmpegJavaConfig$1|Marking libswscale as available.
    Sat 2009/02/21 00:15:17.761|   |main|FFmpegJavaVideoModule|FFmpeg-java Module: loaded
    Sat 2009/02/21 00:15:17.766|   |main|FFmpegExeVideoModule|FFmpegPath: /Applications/pyTivoX.app/Contents/Resources/ffmpeg.bin
    Sat 2009/02/21 00:15:17.766|   |main|FFmpegExeVideoModule|FFmpegExeModule: Loaded
    Sat 2009/02/21 00:15:19.560|   |main|RootDirEntry$dirEntryHandler|dirEntry: file:/Volumes/JoeDrive/Video/TV/
    Sat 2009/02/21 00:15:19.563|   |main|RootDirEntry$dirEntryHandler|dirEntry: file:/Volumes/JoeDrive/Video/Movies/
    Sat 2009/02/21 00:15:19.563|   |main|RootDirEntry$dirEntryHandler|dirEntry: file:/Users/joe/Downloads/
    Sat 2009/02/21 00:15:19.564|   |main|RootDirEntry$dirEntryHandler|dirEntry: file:/Volumes/JoeDrive/Video/
    Sat 2009/02/21 00:15:21.145|   |main|PreviewCacheUtils|Cache Clean complete
    Sat 2009/02/21 00:15:21.146|   |main|StreamBabyMain|STARTING StreamBaby v20090220-0057...
    Sat 2009/02/21 00:15:21.147|   |main|Main|args= start=true
    Sat 2009/02/21 00:15:21.147|   |main|Main|args= loader=sun.misc.Launcher$AppClassLoader@33056f
    Sat 2009/02/21 00:15:21.186|   |main|Listener|config=com.tivo.hme.host.util.Config@f549de logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@c4a2d3
    Sat 2009/02/21 00:15:21.256|   |main|Listener|factoryList=[StreamBabyStreamFactory[/streambaby/,pyTivoX - StreamBaby]]
    Sat 2009/02/21 00:15:21.256|   |main|Listener|factory=StreamBabyStreamFactory[/streambaby/,pyTivoX - StreamBaby]
    Sat 2009/02/21 00:15:21.256|   |main|Listener|name=/streambaby/
    Sat 2009/02/21 00:15:21.256|   |main|Listener|
    Sat 2009/02/21 00:15:21.256|   |main|Listener|added factory
    Sat 2009/02/21 00:15:21.257|   |main|Main|factory=StreamBabyStreamFactory[/streambaby/,pyTivoX - StreamBaby]
    Sat 2009/02/21 00:15:21.257|   |main|Main|MDNS: http://192.168.1.5:7288/streambaby/
    Sat 2009/02/21 00:15:21.257|   |main|Main|streambaby ready & listening.
    Sat 2009/02/21 00:15:21.257|   |main|Main|mdns_type=_tivo-hme._tcp.local. factory=StreamBabyStreamFactory[/streambaby/,pyTivoX - StreamBaby] port=7288
    Sat 2009/02/21 00:18:36.710|   |Acceptor|Listener|http=HttpRequest /streambaby/icon.png
    Sat 2009/02/21 00:18:36.710|   |Acceptor|Listener|path=/streambaby/icon.png uri=/streambaby/
    Sat 2009/02/21 00:18:36.711|   |Acceptor|Listener|
    Sat 2009/02/21 00:18:36.711|   |Acceptor|Listener|192.168.1.7 icon.png HTTP GET - to factory /streambaby/
    Sat 2009/02/21 00:18:36.711|   |Acceptor|StreamBabyStream$StreamBabyStreamFactory|uri=icon.png
    Sat 2009/02/21 00:45:21.206|   |Timer-0|InfoCache$PruneTask|Pruning cache...
    Sat 2009/02/21 00:45:21.207|   |Timer-0|InfoCache$PruneTask|Pruning complete.
    Unfortunately I don't get to the screen that would allow me to change the quality value. As soon as I click on "pyTivoX - Streambaby" from the "Photos, Music, and Showcases" menu I get the error mentioned in my previous post.

    Hopefully you now have more information from the logs I've posted.

    Thanks for looking in to it. LMK.
     
  5. Feb 21, 2009 #325 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Yoav, sample rate and bitrate are not related. And yes, you probably want to force the sample rate, since AFAICT, 44100 and 48000 are the only ones the TiVo can handle. (Well, I can't say that for sure, but I haven't found another good one.)
     
  6. Feb 21, 2009 #326 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I was under the impression that things sampled at a lower rate compressed better (i.e. a 20Khz sampling rate yielded frequencies up to about 10khz, and so compressed more). So algorithms with bitrate caps would care about number of channels and sampling rate for the cap value. But anyways, I know nothing here, other than 'it's breaking'.

    The choice to force all movies to a fixed sample rate isn't up to me.. that's a streambaby defaults issue. Does pytivo force all audio to a fixed sample rate?
     
  7. Feb 21, 2009 #327 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Hmm. the pytivo log has nothing interesting in it (to be expected since you're not using pytivo).

    the pytivo-sb log seems to indicate that it's loading fine, and clearly your tivo sees it (or else you wouldn't be able to select streambaby). I do notice you're still using port 7288 which means you haven't updated to the latest beta in a while (or if you did, you still haven't clicked 'apply').

    Other than that I'm not seeing anything that would explain the error. It might be worth rebooting the tivo and computer just in case (definitely upgrade pyTivoX and hit 'apply' before you do though).
     
  8. Feb 21, 2009 #328 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    As always, pyTivo is complicated. But the default behavior (if you don't reconfigure it) is to recognize only 44100 and 48000 as valid, and otherwise force it to 48000.
     
  9. Feb 21, 2009 #329 of 1437
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    Upgraded to pyTivoX b22. Music actually seems worse now. I still get the same behavior...MP3s play ok and anything else needing to be transcoded (AAC, Lossless) can't play more than three seconds without drops and skips. But I'm also getting a lot of Error#3-5-6 just mousing around and trying to select any music. Weird.
     
  10. Feb 21, 2009 #330 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    At the risk of repeating myself, a quote from the pyTivo forum:

    3-5-6 errors in the music plugin are the same as 5-6 errors in photos. If you weren't seeing them before, it was sheer luck. But it's an intermittent problem, so there's no predicting when it will show up.

    Again, it's not that the system is too slow per se (although that may be the issue with the skips), but that, on slower systems, there's some strange timing problem in the networking that's obscured by a faster system. Since Python's networking seems to work fine with everything else, I tend to blame the TiVo end. But I don't know exactly what's going on there.

    Just to illustrate the strangeness of the problem: Even though error 5-6 only appeared on my slowest system, it actually went away when I made pyTivo respond even more slowly, by adding some debug output. (Oh, it's fun trying to deal with a problem that goes away when you debug it!)

    Since that system died, I no longer have any machines slow enough to evoke error 5-6.
     
  11. Feb 21, 2009 #331 of 1437
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Thanks, I didn't realize this-- I'll have to make changes to streambaby transcode non-compliant videos, and add the parameter to ffmpeg to force 48Khz.
     
  12. Feb 21, 2009 #332 of 1437
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    Well, what am I supposed to do with a 9-year old unsupported hardware Leopard Server anyway? You guys should be doing better to support clowns like me! :D
     
  13. Feb 22, 2009 #333 of 1437
    gosox13

    gosox13 New Member

    11
    0
    Nov 22, 2005
    Chicago suburb
    I just downloaded pyTivox and added some photos from my pictures on my iMac running Leopard. The data (name, date, etc) with respect to the photos transferred fine to my TiVo, but I can't see any of the photos.When I choose a photo and select "View photo" it shows an icon of a photo negative with a crack running down the center. I then experimented with a music file from iTunes and it worked fine. Any help? Thanks.
     
  14. Feb 22, 2009 #334 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Yes, this is a known bug that is fixed in the beta release. Either download that from the 'downloads' section, or wait, (I suspect the beta will become the main release in the near future)...
     
  15. Feb 22, 2009 #335 of 1437
    seattlewendell

    seattlewendell New Member

    248
    0
    Jan 11, 2006
    I'm using the Beta now. It is unreal how well this works. Thanks Yoav!
     
  16. Feb 22, 2009 #336 of 1437
    gosox13

    gosox13 New Member

    11
    0
    Nov 22, 2005
    Chicago suburb
    Yes, the Beta worked--thanks!
    One more question. When I went to add photos from iPhoto, I could get to Users/MyName/Pictures, but then the iPhoto library was grayed out and nonselectable, so I had to select the entire Pictures folder, which included iPhoto as well as other folders and files. Does this mean I can only select whole folders, not individual photos, etc? I am a recent convert to Mac from Windows, so please excuse if I am not using correct terminology for the Mac operating system.
     
  17. Feb 22, 2009 #337 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    You can't share only a single photo or file from the gui. It needs to be a folder with pictures. even if you could share a photo, an iPhoto library file is not a photo, it's just a description of other pictures, which pyTivo doesn't know what to do with (for the same reason, you can't share your iTunes library, but you can share the folder that contains your music).
     
  18. Feb 22, 2009 #338 of 1437
    gosox13

    gosox13 New Member

    11
    0
    Nov 22, 2005
    Chicago suburb
    That's what I guessed. Thanks again for confirming.
     
  19. Feb 25, 2009 #339 of 1437
    Clusty

    Clusty New Member

    42
    0
    Jun 11, 2007
    Yoav, how about adding the native-mp4 streaming that people are talking about here to pyTiVoX? Or is that only possible on Windows?
     
  20. Feb 25, 2009 #340 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    It's 'push', not 'pull', so it won't work the way you expect it to... I'm hoping that 'pull' mp4 support can be figured out and then things will 'just work', but for now, no support. (Remember that pyTivoX is intended to be a nice simple clean front-end that 'just works' -- It doesn't offer MANY of the advanced options of pyTivo without hacking the config files by hand).

    Advanced: The code *IS* in the latest beta. So if you download and install it, you can certainly edit ~/Library/Application Support/pyTivoX/pyTivo.conf and insert all the necessary values required for push support, and it will gladly push mp4s... OR access the web interface (after starting pyTivoX, connect to http://localhost:9032/), and do the same thing. But I don't promise it works, I don't promise to prioritize fixing bugs, and I may not even be helpful in figuring out how to fix things.

    Keep in mind that changes to the config files will get overwritten if you hit the 'Apply' button.

    On the other hand, wmcbrine (the guy who wrote the pyTivo you're using) generally checks this thread, and may be helpful. Not gonna promise anything...
     

Share This Page