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. Feb 19, 2009 #481 of 3464
    kagacins

    kagacins New Member

    9
    0
    Feb 19, 2009
    Thanks for the quick reply! With respect to sorting by date, I'm not hoping for the ability for the program to be able to pick up the air date from the meta file or anything more complex like that, but rather to not re-order the files alphabetically when viewed within Streambaby (if it just stays in the order it is in the native directory that would be perfect). Maybe that isn't as complicated as some of the alternatives? Ironically for me, the alphabetization is only an issue when the meta data is included in the stream because the files are numbered and therefore sorted in the right order on my system.

    Thank you again and your time, work, and effort are sincerely appreciated.
     
  2. Feb 20, 2009 #482 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    So, I made the one line change in streambaby to make it choose the 720p display, and changed blue.jpg to match..
    It looks 'nice'...

    the forum won't let me upload the appropriate jpg, so I'm putting it up on the web temporarily:
    http://yoav.org/files/blue.jpg
    (the file goes in assets/)

    The one line change: in ./main/src/com/unwiredappeal/tivo/streambaby/StreamBabyStream.java

    change line 294 to read:
    Code:
       Resolution r= new Resolution("1280x720-PAR=1/1"); 
    Is there any reason *not* to make this the new default behavior? the fonts look smoother, the background is less blocky (ok that's the old jpeg being a little too compressed I think).... It really does look nicer...
     
  3. Feb 20, 2009 #483 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    The selection screen does look much better, but unfortunately a lot of things are messed up by this. (The play screen, the shuttlebar, preview window, etc...)

    Maybe this will give me the incentive to fix these things ;-)
     
  4. Feb 20, 2009 #484 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Oh, I didn't think about those. I made the change, looked at it, and said "ooh".
    I'm happy to help code the rest of the stuff -- although it's quite a learning experience for me. Or help test it if you need... But yeah, I really do wish the app switched to defaulting to HD.. it looks much better (and anyone who owns a tivo HD / S3 probably has an HDTV its hooked up to anyways).
     
  5. Feb 20, 2009 #485 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Me too ;-) I think the reason I have held out so far, is that the bananas-plus library I am using is designed to make handling these things easier, using relative layouts instead of hardcoded, and skins for different resolutions. Unfortunately, I couldn't figure it out as I was writing streambaby so gave up and used hard-coded constants. When I switch to HD, I don't want to do the same thing again and start hard-coding two sets of constants (one for 640x480, one for HD). I want to actually use the library as intended.
     
  6. Feb 20, 2009 #486 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Hmm....

    guess that means no HD for us soon? (cries quietly in the corner).
     
  7. Feb 20, 2009 #487 of 3464
    pmd

    pmd New Member

    32
    0
    Dec 14, 2004
    Perhaps you've already seen it, but there's a thread where banana-plus's author helped someone else understand resolution independency:

    http://www.tivocommunity.com/tivo-vb/showthread.php?t=385669

    I had a look at the library's google code page - there's not much other information about how the scaling is supposed to work is there?
     
  8. Feb 20, 2009 #488 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok so I decided to dive in :)
    So far I've changed it so that it scales the big preview window correctly, and uses a fixed-size small window, but places it in the correct place (middle of screen, shifted up around 50 pixels -- so works at any resolution).

    The shuttlebar is now correctly located as well. (it's set to a width that is 4/5's the width of the screen, and 150 pixels above the bottom -- so it should work at any resolution).

    Attaching a diff...

    Note that I don't have a non-HD to test it with, nor did I test 'extra' stuff like metadata (don't have it) or passwords.. but the basic stuff seems to be working..

    apply the patch, and download http://yoav.org/files/blue.jpg and put it under assets/
     

    Attached Files:

  9. Feb 21, 2009 #489 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Thanks Yoav, I applied to patches and added some quick fixes to the playscreen & the metadata formating. I also adjusted the preview window to have a consistent size (so I made it bigger in HD). Not sure if there are any ramifications as far as precached thumbnails, but I don't think so.

    I pushed the changes to the SVN repository, and a binary can be found here:
    http://streambaby.googlecode.com/files/streambaby-svn-r98.zip

    There are still some small layout issues, and metadata comes out teeny tiny, so I haven't made it default it yet. To activate the HD stuff, add these lines to streambaby.ini:
    background.image=background-720.jpg
    hme.res=720

    Now I guess I'll never get to fixing all the layout stuff ;-)
     
  10. Feb 21, 2009 #490 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Woohoo.. Ok, getting latest svn and including it in pyTivoX :)
    thanks!!!
     
  11. Feb 21, 2009 #491 of 3464
    moyekj

    moyekj Well-Known Member

    11,406
    148
    Jan 23, 2006
    Mission...
    Yoav, if you're still looking into it there's still plenty of things left to correct/improve at 720p resolution:
    * The row spacing is way too big in selection screen. One could fit so much more on the screen with narrower spacing.
    * Fonts are way too small for metadata and/or info screen and a little small for closed captions.
    * Error message fonts and other message fonts used during video playback are way too small
    * The captions on/off graphics are now in center of screen instead of upper right
    * Please Wait graphic could use an HD image in 720p mode
    * Very long titles don't wrap around in selection screen - that's not a 720p specific issue but worth fixing

    There's probably more... so quite a long list and now I see why Keary hasn't been motivated to do it yet ;)
     
  12. Feb 21, 2009 #492 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok gives me more stuff to do :) (I just don't want to end up repeating work keary is doing.. this is very uncoordinated...). So tell me if you're already fixing/fixed some of this stuff so I don't go trying to figure out how to fix it myself...
     
  13. Feb 21, 2009 #493 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I'm working on some MP4 compatibility issues over the weekend, so I don't plan on doing anything further with the HD.

    I think the hardest thing to fix is going to be the HTML rendered metadata. Probably need to change the XSLT from using <font size="xx"> to using CSS, and applying a different CSS stylesheet based on resolution.

    The only request I have for the HD stuff is to make sure that any changes are compatible with 640x480, as there are still some people who need it. (My Mom being one them, and since I am in charge of all of her audio/video needs, I was hoping to be able to put off the HDTV purchase till at least next Christmas ;-)
     
  14. Feb 21, 2009 #494 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    All the changes I plan to make would be 'relative' sizes, so it *should* work fine for any size display. However, I know zero about this stuff, so we'll see..
     
  15. Feb 21, 2009 #495 of 3464
    wmcbrine

    wmcbrine Ziphead

    10,458
    67
    Aug 2, 2003
    I'm not sure what that means, but you really need two sets of everything (coordinates, graphics) to support both SD and HD properly.
     
  16. Feb 21, 2009 #496 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok, next patch is in, only two real changes:

    1. If y resolution is < 720, then font sizes are reduced less for 'small', 'tiny'. (this makes SOME of the metadata display in a more readable font, but not the xsl stuff).

    2. Use specific sizes for 'rows' in the list of shows (instead of the default layout). effect is that if you're on HD, you can fit a lot more shows in the list (smaller gap between each showname). I tried it on the 640x480 emulator, and it looks fine, and it looks fine on 1280x720.

    I'm really the wrong person to mess with this :(. I'm messing around in the dark, with just the javadocs for bananas and hme. I really really have no idea what I'm doing :).

    patch attached
     

    Attached Files:

  17. Feb 21, 2009 #497 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok I've coded up the changes necessary for closed-captioning / CC icon changes, which I believes now leaves only the metadata xsl -> html using stylesheets.

    Keary, It's a little bit of a pain for me to make diffs since the source I use is a little modified from yours (I have to get rid of a bunch of @Override declarations for it to build). Any chance I can get write-access to the repository (I'll email you when I make changes and you can freely back them out).

    yoav.yerushalmi at gmail.com
     
  18. Feb 21, 2009 #498 of 3464
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    All set. I already pushed your previous patch.

    However, I am concerned about the @Override issue, as I don't think you should be having a problem building. Can you give me an example @Override that is causing a problem? I'm afraid that if I don't fix it, I will end up having problems with JDK 1.5 again. (I'm a little surprised, because I now have JDK 1.5 as the JRE in eclipse, so I thought I would see any issues if they arose)

    Thanks
     
  19. Feb 21, 2009 #499 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok, so the two issues compiling are:

    1) There seems to be a need to specify the location for the bcel libraries in the ffmpeg-java/build.local. If I just run 'ant' on a clean source tree, I get:
    Code:
    javac:
        [mkdir] Created dir: /Users/yoav/src/foo/streambaby/ffmpeg-java/build/classes
        [javac] Compiling 24 source files to /Users/yoav/src/foo/streambaby/ffmpeg-java/build/classes
        [javac] /Users/yoav/src/foo/streambaby/ffmpeg-java/src/net/sf/ffmpeg_java/bcel/FFmpegClassLoader.java:5: package org.apache.bcel.classfile does not exist
        [javac] import org.apache.bcel.classfile.JavaClass;
        [javac]                                  ^
        [javac] /Users/yoav/src/foo/streambaby/ffmpeg-java/src/net/sf/ffmpeg_java/bcel/FFmpegClassLoader.java:8: package org.apache.bcel.util does not exist
        [javac] public class FFmpegClassLoader extends org.apache.bcel.util.ClassLoader {
        [javac]                                                            ^
        [javac] /Users/yoav/src/foo/streambaby/ffmpeg-java/src/net/sf/ffmpeg_java/bcel/FFmpegClassLoader.java:28: cannot find symbol
        [javac] symbol  : class JavaClass
        [javac] location: class net.sf.ffmpeg_java.bcel.FFmpegClassLoader
        [javac] 	protected JavaClass modifyClass(JavaClass clazz) {
        [javac]                                         ^
        [javac] /Users/yoav/src/foo/streambaby/ffmpeg-java/src/net/sf/ffmpeg_java/bcel/FFmpegClassLoader.java:28: cannot find symbol
        [javac] symbol  : class JavaClass
    
    ....
    
    (cutting it short since it's a craplot of errors). This is easily fixed with this patch:

    Code:
    *** ffmpeg-java/custom-build.xml	2009-02-20 20:35:21.000000000 -0800
    --- ../../streambaby/ffmpeg-java/custom-build.xml	2009-01-29 10:17:09.000000000 -0800
    ***************
    *** 56,61 ****
    --- 56,64 ----
      			<src path="${src}"/>
      			<classpath>
      				<pathelement path="lib/jna.jar" />
    +  				<pathelement location="build/classes"/>
    +  				<pathelement location="lib/jna.jar"/>
    +  				<pathelement location="../lib/bcel-5.2.jar"/>
      			</classpath>			
      		</javac>
      					
    
    Oh hey, with just that change I can now cleanly build the code out of svn, so you must have removed the extraneous @Override's :). I'll go do a completely clean re-sync .. yay (ok making diffs will be a lot easier now).
     
  20. Feb 21, 2009 #500 of 3464
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    So I have the code for the subtitle/font icon stuff, but I need to test it, and (sheepish look) I'm failing to figure out how to generate subtitles into an srt file. Are there simple mac instructions (vlc, mplayer, handbrake, whatnot)? The only thing I can find with handbrake puts the subtitles into the movie....

    Alternatively, is there somewhere I can download a test movie with an srt subtitle file?
     

Share This Page