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. Nov 8, 2009 #1701 of 3450
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,085
    0
    Apr 19, 2004
    East Moline, IL
    This is probably something for the developers to answer, but is the file "paused" on the Tivo, and java is keeping a lock so it know where to resume? Perhaps if you open another file from Tivo, the lock will release?
     
  2. Nov 8, 2009 #1702 of 3450
    LennonNZ

    LennonNZ Geek

    3
    0
    Nov 8, 2009
    I'll be very interested in streambaby when someone gets this resolved. I have started a HME server (with a few demo apps on it at the moment) for NZ users (60.234.76.50) if people want to try it. It has a a public streambaby server on it + others and as you can see (streambaby) doesn't work for NZ/AU :-(

    If anyone has a tcpdump of streaming via HME working I can see what is needed to get it working properly. I presume a dump of CASPA might show it (I presume CASPA is a HME application of some type)

    When we (the community) gets it going I am looking into writing my own streaming app for non Telecom users who can't get CASPA.
     
  3. Nov 9, 2009 #1703 of 3450
    dm_

    dm_ New Member

    19
    0
    Nov 4, 2009
    Sorry, dumb question - what is CASPA?
     
  4. Nov 9, 2009 #1704 of 3450
    LennonNZ

    LennonNZ Geek

    3
    0
    Nov 8, 2009
    CASPA = TiVo's VOD system based on tandberg hardware which is only available via Telecom Broadband (around 50% of the NZ market) so 1/2 of NZ's broadband customers cannot get the VOD system on the via TiVo. Without the VOD system you can still watch/record DVB-T broadcasts and get the EPG via the internet.
     
  5. Nov 9, 2009 #1705 of 3450
    dm_

    dm_ New Member

    19
    0
    Nov 4, 2009
    ahh ok, so probably a bit like the .AU setup with Blockbuster (download movies etc, for a price). At least here, I don't think it uses the streaming stuff, since it actually downloads it to the harddrive (at least that is my understanding, never actually used it). Doesn't matter what ISP you use here (although some ISPs have a deal with TiVo not to count the traffic towards your download cap, some don't).
     
  6. Nov 9, 2009 #1706 of 3450
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Nope, it will lock all the MP4 files that I have streamed since restarting streambaby and keep them locked until I restart the service again.

    Rick
     
  7. Nov 9, 2009 #1707 of 3450
    Chuck Clayton

    Chuck Clayton New Member

    3
    0
    Nov 9, 2009
    I'm running Windows 7 64 bit with a Tivo HD. I downlodated streambaby-svn-r253.

    I modifed the streambaby.bat file to use the 32 bit Java. If I fail to do this, I do get errors when I run streambaby.bat.

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

    The .ini looks like this:

    --
    dir.1=C:\Users\Chuck Clayton\Videos
    dir.1.name=Voyager2 Videos
    #dir.2=/media/disk
    #dir.2.name=External Drive
    # Ip address to bind to
    # most people don't need to change this.
    #ip=192.168.1.37
    # port to use
    #port=7290
    --

    When I run the streambaby.bat file, all looks good. No errors
    - Initializing StreamBaby svn-r253...
    - Listerner: added factory
    - Main: streambaby ready & listening

    Here's the problem:

    I go to Tivo and there is no entry for StreamBaby under TiVo's "Music, photos, & Showcases" menu.

    I've looked all over for a solution for this and havn't found anything so I'm hoping someone in this group can help out. I've also enable and disabled Tivos "enable home network applications" setting and StreamBaby is still MIA in either case.

    Please let me know if I'm missing someting.

    Thanks,
    Chuckc
     
  8. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...

    The first thing I would do is to turn off the IPv6 stack. This confuses Java at least on my Vista builds.. It is easy to turn off and check to see if this is the issue.

    The second thing to inspect is your windows Firewall settings to ensure the ports listed in your INI are correctly open.

    Link to help disabling IPv6: http://www.mydigitallife.info/2007/09/09/disable-and-turn-off-ipv6-support-in-vista/

    Rick
     
  9. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I had never seen this problem mentioned before (nor had I noticed it myself) but did just take a look and could see the spot where an MP4 file would be left unclosed. I've fixed the problem and it should be available as r261.

    Note: You mentioned thumbnail generation in your message and it is quite possible that trying to delete a file while it is generating thumbnails may not work. This is a slightly more complicated issue I will have to address in the future, but is unrelated in this particular case. I think this is a more important issue since it was always leaving the MP4 files open and for people who leave streambaby running it could eventually be problematic regardless of the delete feature.
     
  10. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Well some progress. In the first "WhoLockedMe" test there was three Java process's locking the files, now there is just two. But the files are still being locked.

    I still wonder if it is the thumb nail creation process that is failing to run on my PC which causes the file to be locked and never released. How can I debug that process?

    Do I need to do anything other than update the log properties to enable com.unwiredappeal=debug? Is there anything I can set in the .ini to disable thumbnail creation and see how that effects the file locks?

    Update: Found this entry, will give it a try and get back to you..
    preview.autogenerate=false

    Thanks for your help!

    Rick
     
  11. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Ok with thumbnail generation off there is only Java process still holding all the files open after I play them. So now I am stumped as to what else is left..

    Rick
     
  12. Chuck Clayton

    Chuck Clayton New Member

    3
    0
    Nov 9, 2009
    I've disabled Ipv6 and created a new inbound firewall rule to allow TCP port 7290. The Tivo still does not see the StreamBaby stream.

    I've updated the sterambaby.ini file to specify the IP of the Tivo but that caused a bunch of Java errors and the program exits:

    --
    dir.1=C:\Users\Chuck Clayton\Videos
    dir.1.name=Voyager2 Videos

    # Ip address to bind to (Tivo IP)
    ip=192.168.113.21

    # port to use
    port=7290
    --

    --
    C:\Program Files (x86)\streambaby-svn-r253>streambaby.bat
    Initializing StreamBaby svn-r253...
    java.net.BindException: Cannot assign requested address: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at com.tivo.hme.host.http.server.HttpServer$PortInterface.<init>(HttpServer.java:204)
    at com.tivo.hme.host.http.server.HttpServer$Port.<init>(HttpServer.java:169)
    at com.tivo.hme.host.http.server.HttpServer.start(HttpServer.java:79)
    at com.unwiredappeal.tivo.streambaby.host.Listener.<init>(Listener.java:103)
    at com.unwiredappeal.tivo.streambaby.host.Main.<init>(Main.java:137)
    at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:152)
    error: Cannot assign requested address: JVM_Bind
    usage: Main [--port <port>] [--ip <ip>] class

    Exited.
    --

    If I don't specify the IP, the program runs fine but Tivo does not see it.

    I will note that my local subnet is 192.168.113 where most people are probably on 192.168.1, could that be the problem?

    PC StreamBaby: 192.168.113.20
    the TiVo is: 192.168.113.21.

    Still, I'm unclear on how the TiVo would see the stream anyway. I start the server on the PC, does the TiVo always scan the network looking for servers or is there something I have to do to the TiVo to get it to look for the server?

    I've tried manually setting up a server using the TiVo and the IP of the PC running StreamBaby but still no luck.

    The instructions for StreamBaby seem so easy. Download the file, edit the .ini and run the .bat. I need to get my TiVo to read the instructions because it is oblivious to the StreamBaby software running on my PC.
     
  13. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    The ip= in the INI file should be the IP address of the PC running streambaby (not the TiVo), so in your case it should be
    ip=192.168.113.20

    Streambaby will then bind to this address and "broadcast" it over the network, where the TiVo will see the broadcast and know there is an HME server running on it.

    I don't know if this will fix the initial issue, but it is worth a try.
     
  14. Chuck Clayton

    Chuck Clayton New Member

    3
    0
    Nov 9, 2009
    I set the .ini IP to my IP and StreamBaby ran fine with no errors, ready and listening.

    Still no sign of StreamBaby on the Tivo

    Turned windows firewall completely off and still no-go. Maybe it's a windows 7 issue.
     
  15. windracer

    windracer joined the 10k club

    11,600
    4
    Jan 3, 2003
    St. Pete, FL
    I don't run streambaby on Windows, so this is a guess, but have you tried taking the spaces out of your path and name? Maybe try using the short directory name like C:\Users\ChuckC~1\Videos (or whatever the short version is) and then just "Videos" for the name?
     
  16. pearcele

    pearcele New Member

    3
    0
    Nov 10, 2009
    I am a newbie trying to get the streambaby.bat file to run on my PC.

    I am running Vista Home Premium (64-bit)....The batch file seems to be getting a bunch "access denied" errors, as evidenced in the command window, and I am concerned I may not have modified the batch file to run Java correctly....

    I haven't seen this problem in the forum - can someone point me in the right direction?

    Many thanks!
     
  17. pearcele

    pearcele New Member

    3
    0
    Nov 10, 2009
    Sorry ---> to be specific the errors are "SimpleLog Error: Error opening log file for writing: java.io.FileNotFoundException: C:\Program Files (x86)\streambaby-0.27\streambaby.log (Access is denied)"

    and

    "C:\Program Files (x86)\streambaby-0.27\ffmpeg-dist.tar.bz2.tmp (Access is denied)"


    Seems strange??
     
  18. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Vista does not let users write to Program Files sub-folders normally. It's a security feature. Right click on the bat file and choose Run as Administrator.
     
  19. pearcele

    pearcele New Member

    3
    0
    Nov 10, 2009
    Wow! right on target Rdian06 --> it worked like a charm!

    thanks!
     
  20. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I think I took care of the last file handle being held open for MP4 files:
    http://streambaby.googlecode.com/files/streambaby-svn-r262.zip

    Thanks for the help.
     

Share This Page