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

    Kershek New Member

    125
    0
    Oct 10, 2002
    Mesa, AZ
    Unfortunately, I still cannot see StreamBaby on my TiVo even though I'm running TiVo Desktop with no issues. Can anyone help? I posted debug information when requested on post #1104.
     
  2. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007
    Hi,

    I am having trouble with seeing my video files they are on my external L: Drive,

    is this the correct Config File:

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

    #dir.1=L:\
    #dir.1.name=\TIVO-RECORDINGS
    #dir.2=L:\
    #dir.2.name=L:\TIVO-RECORDINGS
    # Ip address to bind to
    # most people don't need to change this.
    #ip=192.168.1.37
    # port to use
    #port=7290

    Thanks for the help!!!
     
  3. trashjunkid

    trashjunkid New Member

    20
    0
    Jan 20, 2009
    You've got to remove the # from the top of the lines that you've altered in order for them to be implemented.
    Here's what your streambaby.ini ought to look like with your changed lines:

    Code:
    #
    # ./streambaby --help for more configuration file options
    #
    
    dir.1=L:\
    dir.1.name=\TIVO-RECORDINGS
    dir.2=L:\ 
    dir.2.name=L:\TIVO-RECORDINGS
    # Ip address to bind to
    # most people don't need to change this. 
    #ip=192.168.1.37
    # port to use
    #port=7290
    
     
  4. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    In the streambaby.ini add:
    extensions=mp4,mpeg,vob,mpg,mpeg2,mp2,avi,wmv,asf,mkv,tivo,m4v,raw,3gp,mov,flv

    This should enable streambaby to "see" FLV files. The above is also the default for latest SVN version of streambaby:
    http://streambaby.googlecode.com/files/streambaby-svn-r235.zip

    The ffmpeg downloaded is "ffmpeg-r15986-gpl-shared-win32.tar.bz2 " from the streambaby google-code site. (originally from the http://ffmpeg.arrozcru.org/builds/ web site)

    It is downloaded into the native subdirectory of streamabby.
     
  5. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Hi Kershek,

    Everything looked pretty normal in the log, so I am really not sure. Do you have any routers/etc between your TiVo and the PC running streambaby? The most common cause for something like this is some device not passing the mDNS (bonjour/zeroconf) messages between the PC and the TiVo (not passing multicast packets). The problem with this theory is that I *think* TiVo Desktop would have similar issues if this was the problem.

    Also, you may want to make sure you are using the latest SVN version of streambaby:
    http://streambaby.googlecode.com/files/streambaby-svn-r235.zip
    and make sure you are running it with the streambaby.bat file and not as a service. This version has some extra settings to disable IPV6 which can also cause problems with the TiVo finding streambaby.
     
  6. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007
    Thank you very much it worked great!

    I am raw with this stuff.
     
  7. jasa

    jasa New Member

    23
    0
    Nov 5, 2008
    Earth
    just tried out new .27 work great thanks keary
     
  8. BJezz

    BJezz New Member

    68
    0
    Jan 11, 2009
    I've added OGM to my list of extensions and streamed videos without issue.
     
  9. granroth

    granroth New Member

    6
    0
    Jun 22, 2002
    I realize that streambaby checks the existing parameters of a given video file and if it determines that it is not natively playable by the TiVo, then it will transcode it. My question is this: What checks is streambaby doing, exactly? As in, what is the actual acceptable range of "native" values?

    I ask because I cannot seem to find those values through trial and error. No matter how I encode my files (within the h.264 realm), it always ends up being transcoded while streaming. One of the tests included the Handbrake example on the streambaby wiki... and I still saw ffmpeg pegged at 100% CPU while streaming it. My processors apparently aren't fast enough to do this in real-time for an HD source and so I want to "pre-encode" them.

    Charts? Tables? Links to source files? Anything will be appreciated.
     
  10. moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    The ffmpeg & handbrake samples given in the wiki page should produce natively streamable mp4 files if encoding from most common mpeg2 sources with AC3 audio. Maybe you should start with a video that is known to stream natively such as:
    http://tivostream.googlecode.com/files/test.mp4
    Try that out and see what happens in your environment.
     
  11. pmd

    pmd New Member

    32
    0
    Dec 14, 2004
    Somewhat magically, MP4 push is now working on Australian TiVos, using the symind server I mentioned previously and wmcbrine's pyTivo (after changing mind.py).

    But, it's not working in streambaby :(

    I captured the network traffic to confirm that the config option is working properly - it's talking to symind.tivo.com - but the streambaby log says that the login failed. It's using the correct username and password.

    There must have been some subtle change in porting the code from Python (perhaps a 'simplification' ;-) ). Is there a way to get more debug information about the push - like pyTivo's dumping of the XML it sends?
     
  12. moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Enable debug mode as detailed in debugging_problems then examine/post the streambaby.log
     
  13. pmd

    pmd New Member

    32
    0
    Dec 14, 2004
    Here's my log, running streambaby-0.27 on OS X 10.5.7 on an Australian TiVo HD with the networking package enabled:

    Code:
    05/21/09 19:25:11 StreamBabyConfig: WorkingDir: /Users/pauld/Downloads/streambaby-0.27
    05/21/09 19:25:11 StreamBabyConfig: StreamBabyDir: /Users/pauld/Downloads/streambaby-0.27
    05/21/09 19:25:11 StreamBabyConfig: CurDir: /Users/pauld/Downloads/streambaby-0.27
    05/21/09 19:25:11 FFmpegJavaConfig$1: Loading avutil, default: avutil
    05/21/09 19:25:11 FFmpegJavaConfig$1: Error attempting toload ffmpeg libraries: Unable to load library 'avutil': dlopen(libavutil.dylib, 1): image not found
    05/21/09 19:25:11 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
    05/21/09 19:25:11 FFmpegExeVideoModule: FFmpegPath: ffmpeg
    05/21/09 19:25:11 FFmpegExeVideoModule: FFmpegExeModule: Loaded
    05/21/09 19:25:11 StreamBabyMain: STARTING StreamBaby v0.27...
    05/21/09 19:25:11 Main: args= start=true
    05/21/09 19:25:11 Main: args= loader=sun.misc.Launcher$AppClassLoader@33056f
    2009-05-21 19:25:12.139 java[2527:c0b] Can't open input server /Library/InputManagers/Smart Crash Reports
    05/21/09 19:25:12 Listener: config=com.tivo.hme.host.util.Config@940b84 logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@8041e0
    05/21/09 19:25:12 Listener: factoryList=[StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]]
    05/21/09 19:25:12 Listener: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    05/21/09 19:25:12 Listener: name=/streambaby/
    05/21/09 19:25:12 Listener: 
    05/21/09 19:25:12 Listener: added factory
    05/21/09 19:25:12 Main: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    05/21/09 19:25:12 Main: MDNS: http://192.168.1.2:7290/streambaby/
    05/21/09 19:25:12 Main: streambaby ready & listening.
    05/21/09 19:25:12 Main: mdns_type=_tivo-hme._tcp.local. factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream] port=7290
    05/21/09 19:25:17 TiVoListener: addService: DVR-21FD
    05/21/09 19:25:17 TiVoListener: Updating service: _http._tcp.local. (DVR-21FD)
    05/21/09 19:25:17 TiVoListener: resolveService: _http._tcp.local. (DVR-21FD)
    05/21/09 19:25:17 TiVoListener: jmDns found TiVo: DVR-21FD, tsn: 6**********21FD
    ...
    ...
    05/21/09 19:25:48 VideoModuleHelper: GetVidInfo: file:/Volumes/Store/Video/demnow.mp4
    05/21/09 19:25:48 FFmpegExeVideoModule: FFmpegCmd: ffmpeg -i /Volumes/Store/Video/demnow.mp4
    05/21/09 19:25:49 FFmpegExeVideoModule: ChannelStr to parse: stereo, s16
    05/21/09 19:25:49 FFmpegExeVideoModule: VideoInfo:
    uri: file:/Volumes/Store/Video/demnow.mp4, Container: mp4, Duration: 3545.15 seconds
    Video: h264 320x240 14.98 fps
      PixAspect: 1.0, Aspect: 1.3333334
    Audio: aac 32000HZ 0 channels
    05/21/09 19:25:49 HostContext: key=mpos:file:/Volumes/Store/Video/demnow.mp4 applicationId=com.unwiredappeal.tivo.streambaby.StreamBabyStream applicationGlobal=false
    05/21/09 19:25:49 HostContext: applicationIdStr=com.unwiredappeal.tivo.streambaby.StreamBabyStream applicationGlobal=false
    05/21/09 19:25:49 HostContext: applicationIdStr=com.unwiredappeal.tivo.streambaby.StreamBabyStream
    05/21/09 19:25:49 HostContext: compKey=6**********21FD-and-com.unwiredappeal.tivo.streambaby.StreamBabyStream
    05/21/09 19:25:49 VideoModuleHelper: quality setting is above quality of video, streaming normally
    05/21/09 19:25:49 HostContext: key=mpos:file:/Volumes/Store/Video/demnow.mp4 applicationId=com.unwiredappeal.tivo.streambaby.StreamBabyStream applicationGlobal=false
    05/21/09 19:25:49 HostContext: applicationIdStr=com.unwiredappeal.tivo.streambaby.StreamBabyStream applicationGlobal=false
    05/21/09 19:25:49 HostContext: applicationIdStr=com.unwiredappeal.tivo.streambaby.StreamBabyStream
    05/21/09 19:25:49 HostContext: compKey=6**********21FD-and-com.unwiredappeal.tivo.streambaby.StreamBabyStream
    05/21/09 19:25:49 VideoModuleHelper: quality setting is above quality of video, streaming normally
    05/21/09 19:25:52 ButtonScreen: action=down
    05/21/09 19:25:53 ButtonScreen: action=down
    05/21/09 19:25:56 ButtonScreen: code=6 rawcode=16778246
    05/21/09 19:25:56 InternalPush: intPush: file:/Volumes/Store/Video/demnow.mp4, tivo: DVR-21FD
    05/21/09 19:25:56 VideoModuleHelper: quality setting is above quality of video, streaming normally
    05/21/09 19:25:57 InternalPush: Failed to login to tivo-push-control: user@mydomain.***, mypassword
    05/21/09 19:25:57 PlayScreen$pushTivoButtonHandler$1: Push Failed: demnow.mp4->DVR-21FD
    
    And here's the streambaby.ini I'm using:

    Code:
    #
    # ./streambaby --help for more configuration file options
    #
    
    dir.1=/Volumes/Store/Video
    dir.1.name=My 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.2
    # port to use
    #port=7290
    
    tivo.mind=symind.tivo.com:8181
    tivo.username=user@mydomain.***
    tivo.password=mypassword
    
    When I choose Push to DVR-21FD, streambaby thinks for a second or so, then says 'Push failed'. As I said previously, pyTivo works OK using symind.tivo.com.

    I think this will need more code to log the login transaction. Thanks for any help.
     
  14. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007
    Hi,

    It seems to be working well, but all my videos stop midway through..

    Any suggestions?
     
  15. BJezz

    BJezz New Member

    68
    0
    Jan 11, 2009
    Do they stop completely, or do they pause for a few seconds with a rebuffering message, then carry on?

    If it's the latter, it's currently unavoidable using this software as the TiVo has a fixed buffer size, so once it is full it will pause at the end of the buffer while it starts a new buffer running. To avoid this, you can use something like pyTivo to copy larger videos to the Now Playing List instead of streaming them. This way they are copied to the TiVo's hard disk and not subject to the buffer limitations.

    If they stop completely we may need some more information. How long are the videos and how far do you get before they stop? What format are the videos in? You may also need to post your log files.
     
  16. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007

    It's not a Buffer issue, they stop completely.

    This is from the notepad of my last session:
    05/15/09 11:22:34 Listener: added factory
    05/15/09 11:22:34 Main: streambaby ready & listening.
    05/15/09 11:22:36 Factory: HME receiver connected
    05/15/09 11:23:36 Listener: 192.168.1.5 83c71053-32e9-4ec7-975e-6538f21c4865.stream HTTP GET - to factory /streambaby/
    05/15/09 11:24:12 Listener: 192.168.1.5 I/O Exception handling HTTP GET 83c71053-32e9-4ec7-975e-6538f21c4865.stream: Connection reset by peer: socket write error
    05/15/09 11:29:48 Listener: connection to receiver closed
    05/15/09 11:29:48 Factory: HME receiver disconnected
    05/15/09 12:30:39 Listener: 192.168.1.5 icon.png HTTP GET - to factory /streambaby/
    05/15/09 12:30:44 Factory: HME receiver connected
    05/15/09 12:32:19 Listener: 192.168.1.5 0f30b6bd-a58d-43d5-ae7c-f0c4f1b495b0.stream HTTP GET - to factory /streambaby/
    05/15/09 12:42:33 Listener: 192.168.1.5 I/O Exception handling HTTP GET 0f30b6bd-a58d-43d5-ae7c-f0c4f1b495b0.stream: Connection reset by peer: socket write error
    05/15/09 12:42:59 Listener: connection to receiver closed
    05/15/09 12:42:59 Factory: HME receiver disconnected
    05/15/09 12:43:03 Listener: 192.168.1.5 icon.png HTTP GET - to factory /streambaby/
    05/15/09 17:04:48 Listener: 192.168.1.5 icon.png HTTP GET - to factory /streambaby/
    05/15/09 17:05:01 Factory: HME receiver connected
    05/15/09 17:06:39 Listener: 192.168.1.5 0757db4d-578f-475e-b88e-69126d60a39a.stream HTTP GET - to factory /streambaby/
    05/15/09 17:26:11 Listener: 192.168.1.5 I/O Exception handling HTTP GET 0757db4d-578f-475e-b88e-69126d60a39a.stream: Connection reset by peer: socket write error
    05/15/09 17:50:28 Listener: 192.168.1.5 658f922d-3c17-4ca8-8dc0-abec356461dc.stream HTTP GET - to factory /streambaby/
    05/15/09 17:50:46 Listener: 192.168.1.5 I/O Exception handling HTTP GET 658f922d-3c17-4ca8-8dc0-abec356461dc.stream: Connection reset by peer: socket write error
    05/15/09 17:51:20 Listener: 192.168.1.5 acde7637-6b54-4c71-897f-6f7f1a45f4be.stream HTTP GET - to factory /streambaby/
    05/15/09 17:51:35 Listener: 192.168.1.5 I/O Exception handling HTTP GET acde7637-6b54-4c71-897f-6f7f1a45f4be.stream: Connection reset by peer: socket write error
    05/15/09 17:51:54 Listener: 192.168.1.5 9c85faa8-6767-432e-a419-4f5ff36e9057.stream HTTP GET - to factory /streambaby/
    05/15/09 18:12:01 Listener: 192.168.1.5 I/O Exception handling HTTP GET 9c85faa8-6767-432e-a419-4f5ff36e9057.stream: Connection reset by peer: socket write error
    05/15/09 19:10:19 Listener: 192.168.1.5 0a4fb177-4250-4b65-9c9d-b6efdf596f29.stream HTTP GET - to factory /streambaby/
    05/15/09 19:12:16 Listener: 192.168.1.5 I/O Exception handling HTTP GET 0a4fb177-4250-4b65-9c9d-b6efdf596f29.stream: Connection reset by peer: socket write error
    05/15/09 19:12:16 Listener: 192.168.1.5 c8727d7a-1178-4a8f-8fd2-01020e58ce2d.stream HTTP GET - to factory /streambaby/
    05/15/09 19:12:44 Listener: 192.168.1.5 I/O Exception handling HTTP GET c8727d7a-1178-4a8f-8fd2-01020e58ce2d.stream: Connection reset by peer: socket write error
    05/15/09 19:12:45 Listener: 192.168.1.5 d71fa44d-9204-45db-9057-69c13ed6417a.stream HTTP GET - to factory /streambaby/
    05/15/09 19:13:01 Listener: 192.168.1.5 I/O Exception handling HTTP GET d71fa44d-9204-45db-9057-69c13ed6417a.stream: Connection reset by peer: socket write error
    05/15/09 19:13:16 Listener: 192.168.1.5 decad463-e6e7-4dd5-b482-e8b30fd0e8c9.stream HTTP GET - to factory /streambaby/
    05/15/09 19:14:01 Listener: 192.168.1.5 I/O Exception handling HTTP GET decad463-e6e7-4dd5-b482-e8b30fd0e8c9.stream: Connection reset by peer: socket write error
    05/15/09 19:14:02 Listener: 192.168.1.5 885fe81b-4f74-401e-b9e4-3f290b579644.stream HTTP GET - to factory /streambaby/
    05/15/09 19:14:40 Listener: 192.168.1.5 I/O Exception handling HTTP GET 885fe81b-4f74-401e-b9e4-3f290b579644.stream: Connection reset by peer: socket write error
    05/15/09 19:15:06 Listener: 192.168.1.5 08e4755d-daec-4b3d-baa7-5e85ebc77e69.stream HTTP GET - to factory /streambaby/
    05/15/09 19:37:05 Listener: 192.168.1.5 I/O Exception handling HTTP GET 08e4755d-daec-4b3d-baa7-5e85ebc77e69.stream: Connection reset by peer: socket write error
    05/15/09 19:48:49 Listener: connection to receiver closed
    05/15/09 19:48:49 Factory: HME receiver disconnected
    05/15/09 19:48:50 Listener: 192.168.1.5 icon.png HTTP GET - to factory /streambaby/
    05/15/09 19:49:08 Listener: 192.168.1.5 icon.png HTTP GET - to factory /streambaby/
     
  17. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    That looks very similar to an old bug related to timeouts that was fixed a few months ago. Which version of streambaby are you using? And are you using any network firewalls or is your router configured to reset connections after a while?
     
  18. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Could you try the new SVN version I just uploaded:
    http://streambaby.googlecode.com/files/streambaby-svn-r237.zip

    It seems that symind.tivo.com is using a self-signed SSL certificate so streambaby would reject the connection. I've added some code to accept self-signed SSL certificates.

    I've also activated some more debugging that got lost when I was integrating moyekj's port of mind.java with streambaby.
     
  19. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007
    I'm using .25, I just noticed .27 is up, let me try that and see if it solves the issue

    Thanks
     
  20. mphtrilogy

    mphtrilogy New Member

    49
    0
    May 29, 2007
    I just installed .27, and the problem still persists after about 1hour of standard def video.

    You think its my router settings?

    what should the router be set at?
     

Share This Page