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

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    For a number of videos, I have to change the PAR (pixel aspect ratio) in Yamb to 1:1 before they will display in the correct aspect ratio. Otherwise, they display in 4:3.

    Would it be possible for you to use the video's native resolution to determine default aspect ratio, when no PAR is specified in the file? Or is that even possible for you to do when streaming?
     
  2. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    If you are on windows then you will need to wrap the folder inside of double quotes since there is a space in your folder name.

    "H:\My Moves"

    Rick
     
  3. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    excellent, thank you. still learning.
     
  4. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    That was the problem.

    I edited streambaby.bat as shown below, and now Streambaby is able to load the native ffmpeg libraries under 64-bit Windows. I no longer see ffmpeg.exe as a separate process with 40-50% cpu utilization.

    Code:
    @echo off
    set LAUNCHDIR="%CD%"
    pushd "%~dp0\native"
    "C:\Program Files (x86)\Java\jre6\bin\java.exe" -Djava.net.preferIPv4Stack=true -Xmx256m -Xmx256m -jar "%~dp0/jbin/streambaby.jar" %1 %2 %3 %4 %5 %6 %7 %8 
    echo Exited.
    pause
    popd
     
  5. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    Nice work on the bat files, but I did notice a problem: it often produces files with the incorrect aspect ratio when streamed.

    You might consider adding mp4box to the list of programs, and then give the user the option of setting the pixel aspect ratio. That would fix the aspect ratio problem. The command is:

    MP4Box.exe -par 1=X:Y FinalMP4video.mp4

    I think you can just set 1:1 for PAR. At least, that works when you change the PAR using Yamb.
     
  6. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    Does it work with ac3. I've heard that mp4box gives problems when the video is not aac, is that true?
     
  7. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    The latest version of Yamb (2.1b) can mux MP4 files with AC3, so I'm assuming it does. If it does not, you can still use mp4box to set the pixel aspect ratio of the final MP4 file, after it is created with mp4creator.

    Update: With a search, I came across this:

    It sounds like the issues with mp4box and Dolby Digital only come into play when combining multiple video streams into a single file. For your purposes, it sounds like mp4box would work fine to mux h264 and ac3 streams.
     
  8. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    Has anyone tried the free MP4 Faststart utility which "adjusts the MP4's metadata to allow for Flash players to play them right away (Fast Start), while it progressively downloads."

    It puts a UI on that functionality in mp4box.

    Edit: Just tried this utility and it added thumbnail support to all of my MP4 files.
     
  9. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    It might be just me, but I've tried applying the mp4box -par=1:1 to a file after being created with mp4creator and when I try to stream I don't get audio. That was a couple of months ago however. Is it because you have to do each individual stream like you said above?
     
  10. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    I suppose it is possible that you have to do mp4box -par=1:1 on the .h264 stream prior to muxing....at least for mp4 files with AC3 audio.
     
  11. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    This might be possible, but to be honest I am not exactly sure what causes the problem in the first place-- It's not obvious to me as to what info the MP4 is "missing" that causes the problem. (aspect ratio in MP4's is usually derived from info in the track header which is required in all MP4's)

    Do you have a short MP4 sample that exhibits the aspect ratio problem on the TiVo? (And if it's not too hard the same sample that has been fixed with YAMB, as my windows partition is currently hosed)
     
  12. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    I think if you do that you get an mp4 file without audio which I guess you would then have to demux to get the h264 file again.
     
  13. bkdtv

    bkdtv New Member

    7,902
    2
    Jan 9, 2003
    DC Metro Area
    You are already demuxing the h264 video stream from the MKV. Can't you apply PAR then, and then remux the h264 stream with the new audio stream?
     
  14. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    I've tried that and I think mp4box only outputs as an mp4...in other words only h264 in an mp4 container.
     
  15. moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    FYI, Amazon HD downloads are finally publicly released and by the reports many titles coming with 5.1 Dolby audio. So I would guess Amazon must be using H.264 + AC3 audio unless something has changed recently for supported encodings for Tivo. Amazon VOD in general is too expensive for my taste and I prefer the Netflix streaming model, but it's nice to have an HD download option if there is something you really want right away. Plus there are a few free videos on Amazon...
    May be interesting to sniff out an Amazon HD download just to see what encoding type it is for sure...
     
  16. spocko

    spocko Member

    450
    2
    Feb 4, 2009
    Agreed. I also wonder if it was coincidence that software ver 11.0c and Amazon HD came out at the same time. Could there be something new in 11.0c in terms of the types of encodings that are supported?
     
  17. moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    That would be easy to check if someone can generate or get hold of 11.0c "tivoapp" binary (the main tivo executable). I doubt anything has changed though.
     
  18. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Error compiling the svn latest:
    Code:
    build-project:
         [echo] main: /Users/yoav/src/streambaby/main/build.xml
        [javac] Compiling 218 source files to /Users/yoav/src/streambaby/main/bin
        [javac] /Users/yoav/src/streambaby/main/src/com/unwiredappeal/tivo/streambaby/host/Main.java:162: cannot find symbol
        [javac] symbol  : class TiVoListener
        [javac] location: class com.unwiredappeal.tivo.streambaby.host.Main
        [javac] 	            	new TiVoListener(rv[i]);
        [javac]                             ^
        [javac] 1 error
    
    Also, any instructions for enabling / configuring the push or do I grok through the code? :)
     
  19. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Sorry, Fixed.

    I either need to get git integrated with my eclipse environment or start remembering to add the files manually...
     
  20. moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    Probably should let Keary comment on this further but... Add the following to streambaby.ini:
    tivo.username=xxx
    tivo.password=xxx

    (those are your Tivo web site login and password). Once you have that streambaby will switch to it's own push code and server such that pyTivo is no longer needed/used.
    NOTE: This is new and still being tested and there is 1 pending issue on Windows platform for transcoding pushes which still has not been resolved.
     

Share This Page