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. Mar 31, 2009 #821 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    hmmmmmm, not seeing it on my TiVo HD... Running Ubuntu 8.10... streambaby.ini seems correctly configured, and when i launch i get:

    eochs@ubuntu:~/downloads/streambaby/streambaby-0.25$ ./streambaby
    Initializing...
    03/30/09 22:29:21 Listener: added factory
    03/30/09 22:29:21 Main: streambaby ready & listening.

    Galleon works for TiVO apps, but streambaby isn't found... any hints?
     
  2. Mar 31, 2009 #822 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    with more logging turned on:

    Initializing...
    03/30/09 22:40:52 Listener: added factory
    03/30/09 22:40:52 Main: streambaby ready & listening.
    ^Ceochs@ubuntu:~/downloads/streambaby/streambaby-0.25$ sudo ./streambaby
    Initializing...
    03/30/09 22:50:17 StreamBabyConfig: WorkingDir: /home/eochs/downloads/streambaby/streambaby-0.25
    03/30/09 22:50:17 StreamBabyConfig: StreamBabyDir: /home/eochs/downloads/streambaby/streambaby-0.25
    03/30/09 22:50:17 StreamBabyConfig: CurDir: /home/eochs/downloads/streambaby/streambaby-0.25
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loading avutil, default: avutil
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded: /usr/lib/libavutil.so.49.6.0
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loading avcodec, default: avcodec
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded: /usr/lib/libavcodec.so.51.50.0
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded avCodec version: 51 (3355136)
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loading avformat, default: avformat
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded: /usr/lib/libavformat.so.52.7.0
    03/30/09 22:50:17 FFmpegJavaConfig$1: avformat_version function not available, will attempt to guess version
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded avFormat version: 52 (3407872)
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loading swscale, default: swscale
    03/30/09 22:50:17 FFmpegJavaConfig$1: Loaded: /usr/lib/libswscale.so.0.5.0
    03/30/09 22:50:17 FFmpegJavaConfig$1: Marking libswscale as available.
    03/30/09 22:50:17 FFmpegJavaVideoModule: FFmpeg-java Module: loaded
    03/30/09 22:50:17 FFmpegExeVideoModule: FFmpegPath: ffmpeg
    03/30/09 22:50:17 FFmpegExeVideoModule: FFmpegExeModule: Loaded
    03/30/09 22:50:18 StreamBabyMain: STARTING StreamBaby v0.25...
    03/30/09 22:50:18 Main: args= start=true
    03/30/09 22:50:18 Main: args= loader=sun.misc.Launcher$AppClassLoader@7d772e
    03/30/09 22:50:18 Listener: config=com.tivo.hme.host.util.Config@b753f8 logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@1e9cb75
    03/30/09 22:50:18 Listener: factoryList=[StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]]
    03/30/09 22:50:18 Listener: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    03/30/09 22:50:18 Listener: name=/streambaby/
    03/30/09 22:50:18 Listener:
    03/30/09 22:50:18 Listener: added factory
    03/30/09 22:50:18 Main: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    03/30/09 22:50:18 Main: MDNS: http://192.168.2.55:7290/streambaby/
    03/30/09 22:50:18 Main: streambaby ready & listening.
    03/30/09 22:50:18 Main: mdns_type=_tivo-hme._tcp.local. factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream] port=7290
    03/30/09 22:50:26 Listener: http=HttpRequest /streambaby/
    03/30/09 22:50:26 Listener: path=/streambaby/ uri=/streambaby/
    03/30/09 22:50:26 Listener: http=HttpRequest /streambaby/ factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
     
  3. Mar 31, 2009 #823 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    btw, the httpRequests at the end are me trying to hit it from firefox, which i can...
     
  4. Mar 31, 2009 #824 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    on your tivo go to music, pictures, etc...
     
  5. Mar 31, 2009 #825 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    I did... It is the same place I go to when i tried Galleon and saw the different Galleon apps, but Stream Baby Stream does not show up on there...
     
  6. Mar 31, 2009 #826 of 3415
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Is 192.168.2.55 the correct primary IP for the computer running streambaby? Is port 7290 being used by some other application?
    If it's not correct or there is a port conflict you can tell streambaby what ip & port to use by putting following in streambaby.ini:
    ip=xxx.xxx.xxx.xxx
    port=xxxx
     
  7. Mar 31, 2009 #827 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    System definitely only has one network card and a single IP of 192.168.2.55... A netstat -an doesn't show anything running on 7290 when streambaby is not started... I even tried hardcoding those in the .ini file as you suggested, but had no luck... Also tried changing to a different port or 3 with no luck... hmmmmmmmmmmmmmmmmmmmm...

    I'll spend more time trying this tonight... There is no firewall running, so i don't think anything is being blocked... I do have a slightly odd setup, but it should work fine I think... The TiVo is connected pretty standard:

    cable modem -> linksys wrt160n router -> Tivo wireless network adapter

    But the PC with Ubuntu is slightly odd:

    Ubuntu -> WRT54G with DD-WRT firmware connected in bridged mode to the 160n

    Basically using the WRT54G as an ethernet bridge as the USB wireless-n card I had connected to the PC did not work well in Ubuntu (it is removed and not connected to the computer anymore)... I have no problems with connecting to other apps on my Ubuntu box from anywhere in my house (Galleon, apache) or connecting out to the internet or even to the TiVO (https://192.168.2.100) to download .tivo files...
     
  8. Mar 31, 2009 #828 of 3415
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    I'd assume it's the IPv6 problem... or does Streambaby have a fix for that? Anyway, disable IPv6 in Ubuntu, and see if that helps.

    Ubuntu enables IPv6 by default, and TiVo's HME server from the SDK prefers to bind to the IPv6 interface instead of IPv4, even when you tell it not to. I think it still answers requests on IPv4, but the MDNS broadcasts only go to IPv6... i.e., nowhere.
     
  9. Mar 31, 2009 #829 of 3415
    eochs

    eochs New Member

    70
    0
    Oct 16, 2001
    Phoenix, AZ
    jackpot!! disabling ipv6 did it... Thanks wmcbrine...

    Now, how do I get these videos to show up at the correct aspect ratio on my HDTV? An XVid at 656x272 is stretched so people look very thin and tall :)
     
  10. Mar 31, 2009 #830 of 3415
    rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    I started over with SVN version 152 and am receiving this error when it is trying to download the FFMPEG. I worked around this issue by copying the native directory from an older working version of Streambaby. The reason I started over is that I thought my FFMPEG binaries may have been out of date.

    Code:
    03/31/09 19:18:14 StreamBabyMain$BshLogger: Download ffmpeg for first-run...
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
    umber in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at bsh.classpath.BshClassLoader.findClass(Unknown Source)
            at bsh.classpath.BshClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)
            at bsh.NameSpace.classForName(Unknown Source)
            at bsh.NameSpace.getImportedClassImpl(Unknown Source)
            at bsh.NameSpace.getClassImpl(Unknown Source)
            at bsh.NameSpace.getClass(Unknown Source)
            at bsh.Name.toClass(Unknown Source)
            at bsh.BSHAmbiguousName.toClass(Unknown Source)
            at bsh.BSHType.getType(Unknown Source)
            at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)
            at bsh.Interpreter.eval(Unknown Source)
            at bsh.Interpreter.source(Unknown Source)
            at bsh.Interpreter.source(Unknown Source)
            at com.unwiredappeal.tivo.streambaby.StreamBabyMain.beanShell(StreamBaby
    Main.java:163)
            at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.
    java:39)
    Exited.
    
    Also I have several MP4 movies that I can not seem to get to play with Streambaby. I do not have PyTivo installed anymore so have not tested pushing them with any other tool. These MP4s will play fine on my PC, but will not stream, even if I force them to transcode they still fail. What details should I post about these?

    Thanks,

    Rick.
     
  11. Mar 31, 2009 #831 of 3415
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    See this thread on discussions related to mp4 aspect ratios:
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=421873
    The short summary is for S3 mp4 decoders they do not deal very well with resolutions other than 1920x1080 or 1280x720. THD/HDXL seem better behaved in that regard but you still need to specifically set PAR/DAR for them to display properly with tools such as MP4Box.
     
  12. Apr 1, 2009 #832 of 3415
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Keary has made a new build from latest SVN (170) that includes pyTivo push integration into streambaby:
    http://streambaby.googlecode.com/files/streambaby-svn-r170.zip

    There's a couple of new streambaby.ini options available if your pyTivo ip and/or port are different than the defaults:

    pytivo.ip=IP_ADDRESS_OF_PYTIVO (default is localhost)
    pytivo.port=PORT_OF_PYTIVO (default is 9032)

    Some notes on using this feature:
    * You should have pyTivo up and running before starting streambaby. When you first start streambaby is when pyTivo server is polled to get full list of videos available from pyTivo.
    * Videos you are browsing to in streambaby must obviously also be included in one of video hierarchies you specify in pyTivo.conf.
    * From streambaby selection screen when you go to a video Play Screen if that video is available to pyTivo (full path file names match) then you will see an extra option called pyTivo push. From there you can select a Tivo to push to (using left and right arrows) and then press select on desired Tivo to initiate the push.

    There are still some short term and longer term improvements needed, such as:
    * Add config option to turn off pyTivo checking completely for those that don't want/like it
    * Probably should be more periodic polling of pyTivo server of available videos rather than only when starting streambaby.
    * Keary had good idea of eliminating some clutter in Play Screen to merge pyTivo push with Play From Beginning button (a push option to each Tivo would be there)
    * Longer term perhaps eliminate need for pyTivo server completely for doing pushes (by setting up basic HMO server capabilities for video pushes in streambaby).
     
  13. Apr 1, 2009 #833 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    That's so cool. Thanks for a great app! Still no luck on fixing seeking on mp4's past the hour mark?
     
  14. Apr 1, 2009 #834 of 3415
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Don't know. I think Keary has some mp4 related fixes in r170 but don't know if any of them address your issues or not. If it's 64 bit mp4 related then it's likely not yet addressed but I don't know anything about the mp4 code so cannot comment on it. Keary is the expert but he's been tied up with real (paying) job lately which obviously takes priority over anything streambaby related.
     
  15. Apr 1, 2009 #835 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I haven't tried this myself, but it looks like some of the code used to download ffmpeg from the streambaby website requires Java 1.6. (Only the windows version downloads ffmpeg automatically, so only windows would have this issue)

    Simply putting ffmpeg+libraries in the native directory manually should take care of the problem (as you mention you have already done).

    I haven't updated the ffmpeg version for windows since the initial release in any case. (I go under the assumption if ain't broke...)

    If you want to you can grab a newer ffmpeg version from:
    http://ffmpeg.arrozcru.org/builds/
    You will want the GPL shared version of the distribution.
    And just extract all the files from the bin directory into the streambaby native directory.
     
  16. Apr 2, 2009 #836 of 3415
    pmd

    pmd New Member

    32
    0
    Dec 14, 2004
  17. Apr 2, 2009 #837 of 3415
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    No. But you have to have an account on tivo.com (free), and put the info into your pyTivo.conf (tivo_username, tivo_password).

    Push doesn't even use HMO, really.
     
  18. Apr 2, 2009 #838 of 3415
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
  19. Apr 2, 2009 #839 of 3415
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Give Winff a try - I am in the process of trying this as I have some MKV stuff and it will pause Roughly every 10 seconds. I tried Handbrake and XvidPsP but then with the settings I used the video looked worse than a VCR Tape.

    http://www.tivocommunity.com/tivo-vb/showthread.php?p=6844399#post6844399
     
  20. Apr 2, 2009 #840 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    I will thanks. I really think though that the tivo mp4 decoder isn't sophisticated enough. Every file I've converted, no matter what method, 64 bit addressing, etc...it goes black around the 4 gb mark. It must be a 64 bit addressing problem and I haven't found a solution yet.
     

Share This Page