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

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Yes. If you use pyTivo to copy them back to your Tivo you can also keep the program information (title, description, etc) by generating a pyTivo metadata file which is a simple .mpg.txt file that accompanies the .mpg file. kmttg has option to generate this metadata file from .TiVo files as well. (Streambaby also reads the metadata file to show information about a video file).
     
  2. rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    I use a tool called Direct Show Dump. It quickly turns the TiVo file into a MPG.

    Just do a google search and you should find it. However you must have at least the free Tivo Desktop installed in order to get the right decoder installed on your PC.

    Rick
     
  3. moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    That is another option. But the requirement of having the the proper TD codecs installed for it to work is why I don't bother mentioning it since tivodecode has no such dependencies and works very fast and reliably on all major platforms. VideoRedo is another non-free option for decrypting but again relies on proper TD codecs being installed.
     
  4. wmcbrine

    wmcbrine Ziphead

    10,363
    22
    Aug 2, 2003
    Yeah, I don't see why anyone still uses Direct Show Dump. It was a great workaround when it was all that was available, but now we can decrypt directly.
     
  5. rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    Using the FFMPEG script to convert a TiVo HD MPG into a MP4 I get really tinny sounding audio. Has anyone else encountered this?

    ffmpeg -y -i inputFile.mpg -vcodec libx264 -coder 0 -level 41 -sameq -g 300 -bufsize 14745k -b 5000k -maxrate 16000k -bug "+autodetect+ms" -me_method epzs -trellis 2 -mbd 1 -acodec copy -f mp4 outputFile.mp4

    I am using the FFMPEG binary on windows that is distributed with the Streambaby package.

    Also I have tried just exporting the -acodec copy to a AC3 file and then using MP4box to mux that with the H264 created above but MP4box complains about the AC3 file.

    Any hints on how to easily create a batch script to convert TiVo MPGs into Mp4 that does not cause the audio to become tinny?

    Thanks,

    Rick
     
  6. wmcbrine

    wmcbrine Ziphead

    10,363
    22
    Aug 2, 2003
    -acodec copy... you're not doing anything to the audio at all. But sometimes the TiVo gets in a weird state. It can sometimes be cleared up by playing a stream with different parameters, or almost always by rebooting.
     
  7. rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    I understand that FFMPEG is not supposed to be doing anything to the audio but it definately is, or when it muxs it into MP4 it causes the issue. All that I can be sure of is that the audio is fine in MPG, but any attempt to get the audio out of the MPG with FFMPEG causes the tinny sounding audio. This is in any player, even PC players, not just the TiVo.

    No one else experiences this FFMPEG AC3 behavior on Windows?

    Rick
     
  8. moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    No I have not experienced that behavior on Windows or Linux platforms using -acodec copy to get a copy of AC3 audio. Most of my sources are from Tivo recordings. Could be something about source video is causing the issue, especially if it's a Blu Ray rip or something of that nature. Perhaps if you post somewhere a short clip of a source video that you are having an issue with others could try it out to see what happens.
    Assuming the source video is mpeg2 have you run it through VRD QSFix to see if that helps?
     
  9. Kiotie

    Kiotie New Member

    5
    0
    May 22, 2009

    YES, YES, YES! Thank you keary, you da man! The svn worked correctly. Do you take donations for this project somewhere? I didn't see one on the streambaby web page.
     
  10. gonzotek

    gonzotek tivo_xml developer

    2,401
    3
    Sep 24, 2004
    Outside...
    I didn't have a chance to do extensive testing and report this earlier, but .27 was broke in the same way for me (Ubuntu 8.10, recent svn builds of ffmpeg and x264) and the r238 build worked great, as expected. So it looks like there was definitely something wrong with the address binding.
     
  11. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Odds are that when changing containers ffmpeg messes up the audio codec ID or bitrate or whatnot. Try using mencoder instead of ffmpeg. It's known to better handle ID tags when you change containers.

    Or re-encode the audio... I doubt you'll notice much of a slowdown or quality hit... At least see if re-encoding fixes it...
     
  12. jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I just wanted to let everyone know that I have put up a new version of T2Sami that is able to convert DVD subtitle streams as well as closed caption to .srt files for use with streambaby. Newer domestic material typically has closed captions but older and foreign media often do not. The addition of subtitles should expand the amount of captioned material available to be streamed.

    It should also allow captions in Spanish, French, ... to be created if the appropriate substreams are present. I have not done a lot of testing with this latter capability so I do not know how streambaby will respond to a full range of foreign character sets yet. It is also limited by the OCR process I am using. The further one gets from English, the higher the error rate will be.
     
  13. dlfl

    dlfl Cranky old novice

    6,991
    16
    Jul 6, 2006
    Near...
    Just graduated from S2D2 to HD and of course one of the first things I had to do was get StreamBaby going! Basically it went pretty smooth. Just followed the getting started part of the wiki and voila! -- it works!

    Running on Windows XP (SP3) I notice the following error message in the command window on every start up:

    However things appear to be working anyway, although I see lots of warnings like the following in the command window:

    These messages aren't in the log file, but the log file has lots of messages like:
    Do any of these messages indicate actual problems?

    My ini file is a very simple one liner:
    The files I'm streaming are HandBrake .mp4 transcodes of S2D2 TTG transfers (edited with VideoReDo). Typical mediaInfo for one of these is:

    Video
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Main@L3.0
    Format settings, CABAC : Yes
    Format settings, ReFrames : 2 frames
    Codec ID : avc1
    Bit rate mode : Variable
    Bit rate : 650 Kbps
    Width : 640 pixels
    Height : 288 pixels
    Display aspect ratio : 2.222
    Frame rate mode : Variable
    Frame rate : 29.970 fps

    Audio
    Format : AAC
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Maximum bit rate : 244 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Resolution : 16 bits

    The PAR for these is 1:1 and they display correctly with "Panel" aspect ratio, as stated in the StreamBaby docs. So far I'm streaming them with the "same" bit rate.

    I have had problems with audio sync getting off a few seconds after random seeking outside the buffer, but this only happens sometimes and I'm not sure what the dependence on seek method is (#-Skip, ##<enter> or FF). This may be due to properties of my source videos.

    And also, I generated the .srt file for one of my videos with T2Sami and the CC's work perfectly when streaming.

    Thanks for the cool program!
     
  14. whozat

    whozat New Member

    4
    0
    Jan 30, 2009
    Hi all! I really know very little about the Tivo ecosystem, or digital video in general, though I do know my way around Linux in general. I'm curious...what is it that running streambaby inside Galleon buys me? I ask because I've got some mp4s that I created using the ffmpeg recipe on the video compatibility page in the wiki, and they stream to my Tivo just fine when I'm running streambaby on its own, but I get the red "Error - 0xffff" message when I try to view them when streambaby is being run via Galleon. Ideally, I'd like to get that cleared up...but I could also just write a script to start streambaby at boot time and restart it if it crashes :)

    Thoughts?

    Thanks!
     
  15. tlc

    tlc Member

    709
    0
    May 29, 2002
    FYI, Exception thrown when steambaby is run from / :

    Initializing StreamBaby v0.27...
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:37)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1768)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.getCurDir(StreamBabyConfig.java:790)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.setupDefaultDirectories(StreamBabyConfig.java:796)
    at com.unwiredappeal.tivo.config.StreamBabyConfig.<clinit>(StreamBabyConfig.java:37)
    ... 1 more
     
  16. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I run it through Galleon just so I don't have to run two separate java apps on my server. I don't know why you'd get that error through Galleon, but to be honest I have not played around that much with streambaby lately. I remember having problems early on, but nothing recently.
     
  17. Jun 1, 2009 #1257 of 3404
    Kershek

    Kershek New Member

    125
    0
    Oct 10, 2002
    Mesa, AZ
    I just tried your latest r238 but couldn't get TiVo to see it. I tried it on 3 different machines running Windows XP SP3 32bit. Again, not having any issues with TiVo Desktop. My router is a TrendNet TEW-652BRP.

    I would really like to use this program if possible - is there anything else I can do to help troubleshoot?
     
  18. Jun 1, 2009 #1258 of 3404
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    When streaming from a DVD folder .srt files should match the names of the .vob files in order to show on Tivo, right? Could T2Sami create one .srt file per vob (with time starting from 0 for each of them) instead of one per DVD?
    Thank you - great tool.
     
  19. Jun 1, 2009 #1259 of 3404
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I will have to think about it to see if I can come up with something that makes sense doing it this way.

    Right now, t2sami extracts by program title not physical storage. If you actually look at the contents of a DVD and compare them to the program content, they seldom respect the .vob boundaries. The main movie feature will typically span multiple .vob files and these may or may not be sequentially numbered. Some manufactures seem to intentionally scramble the order to frustrate viewers. Features such as background material and commentaries are frequently short enough that more than one can be put in a single vob or into empty space in the same vob as the main feature.

    Episodic DVDs such a anime disks often have episodes that are short enough to span vob files : episode 1 ( vob 01 ), episode 2 ( vob 01 => vob 02), episode 3 ( vob 02 => vob 03 ), etc. t2sami and most of the decryption programs deal with this by reading the ifo files and allowing you to following the program segments in specific VTS, PGC pairs. This allows you to extract single features or episodes for viewing as a whole independent of everything else on the disk. The t2sami GUI works this way to extract both the mpeg program stream and the captioning content. The t2extract utility was set up to extract only captioning to allow it to work with other conversion programs people might prefer but this does have the unintended consequence that you have encountered if you extract the video in a different way.

    In some ways it would make more sense to give t2extract the optional ability to extract the mpeg stream for processing in another way than to limit the captions to the physical vob boundaries. However, I am open to other points of view.
     
  20. Jun 1, 2009 #1260 of 3404
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    I can see the complications. Would you rather see this fixed on the Streambaby side, with a setting in .ini like:
    cc.containter=[file]|folder
    where it would be able to keep reading cc from only one .srt file with the same name as the folder when going through vobs?
    Or a T2Sami solution that would work in 90% of the cases? Maybe you could just do some post processing on the one file, splitting it in four and changing the timestamps starting with the second to make up for length of the vob(s) prior to the current one?
     

Share This Page