tivostream - video streaming server for Series 3 Tivos

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Aug 22, 2008.

  1. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...

    Advertisements

    I made some changes in last release that may have messed this up. Can you try previous version tivostream_v0p8.zip to see if that's any better?
     
  2. windracer

    windracer joined the 10k club

    12,321
    241
    Jan 3, 2003
    St. Pete, FL
    Hmmm ... upgraded to Galleon 2.5.4 last night and now I can't get tivostream to run via the launcher.txt file. Here's the error from the log:

    Code:
    13:16:47,990 ERROR [WrapperListener_start_runner] AppFactory - java.lang.NoSuchMethodException: com.hme.tivo.videostream.Main.getAppFactory(java.lang.String, java.lang.ClassLoader, com.tivo.hme.interfaces.IArgumentList): make sure the class is public and has a public default constructor
    13:16:47,991 DEBUG [WrapperListener_start_runner] AppFactory - java.lang.NoSuchMethodException: com.hme.tivo.videostream.Main.getAppFactory(java.lang.String, java.lang.ClassLoader, com.tivo.hme.interfaces.IArgumentList)
            at java.lang.Class.getMethod(Class.java:1605)
            at org.lnicholls.galleon.app.AppHost.createFactory(AppHost.java:367)
            at org.lnicholls.galleon.app.AppHost.loadLaunchFile(AppHost.java:349)
            at org.lnicholls.galleon.app.AppManager.loadApps(AppManager.java:80)
            at org.lnicholls.galleon.server.Server.start(Server.java:331)
            at org.lnicholls.galleon.server.ServiceWrapper.start(ServiceWrapper.java:47)
            at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
    
    Am I missing something obvious? I'm using the v0p9 jar.

    update: whoops, nevermind ... I had a problem in my launcher.txt file.
     
  3. jay0k

    jay0k New Member

    32
    0
    Nov 8, 2008
    Here is my output with v0p8:

    null null (null)
    LOG: added factory
    MDNS: http://192.168.158.1:7288/videostream/

    Am I missing something obvious here? Nothing else is required to make this work?
     
  4. windracer

    windracer joined the 10k club

    12,321
    241
    Jan 3, 2003
    St. Pete, FL
    Do you maybe have two network adapters in your Mac, a wired and a wireless? Maybe tivostream is latching onto the wrong one?
     
  5. lynncosbm

    lynncosbm Member

    749
    18
    Dec 11, 2006

    Advertisements

    Here is another question from a newbie to Macs and no experience in Java programming - I would love to be able to get this application to work, it looks like it's just what I'm looking for but when I try to run the run_unix.sh command in Terminal, I just get output "Exception in thread "main" java.lang.NoClassDefFoundError: com/hme/tivo/videostream/Main". Does this mean there is a problem with my Java? It looks like I have Java 1.5.0 on my Mac, can someone please help me figure out what I'm doing wrong?
     
  6. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    There must be multiple interfaces available and tivostream is not picking up the one you are expecting. Not sure about OS X but in unix you can run following command to check all available interfaces:
    ifconfig -a
    It's likely that 192.168.158.1 is one of them. Do you have 2 different domains running on your network?
     
  7. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    Make sure you have tivostream_v0p9.jar file in same directory as the run_unix.sh script (previous versions of tivostream have a different Main so won't work). Also, check your version of java as follows:
    java -version
    It needs to be 1.5.x or later to work. If you have multiple Java installations on your machine then you may need to replace java with the full path to the appropriate version.
     
  8. lynncosbm

    lynncosbm Member

    749
    18
    Dec 11, 2006
    Thanks for your suggestions. I still have all the files in the same folder which was created when I unzipped the zip file and have just put that in the Applications folder and then just tried to run it from there. Is that incorrect?

    When I ran the java -version command, it came up java version "1.5.0_16"
    so that seems to be fine, when I replaced java with the full path, I still got the same message.
     
  9. jay0k

    jay0k New Member

    32
    0
    Nov 8, 2008
    I do see that particular IP under the "vmnet1" network interface. The actual interface it should use would be either "en0" (wired) or "en1" (wireless).
     
  10. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    vmnet1 probably exists because you have VMware Fusion installed.

    For the sake of testing, go into your Network preferences and disable all the vmnet# interfaces temporarily and then try tivostream.
     
  11. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    With tivostream_v0p8 you can specify which IP address to use using "--intf IP" option. Using the tivostream_v0p8.jar version edit the "run_unix.sh" script to look like:
    Code:
    java -cp tivostream_v0p8.jar com.tivo.hme.host.sample.Main --intf 10.0.1.193 com.hme.tivo.videostream.videostream
    
    I got over-zealous in v0p9 and removed a lot of overhead including the above option, so probably will need to add it back in next release.
     
  12. westside_guy

    westside_guy Annoyingly ephemeral

    468
    2
    Mar 13, 2005
    The soggy...
    It's sub-optimal as solutions go, but for the moment you can get it to work properly on the Mac by modifying run_unix.sh as shown below - adding the first and third line, bracketing the single pre-existing line:

    Code:
    sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --stop
    java -cp tivostream_v0p9.jar com.hme.tivo.videostream.Main com.hme.tivo.videostream.videostream
    sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --start
    
    This assumes your account is in the /etc/sudoers file, but most people by default are running as an admin and so will be in there already without having to manually add themself. If you're not Unix-savvy, don't try to edit /etc/sudoers yourself!!

    To edit the run_unix.sh file, just use TextWrangler or BBEdit.
     
  13. Laserfan

    Laserfan Member

    440
    4
    Apr 25, 2000
    USA
    Wow, this is a VERY COOL program moyekj, thanks very much for it! :up:

    I wonder if you (or anyone here) knows how to tell the Tivo not to bother with all the other servers off the Internet as some are shown in your screenshot. It seems though like you either switch Home Networking On and get all that other junk, or you switch it Off and then can't use tivostream?

    I have a limited (satellite) 'net connection and don't care about YouTube & the rest... :thumbsdown:
     
  14. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    Short of perhaps blocking certain domains with a router I don't think it's possible to filter out the other HME applications.
     
  15. cmontyburns

    cmontyburns Excellent. TCF Club

    21,652
    3,297
    Nov 14, 2001
    Houston, TX
    Put the full path to the tivostream jar (Java) file in the run_unix.sh script (you can open it with TextEdit).

    So right now it probably says:

    java -cp tivostream_v0p9.jar com.hme.tivo.videostream.Main com.hme.tivo.videostream.Main

    Instead make it say:

    java -cp /Applications/TiVoStream/tivostream_v0p9.jar com.hme.tivo.videostream.Main com.hme.tivo.videostream.videostream

    Except instead of "/Applications/TiVoStream/" put the path to where you have the TiVoStream folder stored.
     
  16. menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    I'm having problems. I can't seem to get any video over a few minutes to completely stream. The videos are all .mp4s encoded with the kmttg program. This is the corresponding entry in the log.

    Code:
    21:46:50,796  INFO [Acceptor] AppHost - 192.168.1.50 Life-(Nov-05-2008)-Jackpot.mp4 HTTP GET - to factory /videostream/
    21:52:51,515  INFO [MediaRefreshThread] MediaRefreshThread - Refreshing media took 374 seconds
    22:01:36,218  INFO [Acceptor] AppHost - 192.168.1.50 I/O Exception handling  HTTP GET Life-(Nov-05-2008)-Jackpot.mp4: Connection reset by peer: socket write error
    22:05:25,953  INFO [Acceptor] AppHost - connection to receiver closed
    22:05:25,953  INFO [Acceptor] AppHost - HME receiver disconnected
    
    I'm running it through Galleon 2.5.4 but I noticed the problem with previous versions of Galleon.
     
  17. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    It looks like your Tivo(s) are rejecting the streams after several minutes. Do the original mpeg2 files from which these were encoded stream and/or transfer OK to the Tivos? It helps to run them through VRD QuickStream fix if you didn't before encoding to mpeg4. If one of the samples is not too huge PM me if you like so I can give you a location to deposit a sample so I can try it out.

    Are you able to get this sample to stream OK all the way through?
    systm--0063--dolby--hd.h264.mp4
    If that one works OK then that means your setup is OK.
     
  18. lynncosbm

    lynncosbm Member

    749
    18
    Dec 11, 2006
    Thank you so much! It looks like that did it! I'm excited I got this to work! (in case you can't tell from all the exclamation marks!)
     
  19. ninjaFred

    ninjaFred New Member

    9
    0
    Oct 24, 2008
    moyekj, the streamer rules. very cool.

    one request...how hard would it be to install this as a windows service? my kids often close the cmd window and kill the streamer.
     
  20. menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    If you have Galleon installed you can set it up to run inside of Galleon. Galleon runs as a service, plus it has a few other cool features. There is a post in this thread showing how to set it up in Galleon.
     

Share This Page

spam firewall

Advertisements