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

    dbsams New Member

    6
    0
    Nov 27, 2009
    Rick!

    You the man... I'm having to do a batch convert, but the key was the interlace... I still wish I could have figured out how to get streambaby to handle the native files in multiplay mode, but this will work... just takes a few hours off the life of my cpu!

    Thanks again! The kids will be reliving the last six years of Christmas whether they like it or not!
     
  2. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    I think you already hit the nail on the head.. Since these are network shared directories they are subject to latency, on top of the device speed. Many consumer grade NAS/SAN devices spin down when not accessed for a while and take some time to respond to initial pings.

    If you need the convenience of having the files on a remote disk you might want to look into a device that supports eSata as well as USB/Network. The eSata will allow the device to be a local disk to your computer which should solve the network lags.

    Otherwise you also asked if Streambaby could be run local on the NAS.. Some NAS systems support Java and can run streambaby to server already compliant movies.. I would not recommend using your NAS to also transcode the movies. I am not familiar with what devices support Java so can not recommend any particular brand.

    Best of luck,

    Rick
     
  3. superflysocal

    superflysocal Member

    70
    0
    Nov 26, 2009
    is there a way to have streambaby transcode just the audio, for example, in a mp4 with aac, trancode the 6 channel aac to 2 channel aac, so that I can hear the center channel? (without transcoding video)
     
  4. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    You can try to set the following parameter in streambaby.ini and restarting streambaby:
    Code:
    use.title=false
    
    This tells streambaby to display the filenames instead of trying to read any available metadata to parse out the "title" of the video. This should speed things up (but I'm not sure how much).
     
  5. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I'm still not sure why the quality.default setting didn't work for you... It seems to work for me (based on both the video quality I see and by looking through the logs and seeing the values passed to ffmpeg). This is the test I was running:

    1. Downloaded movie from rockinghammarina.com
    2. Copy movie to m1.avi, m2.avi, m3.avi through m9.avi
    3. Edit streambaby.ini, add line:
    Code:
    quality.default=1
    
    4. Restart streambaby
    5. Navigate to folder containing m1-m9.avi
    6. Moved cursor to m2.avi
    7. Pressed "Fast forward" button (to play from m2.avi onward)
    8. Watched videos m2.avi-m9.avi play on TiVo

    All of the videos seemed to be transcoded to the correct bitrate (in my cased 512kbs, the lowest quality)

    So I'm not sure exactly what the issue is, but again it is a lightly used feature so it's possible there are some specific circumstances where it has problems (and possibly many circumstances...)

    I'm glad to hear the manual transcoding worked (thanks rfryar) and that it is a workable solution.
     
  6. alexnvrmnd

    alexnvrmnd New Member

    19
    0
    Oct 13, 2009
    Thanks for the insight, Rick. Over the past day or two, the lag time to read the directories has improved a bit, but it definitely is longer than it should be. I hear you on the spin down theory, and while I do agree with you on it, it also happens when it's not just the first time into Streambaby for the session. Ah well. As I said before, the buffering part is what I truly care about, and that's been hit or miss for the past few days. I'm wondering if the fact that my TiVo's on one level, and the router's on another...
     
  7. alexnvrmnd

    alexnvrmnd New Member

    19
    0
    Oct 13, 2009
    Thanks a lot, Keary! I'll give this a try when I get home from work. Even if it's just a little bit faster, it's better than what it's been doing (though, it has been getting a LITTLE better lately).
     
  8. superflysocal

    superflysocal Member

    70
    0
    Nov 26, 2009
    is this possible or ever going to be possible? if not what is the easisest way to go from 6 channel mp4+aac to 2 channel mp4+aac?

    edit: found this somewhere on internet as an argument for ffmpeg. Can someone make sense of this and where it would go and would it work:

    -acodec libfaac -ac 2 -ar 48000 -ab 192k

    if this argument can transcode aac 6 channel to 2 channel, how do i use this to force all mp4 to use this while disabling video transcode?
     
  9. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Currently this is not technically possible to do on-the-fly (meaning can't be done within streambaby) due to the way MP4 files are formatted.

    Streambaby can transcode the video & audio on-the-fly to MPEG2, by setting a quality other than "same".
     
  10. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Perhaps you can start the MP4 generation process to initially create the MP4 file. If you need a real file for the atom you can pass parameters to FFMPEG to just generate a few seconds to create an interum MP4 file.

    You can use that temporary file to get some of the ATOM data to kick off the stream? I am not sure what data is included in the ATOM, but I know with other format things like length and file size can be approximated from the initial input file.

    Then once you have the ATOM pass the raw MP4 from FFMPEG to the TiVo? Possible? I also would love to be able to store my MP4s with full surround AAC instead of reducing the audio to stereo.

    One other question.. Does Streambaby support multiple audio streams? Or the TiVo? If it can ignore secondary audio tracks perhaps I can have two audio tracks, the primary being stereo and the secondary track have the full surround data?

    Thanks for the excellent work!

    Rick
     
  11. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    If I remember correctly for MP4 files, the internal streambaby code strips out all but the first audio track (and video track for that matter). So as long as the audio stream you want the TiVo to play comes before the second audio track, this should work.

    For MPEG-2 files the audio is passed directly to the TiVo and I have no idea how it chooses which audio track to use. (I really haven't played too much with this)

    As far as the transcoding just the audio in MP4, I guess now that I am thinking about it more *might* be technically possible. In general the problem is the MP4 header has to contain an index that contains an exact position in the file where audio/video for each time period exists. For video this isn't possible ahead of time, because (I think, I'm getting in a little over my head here) even with CBR the exact size of each frame of video is not exactly predictable ahead of time.

    For audio however (again, I'm not really familiar with how AC3/AAC encode audio) if CBR really means that the size of every "frame" of audio is *exactly* predictable, it would be theoretically possible to pregenerate the index in the MP4 header.

    Having said that, it would be *alot* of work, and I'm don't think I'm really up for it... I'm more in the mode of hoping TiVo will at some point support h.264 in an mpeg-ts which doesn't require the index to be sent ahead of time. This would open up a whole range of possibilities.

    Edit: It would probably also not be too much work to add some additional logic in the MP4 code to "prefer" an AC3 track over an AAC track if the MP4 file has both.
     
  12. lupette

    lupette New Member

    9
    0
    Sep 12, 2008
    The conversation above is rather complicated for me so I hesitate to mention what you all probably already know . . .but just in case it's of use to anyone . . .there is a work around using YAMB. It's the only program that I know of that trans codes just the audio, so it's not so cpu intensive. I can only get it to work sometimes though, because I don't know how to extract the 2 channel stereo from the 6 channel, so if the 2 channel is not already available to me, I am lost. Anyone know how to do that?
     
  13. superflysocal

    superflysocal Member

    70
    0
    Nov 26, 2009

    i can never get yamb to work in demuxing. I drop in a file and it does nothing, doesn't even show the components of it. I have gotten my mp4box gui to work though.
     
  14. lupette

    lupette New Member

    9
    0
    Sep 12, 2008
    Chris I can't help you and I really wish I could because now I am having the same problem (or a similar one). Sigh . . . I think it may have something to do with Bonjour service but not sure.
     
  15. jcthorne

    jcthorne Active Member

    2,769
    14
    Jan 28, 2002
    Houston
    If you will build the mp4 file with 6 channel ac3 audio instead of aac or recode the audio to ac3 you can push/stream the 5.1 audio to the tivo.

    Tivo supports full 5.1 audio in mp4 files if you use the ac3 codec. It only supports stereo audio on aac files because it cannot encode ac3 on the fly, only pcm stereo. The digital audio output of the tivo cannot output an aac stream so why send it?

    If you are looking for an easy conversion from mkv to mp4 that only recodes the audio if necessary, do a search for orangeboy and get his batch file. Configured specificly for tivo.
     
  16. superflysocal

    superflysocal Member

    70
    0
    Nov 26, 2009

    problem is most internet files out there are either mp4 with multichannel aac or mkv with ac3. Yes, I can turn mp4+aac to mp4+ac3, but nothing else (ie Popcorn Hour )plays mp4+ac3 except tivo and computer which means I would have 2 versions of the movie stored instead of one central storage. I even tried making a mp4 with 2 channel aac and it didn't work. I demuxed with My Mp4box GUI (Yamb wouldn't work for me), convert 6aac to 2 channel aac with mediacoder then remuxed with Yamb or My mp4box GUI. When i play the file, i just get a black screen with streambaby. If I can get this to work, I can then do 2 channel aac in first audio stream and multichannel aac in second audio stream.

    I will look at orangeboy batch also.
     
  17. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    I convert 6 Channel AAC audio down to stereo using the MeGUI package on windows.

    I think it uses faac under the covers but works great. It also has a front end for MP4Box to do the remuxing (It does not demux through the GUI). Just remember to select ISMA mode on the mux.

    If you still have issues with the black screen, make sure the audio bitrate and frequency are set correctly.
     
  18. jcthorne

    jcthorne Active Member

    2,769
    14
    Jan 28, 2002
    Houston
    MeGui will demux via the GUI. Click tools, HD Stream Extractor.
     
  19. jcthorne

    jcthorne Active Member

    2,769
    14
    Jan 28, 2002
    Houston
    MKV with AC3 is an easy convet to mp4 with ac3, see the batch file I referred to previously.

    I am curious what popcorn hour (or any CE device player) does with an AAC 6 channel track? SPDIF digital audio output does not support AAC encoding so how does it output the audio? Does it convert to AC3 6 channel on the fly? had not seen a hardware based CE device that does that level of conversion on the fly yet. Perhaps there is a software update for your popcorn hour player to support the full mp4 spec which includes ac3 audio?
    Mux and mp4 with AC3 6 channel as the first audio trac and 2 channel AAC as the second? MeGUI can do that.
     
  20. rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    Thanks, I only ever used that to demux Blu Rays and not MP4s directly.

    Rick
     

Share This Page