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. Jan 1, 2010 #1841 of 3410
    superflysocal

    superflysocal New Member

    70
    0
    Nov 26, 2009
    so what audio bitrate and frequency should i set it at?

    Also what is the best programto use to go from mp4+aac to mp4+ac3, or even better to mp4 with 2 audio stream, one ac3, and another aac
     
  2. Jan 2, 2010 #1842 of 3410
    rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    See the wiki for the audio bitrates that the TiVo supports.

    http://code.google.com/p/streambaby/wiki/video_compatibility

    As for programs.. I use a GUI called MeGui which is a bundle of a lot of different tools. With that tool you can easily set up audio profiles to convert to AC3 multichannel audio as well as mux multiple audio streams into a MP4.

    As Keary noted, Streambaby only streams the first audio channel so make that channel TiVo compatible.

    Rick
     
  3. Jan 3, 2010 #1843 of 3410
    emil10001

    emil10001 New Member

    2
    0
    Jan 3, 2010
    I've been searching to try to fix this for the last couple of days, but I haven't had any luck. I'm running Arch Linux x86_64, with Sun's jre 6 and I get the following error:

    Code:
    $ ./streambaby
    Initializing StreamBaby svn-r262...
    java.net.UnknownHostException: myhost: myhost
            at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
            at com.tivo.hme.host.http.server.HttpServer.start(HttpServer.java:58)
            at com.unwiredappeal.tivo.streambaby.host.Listener.<init>(Listener.java:103)
            at com.unwiredappeal.tivo.streambaby.host.Main.<init>(Main.java:137)
            at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:152)
    error: myhost: myhost
    usage: Main [--port <port>] [--ip <ip>] class
    
    I have tried this with a couple different versions of java, as well as an streambaby 0.27 and I keep getting the same error. I was able to get this to work on a nearly identical previous install, though something must be slightly different on this one.

    When I googled it, all it came up with were people saying that the following option may be the cause of the problems (from the streambaby script):

    Code:
    -Djava.net.preferIPv4Stack=true
    Though, even when I try to remove that option, I still get the same results. I didn't find anyone else getting this error in relation to streambaby when I sarched, so I'm kind of at a loss for what to do.
     
  4. Jan 3, 2010 #1844 of 3410
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I think this problem is going to be related to the hostname of the linux box not being able to be resolved. So your /etc/hostname file (and the command 'hostname') looks like it is returning "myhost", but when Java is trying to resolve "myhost" into an IP address it is failing. (You will probably have the same results at the command line without java. Type "hostname" to see what your linux boxes hostname is, and then trying to "ping" that hostname. My guess is that it will fail)

    The hostname on my linux box is "ubuntu-laptop", so I have the following line in my /etc/hosts file so linux can resolve it:
    Code:
    192.168.1.37	ubuntu-laptop
    
    I would look at your other installations that worked and check the hostname and /etc/hosts file to see how you had it setup previously.
     
  5. Jan 3, 2010 #1845 of 3410
    emil10001

    emil10001 New Member

    2
    0
    Jan 3, 2010
    Thank you! That took care of it. This is probably one of the most useful apps that I have, so I'm glad to get it back up and running.
     
  6. Jan 3, 2010 #1846 of 3410
    jctivo

    jctivo New Member

    84
    0
    Jan 16, 2005
    I just wanted to say Thanks.

    I have been using Streambaby for streaming movies from a desktop computer hard drive, connected external drive and network drive. Works great.

    I really appreciate it.
     
  7. Jan 4, 2010 #1847 of 3410
    Allanon

    Allanon Member

    580
    0
    Nov 2, 2005
    Is there a way to sort video files by episode number, original air date, or file date? I have a series of about 40 videos from 2 seasons and they all have .txt metadata files associated with them. I would like to watch them in order so is there a way to sort them so they will be in the correct episode order without having to rename the files?
     
  8. Jan 4, 2010 #1848 of 3410
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    I've found that mp4 containers with AC3 audio are not universally played by all devices. For example, my PS3 will not play them (I get video with no sound). I also get audio dropouts on my Tivo when I try to play them (streamed or pushed). The audio dropouts may be a problem with my receiver or something else on my end, but it is much safer to use 2 channel aac encoded audio. You may want to play the files on something else other than the Tivo at some point. There are some shows where you may think you need 6 channel sound, but try to keep the bit-rate low.

    The following has audio dropouts on my Tivo, and is silent on my PS3:

    Code:
    [FONT="Courier New"][SIZE="3"]Format                           : MPEG-4
    Format profile                   : Base Media
    Codec ID                         : isom
    File size                        : 2.28 GiB
    Duration                         : 1h 0mn
    Overall bit rate                 : 5 444 Kbps
    Writing application              : Lavf52.31.0
    ...
    Audio
    ID                               : 2
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Codec ID                         : ac-3
    Duration                         : 1h 0mn
    Bit rate mode                    : Constant
    Bit rate                         : 384 Kbps
    Channel(s)                       : 6 channels
    Channel positions                : Front: L C R, Surround: L R, LFE
    Sampling rate                    : 48.0 KHz
    Resolution                       : 16 bits
    Stream size                      : 165 MiB (7&#37;)
    [/SIZE][/FONT]
    Here's the info on the same file that does play well on both devices:
    Code:
    [FONT="Courier New"][SIZE="3"]
    Format                           : MPEG-4
    Format profile                   : Base Media
    Codec ID                         : isom
    File size                        : 2.59 GiB
    Duration                         : 1h 0mn
    Overall bit rate                 : 6 179 Kbps
    
    ...
    Audio
    ID                               : 2
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 1h 0mn
    Bit rate mode                    : Variable
    Bit rate                         : 128 Kbps
    Maximum bit rate                 : 136 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 48.0 KHz
    Resolution                       : 16 bits
    Stream size                      : 55.1 MiB (2%)
    
    [/SIZE][/FONT]

    As for the best program, there are many choices. It sort of depends on how many options you want. You might want to try kmttg and select one of the encoding options. I edited the PS3 based options for a higher bitrate (5k instead of 2k) and they seem to play fine on my Tivo, PC, and PS3. kmttg is good for setting up lots of files to encode and then letting it run over night. What I use the most often, however, is RipBot. It gives me more control, but is slower (no fast and easy way to give it a list of files and tell it to process them all). The aforementioned MeGui is another good choice; it gives you lots of control, but you have to know more about encoding to take full advantage of it.
    Edit: I believe Nero Encode will also produce an MP4 file that may work on the Tivo, but I've never tried it.
     
  9. Jan 4, 2010 #1849 of 3410
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    I don't think you can. Even though Tivo knows this on the the recordings it makes, it doesn't offer it as an option. I rename the shows so they sort properly.
     
  10. Jan 4, 2010 #1850 of 3410
    NJ Webel

    NJ Webel Member

    286
    0
    Dec 7, 2004
    Richmond, VA
    I title my server files so they are in order, and my metadata lists the episode number immediately before the episode title. For instance, if I were to have 2 episodes of Star Trek: DS9, the name of the file itself would be:

    DS9.S04.EP09.mpg and
    DS9.S04.EP10.mpg, where "DS9" is the series title, "Sxx" represents the season, and "EPxx" is the episode number. Both of those files would be in a secondary sub-folder labeled "Season 04" within a sub-folder labeled "DS9" within a main folder labeled "Star Trek". (That way, when I put the next gen on there at a later time, I select the Star Trek folder and select either the next gen folder or DS9 folder, etc.)

    In the metadata for DS9.S04.EP09.mpg, the Title would be: "Ep 09: The Sword of Kahless". This is critical as it lists via this title if metadata is present. The series title would be: "Star Trek: Deep Space Nine" and the episode title would be: "The Sword of Kahless" (the rest of the metadata is as normal).

    Likewise, for episode DS9.S04.EP10.mpg:

    Title: Ep 10: Our Man Bashir
    SeriesTitle: Star Trek: Deep Space Nine
    EpisodeTitle: Our Man Bashir
    etc.

    On the TiVo in the Season 04 folder, it will then have a listing on my screen that looks like:

    Works great for me.
     
  11. Jan 4, 2010 #1851 of 3410
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    I'm having trouble creating folders and subfolders. What do you have in your metadata that tells Tivo to put the files in the subfolder Season 04 of the subfolder DS9 of the folder Star Trek?
    Thanks
     
  12. Jan 4, 2010 #1852 of 3410
    NJ Webel

    NJ Webel Member

    286
    0
    Dec 7, 2004
    Richmond, VA
    The folders are created just like any computer folder is, it's just a file location for your videos. In other words, when you set up Streambaby (and pyTivo) to "see" your videos folder, any folder you create or place into that video folder will also be "seen" by the application. The metadata does not specify file location, you physically place the video contents into a created folder.
     
  13. Jan 4, 2010 #1853 of 3410
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    Thanks. I misunderstood. I thought you were pushing the files onto the Tivo.
     
  14. Jan 5, 2010 #1854 of 3410
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    Does streambaby (or probably more accurately, Tivo) support files containing subtitle streams when streaming a file, or pushing a file to the Tivo?

    For instance, if I encoded an mp4 file with h.264 video and ac3 sound, could I also have a subtitle stream, and would the Tivo display it?
     
  15. Jan 5, 2010 #1855 of 3410
    MitchelleSander

    MitchelleSander New Member

    1
    0
    Jan 5, 2010
  16. Jan 5, 2010 #1856 of 3410
    rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    It appears that Streambaby strips the embedded subtitle file off of any MP4s (I do not know if the TiVo would support them anyways).

    But you can have a .srt file in the same directory as your MP4 file and use the "Aspect" remote button to toggle the subtitles on and off.

    So if you movie is

    SomeMovie.mp4

    The SRT file would be named

    SomeMovie.srt

    Good luck,

    Rick
     
  17. Jan 5, 2010 #1857 of 3410
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    Hrm. I wonder if this is also true if you use streambaby to "push" the file to the Tivo?

    Also, if the file is transcoded to a format which doesn't require transcoding, and it's streamed to the tivo "directly", I wonder if the tivo will even pay attention to any embedded subtitle stream?

    I'll have to give the srt method a try. I didn't know about it. Didn't see it documented. I managed to use mkvextract to pull the subtitles out of the original mkv into an SRT file. Hopefully that will work!

    Will give it a try.
     
  18. Jan 5, 2010 #1858 of 3410
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    It's not the TiVo that is displaying the captions. streambaby reads the srt file and adds the captions as an overlay to the video as it streams. Hence that is also why if you want to control font size & positioning you do so from streambaby config.
    Hence it only works if you are using the "stream" function. For "push" you are simply sending the file to the TiVo and I don't believe TiVo supports captions for non-mpeg2 files.
     
  19. Jan 5, 2010 #1859 of 3410
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    Ah OK. I tried this and it worked fine with my mp4 file. So this seems a viable solution. I wasn't sure how it worked, whether the Tivo itself was reading the srt file in a separate stream, or whether SB was feeding it to the tivo in some manner (I guess the latter). Fine points I guess, since either way it's a functionality that is (thankfully) built into the Tivo that SB is taking advantage of.

    I was hoping that the Tivo would do the captions if it had the file on disk and didn't have to rely on the streaming protocol. But I guess no dice unless it's an MPEG 2 program stream? So the choices are huuge mpeg2 files with captions, or to use the srt method and stream. Kind of lame, since while streaming works, it makes seeking through movies and so forth a bit "clumsy". Of course, "pushing" is equally painful, since it takes forever, especially with huge mpeg2 files (the movie in question expanded from 7 to 9GB on conversion from h.264 -> mpeg2, and what seemed about an hour, maybe longer, to push).

    More and more I'm thinking of getting something like a Popcorn hour or some other media tank, or HTPC, since my Xbox 360 has its own problems with this sort of thing, and the Tivo, while doing better, obviously has its own issues. It'd be nice if I could have something that would just "play the damn file" with all the features it'd have on a PC. :p

    EDIT: I constructed an mp4 file with added captions by using ffmeg to transcode the video and audio (h.264 + DTS, so the video didn't really need it but audio did) to mp4/h.264/ac3 5.1, then used mkvextract to pull the captions out of the mkv as an srt file, then used mp4box to add the captions back to the mp4 file, and pushed it to the tivo using SB. At first, I was excited, since the CC option on the tivo display bar was "lit" and I could flip it to on, but alas, the captions didn't display. :sigh:
     
  20. Jan 5, 2010 #1860 of 3410
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Yeah I came to conclusion a while ago that TiVo (at least current incarnation) doesn't really make for a good general purpose media player due to limited codec support and slow networking speeds as well as some of the remaining limitations of streaming (especially the 1.1 GB buffer limit). I don't really use streambaby or even pyTivo much at all anymore. I've spent much more time tinkering/exploring than actually using the tools. A networked Blu Ray player with Netflix streaming & DLNA support is starting to look a lot more attractive but the price points are still a little too high for my taste.
     

Share This Page