Streambaby - new streaming application

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

  1. dchomak

    dchomak New Member

    May 3, 2015
    Not much action in this thread anymore, but I do want everyone to know that I, for one, use StreamBaby almost every day!

    More that 2 years ago, I posted a question on how to link more than one drive to the search function within StreamBaby. I was given a couple of suggestions but they were not what I was looking for.
    I have many, many videos stored on 2, 8TB external drives and when I search for a video I wanted to be able to search both drives with just one search. I finally figured out how to do just that with the MSDOS "mklink" command.
    I store all of my videos on 2 drives In these 2 locations.
    "G:\StreamBaby root" and "M:\Music Videos"
    For some reason I have found that the search function in StreamBaby doesn't seem to work properly when trying to search for files in a root directory of a drive, at least not for me.

    I am running Windows 7 and I opened up a command prompt as administrator and typed in this command:

    mklink /J "M:\Music Videos\common" "G:\streambaby root"

    This only has to be done once.
    a link will be created in M:\Music Videos named "common" and you will see it there after running the command. It will survive shutdowns and reboots.
    Now when I search "M:\Music Videos" the search will extend to the second drive and also search in "G:\StreamBaby root"

    Because of the spaces in the directories, it is necessary to use the quotes in the paths.
    to remove the link, should you want to, simply delete the "common" link.

    One more important thing I had to do is increase the amount of memory StreamBaby is allocated in the "Streambaby.bat" command.
    in stock form it uses 256M, I had to change mine to 4G! You will have to experiment to find the right amount for your configuration. If you don't have enough you will get an error in the streambaby.bat console. Use Windows Task Manager to see just how much you need.

    I edited mine from this:

    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    java -Xmx256m -Xmx256m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8
    echo Exited.

    to this: (changes in bold)

    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    java -Xmx4096m -Xmx4096m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8
    echo Exited.

    In my case this does suck 4GB from my system memory during the first search, and that first search does take some time. However, each successive search during that same SB session is cached and is just about instantaneous.

    Bumping up the allocated memory for SB solved all the search issues I had in the past.
    That 4G of memory allocated is released once my SB session is ended.

    A question I have is why is there 2 identical memory commands in Streambaby.bat?
    Should there be a min and max command?
  2. tluxon

    tluxon Member

    Feb 28, 2002
    Kirkland, WA
    Yes, mklink is not well-advertised but extremely useful and powerful.

    I use streambaby (0.54) several times a week to access programs primarily recorded with Windows Media Center on any of several 6TB drives. I haven't actually noted how much memory is being consumed to load all the shows, but perhaps it's different for me as I'm running streambaby as a service as opposed to via the batch file.
  3. reneg

    reneg Well-Known Member

    Jun 19, 2002
    I think the default should be -Xms256m -Xmx256m. It looks like it should define initial and maximum heap size. Though not recommended to have different values, you might get away with just modifying the second parameter to set the maximum. like -Xms256m -Xmx4096m. It might not take as long for that first search unless you truly are consuming 4GB of memory. Glad you found something that works for you
    Last edited: Aug 29, 2019
  4. kflinch

    kflinch Member

    May 19, 2004
    Philly Suburbs
    I didn't know Streambaby has a search function.
  5. Sep 7, 2019 #3645 of 3646

    sonnymiles6 New Member

    Jun 17, 2015
    What does a streambaby.ini file look like with mp3 in the list of extensions?
  6. dchomak

    dchomak New Member

    May 3, 2015
    just add it in like so..


    You will see the mp3's and they will play. Progress bar doesn't advance and you can't fast forward (instant crash)
    my point was that they do play. I even messed around trying to configure the streambaby.ini options to remove the preview pane, etc.
    it sure would be nice to use the TiVo to play mp3's again.

Share This Page