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. Jun 1, 2009 #1261 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I don’t think creating one file would work. I took a look at a typical DVD I use as a test case and it contains 26 VTS sets in 55 .vob files. One of these VTS sets is the main presentation and the rest are commentaries, background material, menu sets, and other assorted uninteresting stuff. If you put everything into one file, there would be no way to identify which captions are what. You could never locate the right captions for anything as there are no identifiers to link anything with.

    Dumping the captions from a specific .vob would easy so I have no issue with implementing that. I just find it a little ugly and don’t quite understand how it would work for playback in general. Streambaby would have to process all 55 .vob files on the above DVD to play back the one set of four files containing the main program and then sort out what to do with the rest. If the program spans vobs or begins in the middle of one, it will have to work that out.

    When I use t2sami to feed pyTivo, it writes out both a VTS_01P2.srt and VTS_01P2.mpg pair to use to transfer VTS 1, PGC 2 programming. These contain only the program stream and synchronized captions so that only the relevant material needs to be processed. This is faster and cleaner because everything else can be ignored. My own thinking is to adapt this approach as an another alternate option in t2extract.
     
  2. Jun 2, 2009 #1262 of 3464
    Frankoz2

    Frankoz2 New Member

    8
    0
    May 31, 2009
    Adelaide,...
    Hello All,

    I'm a new subscriber and user of Streambaby. Absolutely fantastic, but with one small, irritating problem.

    With my Tivo 3 set to Panel aspect, I am watching files on a Sony 42' TV. It is not true 1080 and accordingly trims the top bottom and sides. Problem is that it also trims the bottom half of any subtitles showing.

    I've searched this thread and googled heavily for an answer but to no avail.

    Does anyone have a solution to move the position of the subtitle on screen, perhaps through the *.ini file?

    Any help would be greatly appreciated.

    Thanks
     
  3. Jun 2, 2009 #1263 of 3464
    BJezz

    BJezz New Member

    68
    0
    Jan 11, 2009
    If your TV is not full 1080, it should still scale the input and display the image correctly.

    At a guess, the TV is set to zoom mode. This presumes the TiVo has a 4:3 output and zooms it to fill the screen horizontally, but cropping the top and bottom from the image to do so. The TiVo outputs a 16:9 image if configured for use with a 16:9 TV, so includes black bars in the left and right side of the image when in panel mode. The TV should be set to full mode, which stretches the image to fill the screen horizontally and vertically to correctly display the TiVo's 16:9 output.

    If this is the problem, it will have been cropping the top and bottom from the TiVo output in general, not just from Streambaby.
     
  4. Jun 2, 2009 #1264 of 3464
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    I have a similar issue with my older HD Tube TV. Since it is a tube TV there is an overscan area and it happens that lower half of the subtitles are in that overscan area and are cut off.

    I have never complained before as this is not my primary TV. But I second the option to have a ini setting or a TiVo specific setting to be able to move the subtitles up X pixels or whatever.

    Rick
     
  5. Jun 3, 2009 #1265 of 3464
    Frankoz2

    Frankoz2 New Member

    8
    0
    May 31, 2009
    Adelaide,...
    BJezz,

    Thanks very much for your help! You are right, the TV does currently trim the extremities. I'll try the idea of changing aspect to "Full" and then trying Streambaby; that may provide a solution.

    I was nonetheless wondering if there is a way to manipulate the subtitles because my experience has been that the picture quality deteriorates/distorts when in "Full" mode.

    rgds
    FrankOz:up:
     
  6. Jun 4, 2009 #1266 of 3464
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    Solving this subtitle issue would make DVD network storage/streaming a great Streambaby feature.

    Did not mean one file with everything in it. When creating the file user would just pick English subtitles, for example.
    But I like the one file per vob approach because it works with the current version of Streambaby, no modifications required.

    Thank you for looking into it.


     
  7. Jun 4, 2009 #1267 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    Turns out that vob by vob processing was the first approach I took when I started processing DVDs. When I looked to see what it would take to reactivate it, I discovered that I had never disabled it. As a result, you can already do that. Just use an “mpeg” style command line with the target file name rather than flagging it as a –dvd. You will need to process each .vob file and it will only work for closed captions. When I convert subtitle streams, I must follow the internal ifo mappings because of differences in the way they are stored:

    "C:\Program Files\T2Sami\t2extract.exe" -f srt "E:\OTH\VIDEO_TS\VTS_17_1.VOB"

    with produce VTS_17_1.srt with captions for the whole vob.

    I have also finished implementing my approach as well. I am updating the documentation and will update the website with new executables as soon as I update the installer. Should happen over the weekend. In the coming version

    "C:\Program Files\T2Sami\t2extract.exe" -f srt --video --vts 17 --pgc 1 --subtitle EN -p "d:\My Video" -o "Behind the Animation" --dvd "E:\OTH\VIDEO_TS"

    will produce two files from VTS 17, PGC 1:

    d:\My Video\Behind the Animation.mpg
    and
    d:\My Video\Behind the Animation.srt

    containing a 15 minute DVD feature - synchronized mpeg program stream and captions. The captions are derived from the English subtitle stream rather than the DVD closed captions.
     
  8. Jun 4, 2009 #1268 of 3464
    BJezz

    BJezz New Member

    68
    0
    Jan 11, 2009
    FrankOz, did that work? Full should cause less degradation than zoom as it performs less upscaling. However, because the TiVo and the TV both have aspect correction, you can easily end up with them double compensating and distorting the image.

    Interestingly, when I first got my TiVo, I set the TV to automatically switch to 4:3 for SD and 16:9 for HD, then set the TiVo aspect correction to full. This meant that the TV did all of the compensation and takes advantage of the TV's better upscaler. Then a TiVo update came out and it no longer works. No matter what I set on the TV, it is convinced that the TiVo is sending 16:9. I can manually force it to 4:3, but that means I have to change it back when switching between SD and HD which is just a pain. When you first power up the TiVo the TV stays in 4:3 for part of the boot process, so I assume the TiVo is signalling the TV to switch to 16:9. This is with an HDMI connection.

    So now I have the TV set to full and the TiVo set to panel. It works fine, but I know that TiVo is reducing the horizontal resolution in order to add the black bars. I can avoid that by going to fixed, but then I'm not using the TV's upscaler. Fixed does have the benefit that it can deinterlace paused video which the TV cannot, but I don't see that as a big deal.

    I'm not worried about solving this though. Some of the videos I watch through pyTivo and Streambaby are not 4:3 or 16:9. TiVo's panel mode compensates for this correctly, but if I set the TV to full there's no way to get the TV to return them to the correct aspect ratio. Also it's nice having the info and guide boxes stay at the same size instead of being forced into the 4:3 space. The only issue is that I know that technically I'm losing horizontal resolution for SD content, but I don't notice this when watching it.
     
  9. Jun 4, 2009 #1269 of 3464
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    Tested the CCs. You could make the installer add a shortcut in the "Send To" folder, like "C:\Program Files\T2Sami\t2extract.exe" -f srt making it easy to extract CCs from one VOB. Should also work with a multiple selection of VOBs sent to the shortcut but for some reason it stops after the first one...

    Waiting for the subtitles...
    Great.

     
  10. Jun 4, 2009 #1270 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Just uploaded a new SVN build that should fix a couple of issues mentioned earlier.
    http://streambaby.googlecode.com/files/streambaby-svn-r239.zip

    1. Fixes (hopefully) a problem with audio/video sync in MP4's (after a random-seek or rebuffering)
    2. new streambaby.ini setting:
    cc.yoff=xxx
    where xxx is the number of pixels above the bottom to put the closed captioning. The default is 24. (so, for example, to make it go higher set it to 50)
     
  11. Jun 5, 2009 #1271 of 3464
    Frankoz2

    Frankoz2 New Member

    8
    0
    May 31, 2009
    Adelaide,...
    Kearygriffin,

    Thank you very much for the update and change. I've been very impressed with Streambaby and I'm just stoked with the fix.

    I'll update and try later today.

    rgds

    PS: BJezz, thanks for the follow up, this was the solution I was hoping for!
     
  12. Jun 5, 2009 #1272 of 3464
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    What is the difference between cc.mintime and cc.minchartime?
    Is there a setting to make them go away? For me the last subtitle stays on the screen until the next dialog....

     
  13. Jun 5, 2009 #1273 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    cc.mintime is the minimum number of milliseconds (default=1500) to leave a CC on the screen (unless there is another CC that needs to be displayed in which case the new CC takes precedence).

    cc.minchartime is similar but is based on the number of characters in the CC to display. So for example using the default of cc.minchartime=50, and a CC of 20 characters, the minimum time to leave it on is 50*20=1000 milliseconds.

    Whichever value is higher for the CC to display is used. So for example with cc.mintime=1000 and cc.minchartime=50 a CC with 10 chars would be displayed for: max(1000,50*10)=1000 milliseconds. A CC with 30 chars would be displayed for: max(1000, 50*30)=1500 milliseconds.

    Setting both to 0 will disable minimum times completely. (or you can disable them individually)

    I added these parameters because in my initial testing the CC'ing for TV shows I had extracted from my TiVo were way to fast for me to read. example:
    Code:
    14
    00:00:36,502 --> 00:00:37,101
    HOW COULD YOU DO THAT
    TO YOUR BEAUTIFUL HANDS?
    
    15
    00:00:38,203 --> 00:00:39,303
    WITH YOUR FLAT,
    MANLY MILKING THUMBS
    
    16
    00:00:40,406 --> 00:00:41,406
    AND YOUR LONG,
    GRACEFUL KNUCKLE HAIR--
    
    17
    00:00:43,008 --> 00:00:43,307
    THANK YOU, KENNETH.
    AH-CHOO!
    
    18
    00:00:44,710 --> 00:00:45,076
    ARE YOU SICK?
    
    Note closed caption #17 is only set to display for .3 seconds which I found unreadable, even though the next caption isn't set to display for 1.7 seconds after it. (And I found even #14 which only displays for .6 seconds is hard to read in that time without concentrating so hard on the closed captions you don't have time to actually watch video portion of the show...)

    Full Disclosure: I don't use CC'ing much at all, so it is conceivable there are bugs in anything I talk about above. It is also conceivable I was doing something wrong with extracting the closed captions into an SRT file that was causing the very quick closed captions.
     
  14. Jun 5, 2009 #1274 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    The Streambaby developers will have to help with those specific settings, but timing is fundamentally a property of the extraction process not a playback issue. In general, you can limit the maximum amount of time a caption will hang around by setting the cutoff duration on the t2extract command line:

    --cutoff-duration, -c cutoff duration (sec.)

    When the closed captions are converted to subtitles (.srt), there is an ambiguity in timing that makes the process art as well as science. Closed captions are timed and displayed in two characters increments when they are used normally. Srt subtitles are displayed and timed a paragraph at a time. This means that when closed captions are converted to .srt the exact start and stop times in the caption stream cannot be taken too literally or readability and comprehension can be compromised. If T2sami detects that this may be an issue, it has to make adjustments to the timing to try to avoid problems. These adjustments are made conservatively which means the captions may stay on too long – up to the cutoff duration or the next caption which ever comes first. Different individuals have different reading and comprehension rates so the program does not try to select the cutoff duration for you. If you do not set one, it is infinite.
     
  15. Jun 5, 2009 #1275 of 3464
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    I realize this may not be the correct forum, but I'm not sure where else to ask. The TivoHD is one of many boxes out there that stream Netflix video. Is it possible that Streambaby could ever be expanded to support more than just Tivo?
     
  16. Jun 5, 2009 #1276 of 3464
    Emillion

    Emillion New Member

    24
    0
    Oct 19, 2007
    Generated my srt with subtitles using the T2Sami GUI, and did not see any settings for cutoff...Guess this is why they stay on?
     
  17. Jun 5, 2009 #1277 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    In the GUI, select the Options dialog from the Tools menu. It should come up with the Captions Tab on top. Enable the cutoff with the check box if it is not already checked. Then use the slider to set a value. OK or Apply will save the value. This will then be the default for all GUI captions you extract.
     
  18. Jun 6, 2009 #1278 of 3464
    Frankoz2

    Frankoz2 New Member

    8
    0
    May 31, 2009
    Adelaide,...
    Hi all,

    Thanks to Kearygriffin for the "subtitle positioning" fix!

    I guess solving one problem often creates another!

    1. I Have downloaded and installed SVN-R239 containing subtitle position fix
    2. Subtitles show as white in a black box and frame
    3. Subtitles for different speakers are not differentiated by colour - some coding around on screen suggests that this aspect is not working

    Ideally, subtitles should be shown against a transparent background and perhaps show subtitles in white, yellow etc. depending upon the speaker.

    Any help will be appreciated.

    rgds
     
  19. Jun 6, 2009 #1279 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    There is really no source for the speaker information. The .srt file that is used to create subtitles has no provision for storing this or any color information. The sources that are being used for extraction of the caption likewise do not contain this information. Closed caption are just a text stream : position, text, timing - the use of color is rare and has no standard meaning - no speaker information at all. DVD subtitles are just pictures. Color, etc may be used to convey other ideas but there is no way to extract that because there is no standard for usage of these things.
     
  20. Jun 6, 2009 #1280 of 3464
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    I have placed a new installer on the t2sami.com website. It contains a new version of t2extract that will extract the synchronized video while it processes VOBs. Not done adding this capability to the GUI but my schedule will delay that into next week so I decided to make the t2extract changes available now.

    "C:\Program Files\T2Sami\t2extract" -f srt --vts 3 --pgc 1 --subtitle EN --video -o "Animation" --dvd "C:\DVD\The Story of Art\VIDEO_TS"

    will convert the English subtitles associated with VTS 3, PGC 1 of the unencrypted DVD in C:\DVD\The Story of Art\VIDEO_TS to an SRT format and save them in "C:\DVD\The Story of Art\VIDEO_TS\Animation.srt". It will also save the corresponding mpeg2 program stream in "C:\DVD\The Story of Art\VIDEO_TS\Animation.mpg".
     

Share This Page