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. leo662

    leo662 New Member

    1
    0
    Jul 25, 2009
    Just got my Tivo HD in this week and found this bit of awesomeness via Google. Thanks for the work keary (and any other contributors). Admitted novice here, but very good at following instructions.

    Tried to find an answer to this to no avail...admitedly did not hard search through all 48 pages of this thread, but did drill down to 4 pages by searching for "directory". I'm coming from a perspective of using Xbox Media Center and using SB on a Vista machine. In XBMC, I am able to add multiple directories abd they all show up under one "master" view. Trying to do the same with SB, as I have a couple of different hard drives storing my media. On XBMC, if I point to "drive A" and "drive B", both contents will show up under "Videos" merged and sorted almost as if they are one large drive. Is there a syntax I would use in the SB.ini to get the same results. Currently I have the following (for example):

    dir.1=C:\Videos
    dir.1.name=Videos

    dir.2=M:\Test
    dir.2.name=External Drive

    Which results in 2 listings on the Tivo end. I'd like both those directories to merge on the back end so when we navigate to the SB "interface" on the Tivo it's just one large file list. I've tried various methods with no positive results, such as this:

    dir.1=C:\Videos,M:\Test
    dir.1.name=Videos

    Granted, I don't "know" what I'm doing here, but can follow the directions of the experts very well and catch on from there. Thanks for any help.
     
  2. jonL

    jonL New Member

    2
    0
    Jun 30, 2009
    When I try to run this program I get the following message in the cmd window:
    'java' is not recognized as an internal or external command, operable program or batch file.
    Exited.
    Press any key to continue...

    I do have Java installed....what's the problem? How can I troubleshoot.
     
  3. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    You need to have java.exe in your path. Locate java.exe and add that directory to your PATH environment variable. (Right click "My Computer"->Properties->Advanced-Environment Variables.)
     
  4. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Unfortunately as far as I know there is no way to merge these into one directory using just Streambaby. At the moment you can point different folders and they show up each separately.

    I do know there are tools for creating virtual network shares. I do not know if any of those allow you to merge two directories into one share, but that is the direction you should look into.

    Good luck,

    Rick
     
  5. angusj

    angusj New Member

    5
    0
    Jul 25, 2009
    Sydney
    I've just created a tiny Windows executable (as an alternative the the batch file, or the service) which launches streambaby and also places a streambaby icon in the notification area. The benefit of using this tiny executable instead of a batch file is that it avoids taskbar clutter and an annoyingly visible Windows CMD box. (Yes, I could simply run streambaby as a service, but I generally prefer applications over services except for OS related processes.)

    Anyhow, it can be downloaded here (34kb, includes full source code): www[dot]angusj[dot]com/streambaby.zip
    (Apologies for the mangled URL, I can't post proper links yet as this is my first post.)
     
  6. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    I think I posted this in the wrong thread, moving it here:

    Now I put the path "C:\Program Files\Java\jre6\bin\java.exe". I also tried "C:\Program Files(x86)\Java\jre6\bin\java.exe" into the Streambaby.bat file and it displays all the usage info for java and the options for usage so I must have done something wrong. It displays all the usage info and then Streambaby starts ok but still gives me the error "FFmpegJavaVideoModule: Unable to load FFmpeg native libraries". The rest seems ok it says Listener: added factory and then Main: streambaby ready & listening. Please realize that there is no urgency for a response on this because it works fine. It is just curiosity that has got me on this. Thank-you.

    Here is my streambaby.bat:
    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    "C:\Program Files\Java\jre6\bin\java.exe"
    java -Djava.net.preferIPv4Stack=true -Xmx256m -Xmx256m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8
    echo Exited.
    pause
    popd
     
  7. mikek2

    mikek2 New Member

    16
    0
    May 2, 2009
    Perth,...
    Almost there. You're running java twice. Your batch file should read something like:

    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    "C:\Program Files (x86)\Java\jre6\bin\java.exe" -Djava.net.preferIPv4Stack=true -Xmx256m -Xmx256m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8
    echo Exited.
    pause
    popd
     
  8. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    thanx I'll try that and post back if it doesn't work but I am sure it will.:D
     
  9. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    Alright that got rid of the usage info but still getting this error "FFmpegJavaVideoModule: Unable to load FFmpeg native libraries". I think this was mentioned before in the forums. Like I say at least it works fine. But thank-you. It got rid of the java usage info. Maybe I have to try a different java version? Let me know if anybody has any ideas on that. But I am happy that it works.
     
  10. windracer

    windracer joined the 10k club

    11,599
    4
    Jan 3, 2003
    St. Pete, FL
    I'm pretty sure you can ignore it.
     
  11. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Well, it *is* telling you that it can't read the ffmpeg libraries, which means you are losing out on some features of streambaby.

    If you care enough, you're gonna need to make sure you have all the appropriate shared libraries that ffmpeg builds with (stuff like libavcodec, libavformat, etc) available and pointed to by the config.
     
  12. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005

    I did a search for libavcodec and libavformat on my system and I don't believe I have them?
     
  13. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    Here are the contents of my native folder:

    avcodec-52.dll
    avdevice-52.dll
    avformat-52.dll
    avutil-49.dll
    ffmpeg.exe
    ffplay.exe
    placeholder.txt
    SDL.dll
    swscale-0.dll

    Is this correct? I did not do anything special when downloading and installing Streambaby. As a matter a fact I think I just put it on the Desktop.
    Using 32bit Java or pointing to it in the streambaby.bat file doesn't get rid of the error so I know that people have said I can safely ignore it but others have said that some sort of functionality will be lost. If the ultimate solution is to use a 64bit version of ffmpeg where might I find that. Thanks in advance for any response on this.
     
  14. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok your native folder has the shared libs (I guess on windows they are called avcodec-52.dll etc).

    So either streambaby isn't finding them, or it is finding them but failing to load them. Do you have any sort of directives in your streambaby.ini with names like ffmpegjava.avutil=(some path) ?

    Also I note that your avutil is version 49, while the rest of the libs are 52. Not sure if that's normal?
     
  15. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    ok thank-you for your response Yoav tried this but still same result i don't know. Here is my modified streambaby.ini


    #
    # ./streambaby --help for more configuration file options
    #

    dir.1=g:\ionman19642\Videos\
    dir.1.name=My Videos
    dir.2=J:\mpegs
    dir.2.name=mpegs
    dir.3.name=DVD
    dir.3=H:\
    ffmpegjava.avutil=C:\users\ionman19642\Desktop\Streambaby\streambaby-0.27\native
    # Ip address to bind to
    # most people don't need to change this.
    ip=192.168.0.7
    #port to use
    port=7290

    Is there a chance that I may also have to modify the Streambaby.bat?
     
  16. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I think what you want is lib.native, not ffmpegjava.avutil

    Honestly, do you REALLY care about the thumbnail preview generation enough to go through with all this? The full description of the ini file is listed here: http://code.google.com/p/streambaby/wiki/StreamBabyIni
     
  17. ionman1964

    ionman1964 New Member

    16
    0
    Jul 13, 2005
    No if that is the only functionality I'll be missing then I guess the answer is no. Thank-you for trying however. I did check out the streambaby.ini options page and and you are correct it does require lib.native=path. I will use this as a reference for any further questions I have for editing the streambaby.ini. Thanks again
     
  18. Ink Noise

    Ink Noise New Member

    20
    0
    Jan 10, 2005
    San...
    Oy. I used pyTiVoX which has streambaby included and already configured which works fine with my TiVo HD across the network. But now I'm trying to set it up to run on an Ubuntu server, and I can't get it to work for the life of me.

    It starts and runs fine without errors in Terminal and shows up on the TiVo under Music, Media, Showcase. However, when I try to run it, I get the 0x50005 HTTP Connection Error. I've read every post with the mention of the error in this thread but still can't fix it. Ideas? I've set it to debug mode which shows me that everything is starting up fine.

    The .ini file looks like:

    dir.1=/shares/sync/Media/Documentaries
    dir.1.name=Documentaries
    dir.2=/shares/sync/Media/Movies
    dir.2.name=DVDs/Movies
    dir.3=/shares/sync/Media/Television
    dir.3.name=Television
    ip=10.0.1.200
    port=7292
    title=Stream - Network Share
    trimextensions=true

    EDIT: Also, this 0x50005 error is immediate. Some others who had the issue say it takes a minute or two for it to appear.
     
  19. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Did you enable the debugging logging? You may get some useful info in there...
     
  20. Ink Noise

    Ink Noise New Member

    20
    0
    Jan 10, 2005
    San...

Share This Page