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

Streambaby - new streaming application

Discussion in 'TiVo Home Media Features & TiVoToGo' started by kearygriffin, Jan 20, 2009.

  1. fyodor

    fyodor Member

    523
    0
    Sep 19, 2006
    Hi

    I just installed the newest SVN of Streambaby and I've found that there seems to be an incredibly high lag at the top level directory structure. It loads up pretty quickly, and I can see the main directories. Then-it's frozen for at least a minute or two, no response or anything when I use the remote. After that, I can navigate and play back shows. It happens every time. I've posted my log below.

    Initializing...
    04/28/09 22:23:09 Listener: added factory
    04/28/09 22:23:09 Main: streambaby ready & listening.
    04/28/09 22:24:47 Listener: 192.168.1.10 icon.png HTTP GET - to factory /streamb
    aby/
    log after close : initContext version=47
    04/28/09 22:24:59 Factory: HME receiver connected
    04/28/09 22:27:26 Listener: connection to receiver closed
    04/28/09 22:27:26 Factory: HME receiver disconnected
    04/28/09 22:35:10 Listener: 192.168.1.10 icon.png HTTP GET - to factory /streamb
    aby/
    log after close : initContext version=47
    04/28/09 22:35:13 Factory: HME receiver connected
    04/28/09 22:40:30 Listener: 192.168.1.10 6f3bb9b6-44a8-498e-b0a7-09deb330eae9.st
    ream HTTP GET - to factory /streambaby/
    StreamBabyStream[#1,uri=null] warning: resource 2786 not found.
    StreamBabyStream[#1,uri=null] warning: resource 2786 not found.
    StreamBabyStream[#1,uri=null] warning: resource 2786 not found.
    StreamBabyStream[#1,uri=null] warning: resource 2786 not found.
    04/28/09 22:40:46 Listener: 192.168.1.10 I/O Exception handling HTTP GET 6f3bb9
    b6-44a8-498e-b0a7-09deb330eae9.stream: Connection reset by peer: socket write er
    ror
    04/28/09 22:40:46 JavaMP4Splitter$Splitter$1: IOException: java.io.IOException:
    Pipe closed
    04/28/09 22:40:57 Listener: 192.168.1.10 99567905-674b-4f81-b05a-83045f386174.st
    ream HTTP GET - to factory /streambaby/
    StreamBabyStream[#1,uri=null] warning: resource 3319 not found.
    StreamBabyStream[#1,uri=null] warning: resource 3319 not found.
    04/28/09 22:41:20 Listener: 192.168.1.10 I/O Exception handling HTTP GET 995679
    05-674b-4f81-b05a-83045f386174.stream: Connection reset by peer: socket write er
    ror
    04/28/09 22:41:20 JavaMP4Splitter$Splitter$1: IOException: java.io.IOException:
    Pipe closed
    04/28/09 22:41:23 Listener: connection to receiver closed
    04/28/09 22:41:23 Factory: HME receiver disconnected
     
  2. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA

    I second this! It is SOOO Awful. If something was changed, change it BACK PLEASE!

    I am getting the same thing with the lag time. Needless to say: Spousal-test failed!

    Mine is the Streambaby included in the b12 PyTivoX

    Jann
     
  3. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Does this happen with the new push code activated (by setting tivo.username=xxx and tivo.password=xxx in streambaby.ini)? If those settings are not set then the pyTivo push code is still in use (which I haven't tested in a while, and may have broke somehow).

    And just to make sure (because there was some recent discussion about this) that
    use.title.cachedonly=false

    is not in your streambaby.ini (it defaults to true, so if it's not there it is good).

    (And to answer a previous question, I realize that it is a little "broken" the way titles/filenames are handled in the selection screen, but it was a compromise. Setting use.title.cachedonly=true and/or meta.vidinfo.disable=false can cause serious slowdowns depending on how many files you have in your directory... There are people with many hundreds of videos in a single directory, and streambaby would appear to hang while it was parsing all of the metadata. I might be able to make this better by eliminating some metadata searches and only allow pyTivo metadata to be used for the selection screen)

    There's certainly nothing I did intentionally that should slow things down in this version.
     
  4. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    Okay, color me confused. Here is my .ini file (written by pytivox and only edited to add: sort.filename=true WHICH I THINK SHOULD BE THE DEFAULT ANYWAY...but...here:)
    Code:
    # Created by pyTivoX, edits here WILL BE OVERWRITTEN
    
    title=pyTivoX - Mini-DVD.local
    preview.cache=/tmp/pyTivoCache/
    autogenerate.delete=true
    port=7290
    ip=10.0.1.101
    ffmpeg.path=/Applications/pyTivoX.app/Contents/Resources/ffmpeg.bin
    ffmpegjava.avutil=/Applications/pyTivoX.app/Contents/Resources/libavutil.dylib
    ffmpegjava.avcodec=/Applications/pyTivoX.app/Contents/Resources/libavcodec.dylib
    ffmpegjava.avformat=/Applications/pyTivoX.app/Contents/Resources/libavformat.dylib
    ffmpegjava.swscale=/Applications/pyTivoX.app/Contents/Resources/libswscale.dylib
    
    ffmpegexe.transcode=-acodec ac3 -vcodec mpeg2video -f vob -async 1 -r ${closest.mpeg.fps} -v 0 -threads 2
    ffmpegexe.transcode.sameqargs=-sameq -ab 384k -ar ${asamplerate}
    
    pytivo.port=9032
    quality.highestabr=384
    quality.highres=1080
    quality.select=true
    trimextensions=true
    sort.filename=true
    
    dir.1=/Volumes/Drobo/TV Shows
    dir.1.name=TV Shows
    dir.2=/Volumes/Drobo/Movies
    dir.2.name=Movies
    dir.3=/Volumes/Drobo/Pending Media
    dir.3.name=Pending Media
    dir.4=/Users/jlinder/Movies
    dir.4.name=Movies Folder
    
    I have given PyTivoX the tivo username and pw but i do not see it in the streambaby.ini

    If i added the username and p/w in the pytivox prefs then why doesn't it put it in the .ini file of streambaby?

    PLEASE just tell me where to edit this ini file to make it act like it used to for speed. I have BUNCHES of files in SUBdirectories of, for instance, dir.1 ...but the most files i have in any one directory is around 50.

    J
     
  5. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Could you try to add the following lines into the streambaby.ini file and restart streambaby:
    tivo.username=your@tivoaccount.com
    tivo.password=yourtivopassword
    pytivo.ip=

    (Note: That's pytivo.ip= with nothing after it...)

    After looking at the code it's actually the pytivo.ip= line that I am kinda sorta hoping will fix the issue. It disables the pyTivo integration. (I though simply having tivo.username and tivo.password settings was enough, but it doesn't disable it completely)

    This is a very new feature, and I assume at some point Yoav will do exactly that.

    Wish I could ;-) All I can say is that eventually we'll figure out where the issue is...
     
  6. fyodor

    fyodor Member

    523
    0
    Sep 19, 2006
    Thanks for the fast response. As an initial troubleshooting measure, I tried using a clean streambaby.ini file with just one, local directory set. Same result.

    I am using Windows 7 with the newest version of Java.

    Thanks again for your help
    F


     
  7. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    And sorry, should have mentioned it in my previous post, but turning on the debug log may generate more information in the log. (I didn't notice anything out of place in the logs from above, but there is usually much more information once debug is turned on).

    http://code.google.com/p/streambaby/wiki/debugging_problems
     
  8. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    Okay, will shutting down and restarting PyTivoX (after i make the edits?) do enough to restart streambaby as I am using the MacOSX version and do not know how to do this separately.

    As an aside...if i shutdown (fully) the PyTivoX software and ensure java (streambaby) is not running, then restart it, the FIRST TIME (and first time only) that I go into streambaby it is fast, all other times it is slow.

    J
     
  9. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    WHAMMO! FIXED IT! YEAH!

    on the negative side, I have *4* lines to remember to add each time I upgrade and change a setting in PyTivoX!
     
  10. fyodor

    fyodor Member

    523
    0
    Sep 19, 2006
    I see that you were suggesting the Push features as a potential solution- I tried this out and it alleviated the problem a little bit. Now, it's more like a fifteen second delay instead of a minute long delay. Generally, navigation seems much more sluggish, with 10-15 second delays for new directories.

    Going to sleep now, but will try to get debug logs tomorrow.



     
  11. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007

    pyTivoX (I'm assuming you're using the beta since you're talking about push) should correctly set tivo.username and tivo.password when you hit 'apply'. Is it not doing that for you?

    It doesn't do the pytivo.ip though. Should I add that in?

    And to your earlier question, yes. Shutting down and restarting pyTivoX will cause it to accept whatever changes you made in the config/ini files. Just don't hit apply or it will overwrite them.
     
  12. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    Yoav,

    Can we PLEASE PLEASE PLEASE add:

    Code:
    sort.filename=true
    
    to the default .ini file? Many of us have gone to GREAT LENGTHS to make filenames such as:

    Code:
    Mythbusters - S01E02 - yadda yadda.mp4
    Mythbusters - S01E03 - alpha beta.mp4
    
    and since "alpha beta" and yadda yadda are the episode names, it sorts them wrong if sort.filename=true is NOT used.

    PLEASE make that the default .ini file and I can stop worrying about the BS of having to keep adding that line.

    Oh, and it DOES add tivo.username and tivo.password when you hit apply, which, because i did not wish to overwrite my sort.filename=true I did not do.

    Sorry

    Thx

    J
     
  13. tbear334

    tbear334 New Member

    11
    0
    Sep 12, 2007
    Would you please provide me a quick run down of what I need (windows) to set up a proper development environment for StreamBaby? I have a lot of programming experience, but haven't used java before and want to play with the code. Thanks for all the great work you've done on this project.
     
  14. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    So, I have to ask, why is that not the default? (I've avoided changing any of the default settings unless I had a complete understanding of what i'm doing). Is there a reason it defaults the other way? Assuming it's a more 'correct' setting wouldn't it make sense to change the default in streambaby?

    Keary?
     
  15. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Here's the breadcrumbs, but you're gonna have to do most of the legwork yourself:

    Eclipse is probably the IDE you want to use: http://www.eclipse.org/ . If you want to avoid dealing with an IDE, you can use javac as the compiler (get the JDK from http://java.sun.com/javase/downloads/index.jsp ) and ant as the builder.

    You can get the source for streambaby via svn from http://code.google.com/p/streambaby/source/checkout

    Anyways, that's as far as my ten foot pole goes, that should be enough to get going. You may want to look up some online tutorials on coding java for help in setting up your coding environment.
     
  16. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I don't think it is a more "correct" setting, but it's possible that it is a setting that more people prefer. I'm not all that organized, so my filenames are all over the place. Sorting by the filename wouldn't work for me. I prefer to have it sorted alphabetically by title. (So at a minimum for me if I have metadata for the files, all the 30 rocks are at least together, which would not be the case if it was sorted by filename)

    The real answer is to add more sort options based on air date, episode number, etc. and have the sort options changeable. Having said this, I don't know when I will get to this.

    On a related topic, and hopefully something that will help:
    I just commited to SVN and uploaded a version that has pyTivo integration disabled by default (pytivo.ip=)
    http://streambaby.googlecode.com/files/streambaby-svn-r232.zip

    The other feature I just added for this version is support of a new INI file called streambaby.local.ini

    This file is loaded *after* the regular streambaby.ini and can add/override configuration settings from streambaby.ini. It is searched for in the same directories and order of the regular streambaby.ini:
    ~/streambaby.local.ini
    ~/.streambaby/streambaby.local.ini
    CURRENTDIR/streambaby.local.ini
    STREAMBABYDIR/streambaby.local.ini
    (~ = users home directory)

    This should make it easier for users of pyTivoX to create custom configuration changes that are not overwritten when apply is pressed.
    (I can't really give any more specific instructions, hopefully Yoav can have some recommendations...)
     
  17. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok sounds like an actual use for the pyTivoX preferences. So adding it as a toggle.

    fetching svn latest and building

    Ok :). With one problem: Does it also use the --config {configfile} option (which is how streambaby specifies where to get streambaby.ini -- it's in none of the 4 places you listed). I suppose I could tell people to put their local changes in their homedir, but that's not 'the mac way'...
     
  18. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Nope :) I can probably fix it so you can specify multiple --config files on the command line, but it won't be until next week. You may want to hold off doing anything as far as the local.ini until then.
     
  19. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok holding off on mentioning anything about it.

    New version (up in about 30 minutes) will allow you to configure sort.filename from the preferences button though so should solve jannlinder's issues.

    edit: Ok Jann, the new version is up, care to give it a spin? (remember to hit apply after you make changes)
     
  20. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    Will check it out tonite.

    THANKS for the great response!


    J
     

Share This Page