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. Apr 2, 2009 #841 of 3415
    fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Howdy.

    I'm trying to use iTivo (I know other thread) to create some high quality HD mp4's with ac3 passthrough to stream back to my TivoHD. Unfortunately, the presets in iTivo don't have a high quality option that passes through ac3 (except for native/decode of course and that doesn't work with comskip....).

    Anyway, I've successfully, created a HandBrakeCli option that DOES work. I can transcode the mpeg2's from the Tivo, Passthrough the ac3 into a mp4 container, and then use pytivo (I'm using pytivox) to send the file back to the tivo. The problem so far is file size - it's pretty LARGE (larger than the original mpeg2) and I'm playing with options to reduce the footprint. The files I'm ending up with are in the 13000-14000 kb/s range. That seems a bit too much for mp4's, but I'm pretty much a noob at this.

    Streambaby seems to be choking on it. I can stream the file at original bitrate and get AC3 but no picture. If I choose "5000 highest" on the Tivo, I get a macroblocked picture and a downmixed audio (there are 2 audio tracks in my conversions AC3, AAC)

    In any case, pytivo seems to send it straight back, but are there some upper limits to streambaby that I'm hitting? Obviously I need to lower the bitrate, but how much can streambaby handle? 5000 kb/s seemed too low for the 1080i but am I talking apples and oranges? Is the 5000kb/s referring to the resulting mpeg2 or the original mp4.

    Thanks.

    If anyone is interested, here's the CLI argument that I'm using creating a .m4v file.

    -e x264 -q 0.575 -f mp4 -4 -P -m -a 1,1 -E ac3,faac -B auto,160 -R auto,48 -6 auto,dpl2 -x level=30:cabac=0:ref=2:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=5:analyse=all
     
  2. Apr 2, 2009 #842 of 3415
    MikeAndrews

    MikeAndrews Registered abuser

    14,222
    1
    Jan 17, 2002
    Northern...
    Streambaby worked great for me on Windows. THANKS!!!!

    I missed any docs about how to expect Streambaby to work on TiVo, if there are any. Like how it just works - The TiVo will find the server, and where you'll see the menu item.

    You want a volunteer to add that to the Wiki?

    Not that I won't get a round tuit to decrypt all of mine to .mpg, but is there any way it can be made to work with .tivo files?
     
  3. Apr 2, 2009 #843 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    You can stream .TiVo files with streambaby. However you will get limited functionality since you can't jump ahead of stream buffer or resume playing from where you last left off, etc. like you get with .mpg or .mp4 streaming.
     
  4. Apr 2, 2009 #844 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    With the newest download, 170, push works great. However, now I can't get any mp4's to stream over as I could with the previous versions.
     
  5. Apr 2, 2009 #845 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    For pyTivo, unless you are doing a so-called "pyTivo push" (which pyTivoX doesn't support easily) then it's being transcoded to mpeg2 on the fly when being fed back to your Tivos. i.e. If you are requesting the file via Tivo Now Playing List->pyTivo share it's being transcoded to mpeg2 and that would explain why it works via pyTivo and not streambaby.
    streambaby on the other hand is feeding a native mp4 stream to your Tivo if you use same quality setting.
    I tried your Handbrake recipe above starting from a 720p mpeg2 file and while I did get video to show when streaming it back via streambaby to my S3 the playback was choppy.
    Though I haven't tried much I have yet to find a Handbrake recipe for H.264 + AC3 that yields good, clean, smooth playback when streaming to my S3s. This wiki page lists a known working ffmpeg recipe that has worked for me so if you are stuck with using Handbrake for some reason then perhaps a translated version of that for Handbrake may do the trick.
    (NOTE: As part of pyTivoX installation you do have ffmpeg binary so you should be able to use ffmpeg)
    If someone else has a good/working Handbrake recipe for H.264 + AC3 that works well for tivo streaming please post so I can add it to the wiki.
     
  6. Apr 2, 2009 #846 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    So you're saying that pyTivo push of an mp4 file yields good/proper playback on Tivo but streaming same mp4 file is failing? First thing to check is that you have ffmpeg properly installed under the "native" folder. It also helps to set the following in simplelog.properties file to generate verbose debug output in streambaby.log:
    com.unwiredappeal=verbose
    com.unwiredappeal=debug
    Then run streambaby again and try streaming and then examine or post streambaby.log here to get a better clue of what is happening.
     
  7. Apr 2, 2009 #847 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    It does. Will do when I get home, thanks.
     
  8. Apr 2, 2009 #848 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    I corrected my post, it should be:
    com.unwiredappeal=debug
     
  9. Apr 2, 2009 #849 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I haven't had a chance to keep up with this thread as closely as I should for the last couple of weeks, but are we talking about talking about the > 4G mp4's that would only partially played before? If so, it is to be expected as the svn-170 version has > 4G support in progress. (Meaning it won't work, but I'm not exactly sure what will happen...)

    Also, what was the previous version you were using that did work? (0.25 or one of the SVN versions)
     
  10. Apr 2, 2009 #850 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    Keary, are mp4 files > 4GB required to be 64 bit? My understanding is that Tivo decoder doesn't support 64 bit mp4 files so native pyTivo push of a 64 bit mp4 should not work either which is why I ask.
     
  11. Apr 2, 2009 #851 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Good point, didn't think of that. So 64-bit is most likely not the issue. (I can't think of a way to have a > 4G mp4 without 64-bit pointers). Sorry.
     
  12. Apr 2, 2009 #852 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    Hey Keary, does that mean we're screwed for streaming >4 gb mp4's for now or pretty much until tivo changes the software?
     
  13. Apr 2, 2009 #853 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    So are the mp4 files you are trying > 4GB? If so, are you positive that pyTivo push (not a pull which gets transcoded) of those files results in proper playback on Tivos? If so, perhaps playback is screwed up on Tivos only after the 4GB mark?
     
  14. Apr 2, 2009 #854 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    No, since the TiVo really only supports files ~1G in length, I can take a > 4G file and split it up into < 4G pieces and pass the pieces to the TiVo. I've been working on this, but haven't finished. (The hard part is the MP4 code only supports splitting from time XX:XX:XX to the end, and I now need to split it from time XX:XX:XX to time YY:YY:YY, where time YY:YY:YY is the point where the file would go > 4G)

    (When I say the TiVo only supports ~1G what I mean is the TiVo will only buffer up to around 1.1G of the video, and at that point streambaby has to tell the TiVo to start over again at the exact-point it left off. This works fine in streambaby right now up to 4G file size)
     
  15. Apr 2, 2009 #855 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    I am absolutely positive that > 4gb mp4 files get pushed without a problem to the end of the file. It plays back perfectly, to the end of the file. I've confirmed it on at least 2 separate occaisions by checking the size of the file after the full push which equaled the original size of the mp4 file. Plus during the push ffmpeg wasn't working hard at all and it came over very fast, much faster than real time.
     
  16. Apr 2, 2009 #856 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Could be I'm wrong about > 4G Mp4 files, the only one I tried I generated myself. I could have just screwed something else up when generating the file and assumed it was 64-bit problem... Let me make some quick changes to streambaby to pass-through 64 bit and see what happens with your files... I'll post a link a bit.
     
  17. Apr 2, 2009 #857 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Here is the link, let me know how it goes.
    http://streambaby.googlecode.com/files/streambaby-svn-r171.zip
     
  18. Apr 2, 2009 #858 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
  19. Apr 2, 2009 #859 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Nice. Sorry about the confusion I caused about TiVo not supporting 64-bit (co64 atom) MP4 files. Looks like there is no problem.

    I also just created another small (< 4G) video, but created it with co64 chunks, that also worked fine for me (not a complete test, but this was the same initial test I thought I had run before that made me think incorrectly that the TiVo didn't support the Co64 chunk). I'll leave my PC tonight transcoding a > 4G file and triple-check.

    And I'm pretty happy I'm wrong, as it means I don't have the work ahead of me that I thought I did :)
     
  20. Apr 2, 2009 #860 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    The 2 that I use:

    1. Use Xvid4psp. Download free http://www.winnydows.com/news.php. It uses mp4box to mux an mkv to an mp4. Just make sure that under format you pick mp4 and that under video encoding pick "copy". Unfortunately, because it uses mp4box you will have to convert the audio to aac or mp3, etc...Just set the audio encoding. Takes about 20 minutes for a high def mkv to be converted, untouched, except for audio, to an mp4 that can be streamed using streambaby.

    2. Use mp4muxer. Download free http://www.dvbportal.de/projects/mp4muxer/. It uses mp4creator which means you can add ac3 audio to mp4 files. I'm still having some audio sync problems with this one but to fix it you have to change the timescale to something else. I've been using 30,000 with some luck but it's not perfect. Make sure under streaming you click "optimize". You can also change the aspect ratio which is a good idea if they're not 1920x1080 or 1280x720.
     

Share This Page