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. Ink Noise

    Ink Noise New Member

    Jan 10, 2005
    I upgraded Ubuntu 8.10 to 9.04 earlier this morning now I receive the following error:

    "FFmpeg failed to continue running... Assuming error
    SocketProcessInputStream: Destroying running process...
    ViewScreen: error=Failed to open stream"

    Ideas? It seems as though all components required to run ffmpeg successfully are working and playback of video on the machine is fine. Halp.
  2. kearygriffin

    kearygriffin New Member

    Jan 31, 2008
    I am currently running Ubuntu 9.10 AMD64 without problems. Your best bet is to turn on the streambaby debug log:

    There should be a line in the log after you try to play the movie that shows the exact ffmpeg command streambaby is executing. If you cut-paste that line, replacing the tcp://xxxxxx:yyyy part with a temporary filename to encode the file to, and execute it on the command line it should probably spit back the exact the error that is occuring.
  3. kearygriffin

    kearygriffin New Member

    Jan 31, 2008
    I haven't played alot with Windows 64 so I am not sure of exactly what works, what doesn't work-- Streambaby uses a "Java Service wrapper" to launch as a service that is only available to the community as a 32-bit wrapper. (There is a 64-bit version, but it is not open source).

    You can try to make sure streambaby is using a 32-bit version of Java and see if that makes the service work. I really don't know if this will affect anything or not. Also make sure you reboot after any of the service changes, as it seems windows really doesn't like to change some service settings without a reboot in between. (Especially after removal of the service, and before installing it again)
  4. kearygriffin

    kearygriffin New Member

    Jan 31, 2008
    Quite a few people have mentioned this and I have been resistant so far-- Even with an option I don't like the idea of some bug/misconception accidentally deleting peoples files. (I don't like to get yelled at ;-) Having said that, I'll keep it in mind.

    Currently streambaby does not accept m3u files, and the only way to do something somewhat equivalent is via playing an entire folder. I hadn't really thought about m3u playlists, and will take a look at some point.

    This sounds like a firewall issue or some outher kind of IP routing issue-- For whatever reason the TiVo can't access the IP/port streambaby (or streambaby is attaching to an incorrect port...) Make sure when you look at the streambaby log there should be a line showing which mDNS address it is advertising. Make sure this is the IP address of the machine. (This will also be the IP address that streambaby is listening on for incoming connections)
  5. zabolots

    zabolots Member

    May 24, 2007
    NW Chicago...
    While watching a movie yesterday we watched for a bit, paused for a while, and returned to start watching again. It turns out that we paused just before the end of the initial buffer (1GB?) and shortly after playing we got the "Rebuffering...Please wait..." message, which worked as expected.

    I was thinking that it would be cool if, whenever playback is paused for some (configurable) time period, streambaby could restart the buffer from that point to ensure that later viewing is not interrupted to rebuffer. Would something like this be possible?
  6. arn0ld

    arn0ld Arnold Mondragon

    Nov 4, 2006
    Is it possible for streambaby to play files random or shuffle play. it would jump to random files/folders unlike the ff command to play files in a folder. This would play files from anywhere in any order kinda like a streambaby TV Channel or similar to random play on a ipod, without user having to select file to watch. of course it would be an option which can be turned off/on thru a remote command or button on main screen. that might be fun?
  7. BJezz

    BJezz New Member

    Jan 11, 2009
    Actually I would also take advantage of a random play feature. I have a directory on my server with music videos in it and can see me using shuffle play here.
  8. reneg

    reneg Member

    Jun 19, 2002
    Possible yes. Without Java experience, I managed to cobble together random file play into Streambaby. This code snippet comes into play once you've selected a group of files to play with the ff command. If the Record key is pressed, it makes a random jump to a file within the ff list. Lots of room for improvement in this functionality. I've been hoping that Keary would add random play and delete file to Streambaby.

    Changes I made to ViewScreen.java
    > import java.util.Random;
    > 	Random rand = new Random();
    > 			case KEY_RECORD:
    > 				if (infoView != null && infoView.getVisible() && metaview != null) {
    > 					// reset timer
    > 					timeout_info = new Date().getTime() + 1000 * GLOBAL.timeout_info;
    > 					return metaview.handleKeyPress(code, rawcode);
    > 				}
    > 				int randVidNum = rand.nextInt(videoList.size()) + 1;
    > 				if (randVidNum < 0 || randVidNum >= videoList.size()) {
    > 					play("bonk.snd");
    > 					return true;
    > 				}
    > 				curVideoNum = randVidNum;
    > 				playNextVideo(1);
    > 				return true;
  9. MrGolden

    MrGolden New Member

    May 18, 2009
    Is there a way to create "shortcuts" for video files?

    It seems like the more files I have in a folder, the longer it takes the list to appear. To alleviate that, and make it easier to find content, I'd like to create folders for each category or genre. However, I don't want to have multiple copies of the same file in different folders, for movies that fit in more than one category. I'd also still like to have an "All" folder that contains everything.

    Is this possible?
  10. hadji

    hadji New Member

    Sep 22, 2009
    Don't run a firewall. IP address and router have remained configured the same since it was originally working. Streambaby log doesn't show an annouce, having only the two following lines:

    09/28/09 13:11:40 Listener: added factory
    09/28/09 13:11:40 Main: streambaby ready & listening.

    But I must mention that I have solved it, thanks to you mentioning the log showing an IP. I just manually bound the announce IP, and it's now showing up again on the tivo. Didn't do it originally, so didn't think to try it. I'm guessing that streambaby was hooking to Hamachi, as that's the only excuse I can think of for needing to statically set that IP. Uncertain why sb would suddenly do that, though.

    But, I'm now a happy camper.
  11. rfryar

    rfryar My Media, My Way

    Feb 15, 2008
    In windows you can create what are called Junctions which can map a "folder" to any other drive or folder. These are similar to Symbolic Links on a unix system.

    Check out this tool that you can use to create Junctions:

    I was planning on doing something similar as you to help organize my videos into A-Z directories and by categories, but just have not gotten around to it yet.

  12. Oct 1, 2009 #1592 of 3464

    rtpmatt New Member

    Sep 1, 2009
    I am having a problem with streambaby. Every time i try to play a video, it output the following error:

    StreamBabyStream: code=1 message=can't create rsrc. unsupported stream type /streambaby/6ac58ac1-8dff-4688-855c-73253b5f5a4e.stream
    ERROR code=1 Message: can't create rsrc. unsupported stream type /streambaby/6ac58ac1-8dff-4688-855c-73253b5f5a4e.stream
    10/01/09 22:50:26 StreamBabyStream: code=3 message=resource 2523 not found (type type[-1])

    I cant seem to find a list of error codes anywhere that might help me fix this.

    A little more information, streambaby is running on a linux box that is wired to the same router as my tivo box. I have ffmpeg install, and I am running galleon and pyTivo without a problem. I have tried a bunch of different videos, including videos I have created myself, and videos copied directly from my tivo.

    Any help would by much appreciated.

  13. Oct 2, 2009 #1593 of 3464

    hypnoticpimp New Member

    Jul 20, 2008
    Im having problems

    when i open the streambay.bat file

    i get an error on cmd saying

    I have windows vista

    and i have java installed

    and i went to Enviromental varibles

    and it says this next to Classpath

    C:\Program Files\Java\jre6\bin

    So not sure. it used to work before. but now i keep getting that error
  14. Oct 2, 2009 #1594 of 3464

    moyekj Well-Known Member

    Jan 23, 2006
    Read the getting_started Wiki page again carefully. The problem is you don't have correct path to java in your Windows Path. The Wiki tells you how to add it.
  15. Oct 4, 2009 #1595 of 3464

    rustyshackelford rusty shackelford

    Apr 9, 2009
    greetings - i got rid of my powerline units and went hardwired cat6 direct from my linksys router. reloaded tivo 2.7 and the computer still wouldnt see the tivos. both tivos saw each other and allowed me to transfer between the two tivos but no go on seeing the tivos from the computer or playing any music that was published. just to check, i reinstalled 2.62 and the software saw both tivos immediately. then i upgraded to 2.7 and back to no seeing them. i remembered from an earlier post that bonjour was the difference between the two so i downloaded the latest bonjour from apple and reinstalled. still nothing. same thing with streambaby, except streambaby wont work with either 2.62 or 2.7. it says its ready and listening but there is no streambaby in my menu on my tivos. i cant think of where i am going askew. quite the brainteaser. any thoughts?
  16. Oct 4, 2009 #1596 of 3464

    arn0ld Arnold Mondragon

    Nov 4, 2006
    if we don't have java experience can you point us in the right direction. i did some searching for viewscreen.java and it didn't help much. thanks
  17. Oct 6, 2009 #1597 of 3464

    lairdre New Member

    Jan 9, 2008
    I have been using Streambaby for about 1 week now. I just can't seem to get DVDs to run with Streambaby. I have put my DVD in the drive and pointed Streababy to it. I am assuming I am just doing something wrong. Does anyone have any suggestions.

  18. Oct 6, 2009 #1598 of 3464

    reneg Member

    Jun 19, 2002
    Maybe I made it sound too easy. I don't have java experience, but I do have programming experience. You need the source code (from http://code.google.com/p/streambaby/ ) and a java development environment. I chose NetBeans, however there are others such as Eclipse. NetBeans seemed easier/quicker for me, plus it had a nice tutorial. Make sure you can build Streambaby, and then make your changes (This could take hours or weeks depending on your expertise level).

    If you don't have programming experience, best bet is to wait until the original author gets around to adding new features.
  19. gswans5

    gswans5 New Member

    Jul 6, 2009
    Ok guys,
    I'm a rookie with all this suff and I did have Streambaby working before, but I just did a fresh re-install of Visata and cannot get it to work.

    Here is my INI file:
    # ./streambaby --help for more configuration file options

    dir.1.name=My Videos
    #dir.2.name=External Drive
    # Ip address to bind to
    # most people don't need to change this.
    # port to use

    Here is my BAT file:
    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    echo Exited.

    I am running Java 6 Update 16 (is this the problem?)
    I moved Java to the C drive with that path that is listed in line 4.
    When I run that BAT file here is what happens below:

    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)

    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    set a system property
    enable verbose output
    -version print product version and exit
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    enable assertions
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    load native agent library by full pathname
    load Java programming language agent, see java.lang.instrument

    show splash screen with specified image
    Press any key to continue . . .

    So is it something I screwed up or is the Java 6 Update 16 the problem???
    Please help, I don't have much hair left to pull out and the wife is busting balls about getting it running again!!!

  20. Rdian06

    Rdian06 New Member

    Apr 12, 2008
    Here is the streambaby.bat file extracted from the latest zip file:

    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    java -Djava.net.preferIPv4Stack=true -Xmx256m -Xmx256m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8 
    echo Exited.
    You seem to be missing everything after java in yours so java.exe has no idea what code to load...

Share This Page