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

    matelot New Member

    12
    0
    Feb 6, 2009
    Hi, I am using streambaby within PyTivoX. My video stops streaming at about 28 mins every single time. It's a 1-hr show and the file size is 2GB. Any config I need to look into?

    Thanks.
     
  2. BJezz

    BJezz New Member

    68
    0
    Jan 11, 2009
    Spocko - I heard that TiVo did an about turn on their vision of HME. Originally they thought like you (and probably the rest of us) that this was a way of getting new functionality for little effort and actively promoted development from the community. Then somewhere along the line they decided that they didn't want just anybody creating HME applications and so no longer do anything to encourage it. I understand this is because of the concerns that people would call them for support on software they didn't write or have any control over. It might also be that they don't want to encourage software that doesn't fit in with their interface or vision of the product. So although they haven't withdrawn anything they've done so far (nor do I imagine them ever doing so), they have stopped publishing updates to the SDK. That's not to say they haven't created new versions, just that they are not available to the public.

    I don't know for sure that's the real explanation and it seems strange to leave us dangling with an old SDK so we can develop but not easily take advantage of new features. I'd like to think that they realize this is a mistake, because I also think that the ability to add unofficial software to the TiVo is one of its greatest strengths. I mean, right now, if I think about what the TiVo is capable of, I'm including things that a TiVo without unofficial HME applications cannot do. It's the same as if you asked me what you could do with a PC; I wouldn't limit myself to only suggesting functionality capable with just an operating system installed.

    Matelot - The last time somebody had this problem, it was down to the way that the video was encoded. In their case the video was ripped from DVD still in VOB format.

    The clue will be that Streambaby normally shows a time line for the duration of the entire clip and the green bar gradually grows to show the element streamed. If instead the duration is equal to the amount streamed and the duration also grows as more data comes back, this shows that Streambaby is not able to interpret the video length correctly. The actual cause was that the video was reporting a 0 duration. At the 28 minute mark the buffer is full, but Streambaby cannot re-seek in this kind of video to create a new video stream because it thinks that it has already gone beyond the end of the video.
     
  3. moyekj

    moyekj Well-Known Member

    11,258
    74
    Jan 23, 2006
    Mission...
    Is that a .TiVo file? If so then that's normal behavior - .TiVo files cannot (currently) be played back where you left off once the stream buffer fills up and TiVo disconnects the stream. Decrypt it to a regular mpeg and you should have no problems.
     
  4. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
    Ummm... it is easy how they get around it. Netflix uses Microsoft's Silverlight (name correct?) which is an App that (TiVo/NetFlix) wrote for use on the Linux operating system. That app takes over all communications and does NOT use HME (or TiVo's built-in routines to play MP4) to talk to anything. This was a requirement of the Studios for any player so the studios could "lock down content". That is also how it keeps sending back info on the connection and appropriately sets the parameters for bitrate, etc (during playback). Therefore the 1.1 gig limit does not apply since they are not using TiVo's built-in routines. Just an aside: Don't ya' wish we could do THAT in Streambaby? For those of us that accidentally start up an HD movie using a 5k bitrate (and have slower networks/computers that we are serving video on) the auto-adjusting bitrate would be GREAT!

    Unfortunately HME does not allow us to actually run any apps on the TiVo. It simply enables us to utilize apps already on the TiVo to do what we want...like streaming MP4's, displaying HTML-like characters on the TiVo, etc.

    If we could write our own TiVo apps and have TiVo sign them or approve them, etc (like w/the iPhone) we would have much better systems, IMHO.

    For someone that just got into Wii programming (using HomeBrew) I would wish sometime that we could do this with the Wii... MPlayer is on the Wii.. and we can write our own apps for the Wii...Is there really a reason that we could not do something like playing MP4 streams on other platforms that Streambaby could serve to without many code changes?

    Jann


    :)
     
  5. wmcbrine

    wmcbrine Ziphead

    10,401
    40
    Aug 2, 2003
    The Netflix clearly player uses a different method than the standard HME video streaming (as used by YouTube and Streambaby), yes. But what's your basis for saying that it uses Silverlight?

    The reason the Netflix player doesn't have a limited buffer is apparently that it doesn't have any buffer, or rather has only a limited forward buffer, and retains nothing already played, but re-fetches it if you rewind. It's possible that using this would be as simple as passing a few more options to the CMD_RSRC_ADD_STREAM command, but I don't know.
     
  6. matelot

    matelot New Member

    12
    0
    Feb 6, 2009
    The file was left as VOB. I didn't bother to change the extension to MPEG because I thought it's the same format as MPEG. I will change the extension and see if it still does the same thing.

    Thanks
     
  7. jannlinder

    jannlinder New Member

    106
    0
    Oct 17, 2004
    San Jose, CA
  8. jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    It is not quite correct to say that they are using Silverlight/Moonlight in the Tivo as Silverlight is a cross-platform client side browser technology. Rather, Netflix is using Windows Media Services for distribution. In addition to adaptive streaming, WMS also has the ability to enforce authentication, impose various connection limits, and restrict access. WMS utilizes a proprietary encrypted control protocol and an optionally encrypted content stream. Typically, Windows Media Player is used to decode and watch/listen to the streams, but other players (Microsoft Silverlight, VLC, MPlayer, etc.) are also capable of playing Windows Media content if the content is unencrypted and other components provide the DRM and control support. Moonlight lacks the DRM component needed to make it work with Netflix streams. As a result, Netflix Silverlight players will not work under Linux browsers.
     
  9. wmcbrine

    wmcbrine Ziphead

    10,401
    40
    Aug 2, 2003
    No, it doesn't. I don't see how you get that out of the articles you linked, either.

    In fact, if you read some of the Netflix threads here, you'll see that the TiVo's Netflix player reportedly behaves more like the pre-Silverlight Netflix players for other platforms.
     
  10. moyekj

    moyekj Well-Known Member

    11,258
    74
    Jan 23, 2006
    Mission...
    Ability to stream WMV to TiVos via HME showed up as soon we got software update that enabled Tivo/Netflix, so to me that suggests it is tightly coupled to HME (just not HME as we know it). The problem we have is the published HME SDK specs are way outdated compared to the current capabilities Tivo has added.
     
  11. jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I would agree with you but having seen OEM CE projects from the inside, I would suggest that the connection to HME is mostly API and UI connections and may not generalize to any lower levels. Netflix has it’s own “Partner Client player” group that appears to be tasked with providing and supporting the player for their OEM partners. Their core code is also running on other Linux boxes such as the Roku box with no hard disk, and limited memory and may run on specialty OS platforms such as LG broadband HDTVs. The API is most likely implemented as drop in binaries provided by Netflix so the internals/protocols involved may have nothing do with anything else Tivo does.

    If this is the case, the player process for locating/talking to the stream servers and identifying available streams is likely coded to the Netflix Window Media Servers and may not resemble HME streaming. If Netflix controls this under NDA – which I would certainly do if I were them, it will never get into the SDK specs.
     
  12. mourning_air

    mourning_air New Member

    6
    0
    Dec 1, 2005
    Is anyone else having any issues with mp4s looking interlaced? I'm digitizing my dvds and they look great if I just play the VOB through streambaby but once I convert the VOB to mp4 I get what looks like interlacing lines. They are especially obvious on scenes with text (opening credits). I am using Handbrake's PS3 preset to encode the VOBs. Mediainfo shows that the mp4 is not interlaced.

    I am using the r239 streambaby
     
  13. Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Yes I am seeing this issue as well. I hadnt gotten around to figuring out why though. MP4 files sometimes seem interlaced however when transcoded with ffmpeg through pyTivo the picture is perfect quality.

    *Maybe off topic* - I also noticed that the menu bar is slightly interlaced when using 1080i on my TV. It is set at 720p for now which took care of the issue.
     
  14. solutionsetc

    solutionsetc Member

    762
    0
    Apr 2, 2009
    Northern...
    Using StreamBaby from PyTiVoX I have some Apple supplied .m4v files. Some are 4:3 640x480, and these play at the proper AR. Others are 16:9 640x360, and these are squished into 4:3.

    Can anything be done to get the 16:9 files to play with the proper AR?
     
  15. moyekj

    moyekj Well-Known Member

    11,258
    74
    Jan 23, 2006
    Mission...
    Try adjusting PAR using MP4Box on the offending m4v files. More information in this thread:
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=421873&highlight=PAR
    (For your 16:9 640x360 clips you should set PAR=1, i.e. MP4box -par 1=1:1 file.m4v)
     
  16. solutionsetc

    solutionsetc Member

    762
    0
    Apr 2, 2009
    Northern...
    Thanks... I'm happy to try that but am having a bit of trouble locating an OS X binary of MP4Box. Any suggestions?
     
  17. moyekj

    moyekj Well-Known Member

    11,258
    74
    Jan 23, 2006
    Mission...
    Try this one.
    (To unpack it from command line: bunzip2 -c mp4box-mac-tar.bz2 | tar xf -)
     
  18. solutionsetc

    solutionsetc Member

    762
    0
    Apr 2, 2009
    Northern...
    Thanks again... but it seems I am not having much luck. Here is what I am seeing:

    Code:
    Work:~ ss$ /Volumes/Stuff/Documentation/Audio-Video/Tivo/MP4Box -par 2=1:1 /Volumes/XP/SneakPeak.m4v 
    Setting up iTunes/iPod file...
    Forcing AVC/H264 SAR to 1:1...
    Saving /Volumes/XP/SneakPeak.m4v: 0.500 secs Interleaving
    Error renaming file out_SneakPeak.m4v to /Volumes/XP/SneakPeak.m4v
    
    And the original file is gone! Can you tell me what I am missing?
     
  19. moyekj

    moyekj Well-Known Member

    11,258
    74
    Jan 23, 2006
    Mission...
  20. solutionsetc

    solutionsetc Member

    762
    0
    Apr 2, 2009
    Northern...
    Thank you so much... That did the trick! Now I just need to write a GUI for this as I get these kinds of files regularly.
     

Share This Page