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 26, 2009 #581 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    Personally I wouldn't vote for for having thumbnail previews next to movie titles. In HME (at least the Java implementation) it's hard enough to deallocate resources properly for simple items such as text, images, etc so I wouldn't want additional resource overhead and potential resource leaks associated with this. I always lean towards the KISS approach.
    The new Tivo Search HME application is an example to me of getting carried away with over-emphasis on graphics instead of raw functionality which just serves to slow everything down and doesn't add anything other than aesthetic value.
     
  2. Feb 26, 2009 #582 of 3415
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Yah, I don't really need DVD motion menu-like capabilities on the streambaby screens. Keep it simple, quick, and stick to the core functionality.
     
  3. Feb 26, 2009 #583 of 3415
    conan76

    conan76 New Member

    15
    0
    Jul 17, 2008
    Adelaide, SA
    Thanks for the excellent app! It really is brilliant.

    A couple of really minor suggestions:
    a) Can you make the 'right' button on the remote bring up the info on the shows during playback? This would make the behaviour the same as the standard tivo functionality. (as I said, really minor)
    b) Could the list of titles be changed to include the episode title or episode number? I'm using pytivo metadata, and my tv series are listing as just the series title - hence I can't tell which one is which.

    Thanks again!
     
  4. Feb 26, 2009 #584 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Oh dear, it looks like that saxon transformer problem wasn't fully resolved by setting CLASSPATH.
    sigh... Anyone have any suggestions for a consistent workaround?
     
  5. Feb 26, 2009 #585 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    This should be in there, although older versions did not have this and maybe you have older data cached? (When I say it should be in there it should display SERIESTITLE - EPISODETITLE in the selection screen)

    Try removing cache/meta.cache and re-running streambaby, then press ENTER while on the selection screen to re-cache all of the entries for that directory.
     
  6. Feb 26, 2009 #586 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Can you reproduce this on a semi-consistent basis (without the classpath modification)? I've gone from it happening sporadically but often last night, to not being able to reproduce it all tonight. (Fun.)

    If you can reproduce it relatively frequently, can you try running streambaby with the following:
    Code:
    java -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl  -jar jbin/streambaby.jar
    
    and see if it makes a difference?
     
  7. Feb 26, 2009 #587 of 3415
    kagacins

    kagacins New Member

    7
    0
    Feb 19, 2009
    Another general question - is it possible to maintain the stream as I'm navigating through other TiVo menus or even watching another show? Right now if I navigate away from the streaming file and come back, it has both lost everything in buffer as well as hasn't continued to load additional data for viewing (would be especially useful on HD files where at live speed buffering happens every 10 seconds or so). Thanks!!
     
  8. Feb 26, 2009 #588 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    No not possible. Use pyTivo to download to Tivo instead for that use model.
     
  9. Feb 26, 2009 #589 of 3415
    kagacins

    kagacins New Member

    7
    0
    Feb 19, 2009
    Ah that's a shame. I'm a big fan of pyTiVo, but it's one of these unfortunate situations where the transfer seems to happen for larger HD files much faster for some reason with Streambaby than pyTiVo, but not quite fast enough for live viewing. Oh well, sometimes you can't get the best of both worlds, but I certainly can't complain.
     
  10. Feb 26, 2009 #590 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    With the recent addition of native mp4 pushes in wmcbrine's pyTivo fork now you can get transfers to Tivo happening pretty quickly for HD mp4 files. Of course that won't help if you have mpeg2 HD files and don't want to spend time or quality hit to convert them to mp4.
     
  11. Feb 26, 2009 #591 of 3415
    kagacins

    kagacins New Member

    7
    0
    Feb 19, 2009
    Without straying too much from the intent of this specific forum thread, I fear I may be getting in over my head trying to incorporate the fork into my existing pyTiVo setup. Is there some straightforward documentation on how someone could do this, or at least some jumping off point where I can appropriately get up to speed? I found wmcbrine's site, but not really sure where to start.
     
  12. Feb 27, 2009 #592 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    And you can also try the SVN version I just compiled (and uploaded to SVN):
    http://streambaby.googlecode.com/files/streambaby-svn-r118.zip

    The above version doesn't use the javax.xml.transformerFactory, it uses the saxon version directly.
     
  13. Feb 27, 2009 #593 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Hmm.
    When I use the -D flag that you suggest, I got no improvement. When I download the R118 that you built, it works great as is. When I then use svn to check out the latest code (r119) it breaks the same way...

    So was 118 working a random fluke? Or did you do something in the build that isn't in the svn tree?

    edit: Looks like a random fluke. I tried it again, and poof error... Although I *am* curious. You said it wasn't using the transformfactory in javax, but the error makes it sound like it still is:

    Code:
    javax.xml.transform.TransformerFactoryConfigurationError: Provider net.sf.saxon.TransformerFactoryImpl not found
    	at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:109)
    	at com.unwiredappeal.tivo.metadata.BaseMetadataModule.getXsltTransformer(BaseMetadataModule.java:68)
    	at com.unwiredappeal.tivo.metadata.BaseMetadataModule.transform(BaseMetadataModule.java:107)
    	at com.unwiredappeal.tivo.metadata.StandardMetadataModule.handlePyTivo(StandardMetadataModule.java:79)
    	at com.unwiredappeal.tivo.metadata.StandardMetadataModule.handleTxtMetadata(StandardMetadataModule.java:160)
    	at com.unwiredappeal.tivo.metadata.StandardMetadataModule.setMetadata(StandardMetadataModule.java:249)
    	at com.unwiredappeal.tivo.modules.VideoModuleHelper.setMetadata(VideoModuleHelper.java:128)
    	at com.unwiredappeal.tivo.dir.DirEntry.getMetadata(DirEntry.java:243)
    	at com.unwiredappeal.tivo.streambaby.PlayScreen.render(PlayScreen.java:101)
    	at com.unwiredappeal.tivo.streambaby.PlayScreen.tick(PlayScreen.java:91)
    	at com.tivo.hme.sdk.util.Ticker.run(Ticker.java:143)
    
    And right now it seems to be very very random. GRRR :) Gonna see if I can figure anything useful out.
     
  14. Feb 27, 2009 #594 of 3415
    moyekj

    moyekj Well-Known Member

    11,151
    35
    Jan 23, 2006
    Mission...
    I don't know your current setup but you can grab wmcbrine's latest zip file and then just unzip it at top level of your pyTivo installation folder and let it override existing files.
    Personally I don't use pyTivo as a service - only run it when I want to use it - so I just unzip to a new folder, put pyTivo.conf in place and double click pyTivo.py to start in console mode. That way you can have multiple different installations in different places if you want to experiment.
     
  15. Feb 27, 2009 #595 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Line 68 referenced above in the SVN version is:
    Code:
                    TransformerFactory factory = net.sf.saxon.TransformerFactoryImpl.newInstance();         
    
    So it seems to me that it should be the saxon factory being called, not the factory in javax.xml.xxxxx. (But then again, I've never worked with the java XML api's before, so I'm really guessing as I go).

    It's really quite confusing because you would think a problem like this would at a minimum be consistent, and it doesn't seem to be.

    And just to note when this error should occur, when you select a movie with metadata and go to the "play" screen it always calls this code. It may not in the selection screen if the data is already cached, but it always regenerates for the playscreen. (But it does cache the transform per-run, so if the problem doesn't happen the first time you go to a playscreen that has metadata, my guess is it won't give any problems until you quit and restart)

    One other thing to try might be to download the following saxon package:
    http://www.saxonica.com/download/saxonsa9-1-0-5j.zip
    put all of the included libs (there are a lot more than I included, it's possible I need more than I thought, especially with Java1.5) in the lib directory and rebuild with Ant. (A rebuild is needed so it includes the jar's in the streambaby.jar classpath)

    I have to give up for the night, but I'll try again to reproduce it tomorrow night and play around some more. (It was really easy last night...)
     
  16. Feb 27, 2009 #596 of 3415
    conan76

    conan76 New Member

    15
    0
    Jul 17, 2008
    Adelaide, SA
    Thanks Kearygriffin. Tried clearing the cache and re-running streambaby. The SERIESTITLE - EPISODETITLE does display at the top of the information page when you select a video, which is great, but it doesn't show in the list of all the videos in the folder that you select from. Is this possible? Thanks again. :)
     
  17. Feb 27, 2009 #597 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok not gonna quote the whole mess.. But:

    I changed BaseMetaDataModule.java to use code that looked more like code I could find on the net for using saxon.. specifically using TransformerFactoryImpl instead of just TransformerFactory as the class that is instantiated.

    Since I made that change, the bug has not popped up again. I tried a *LOT* of times, so I'm crossing my fingers and hoping that's a fix.. Going to try a few more odd uses, but if it keeps working, I'll be checking it in...
     
  18. Feb 27, 2009 #598 of 3415
    conan76

    conan76 New Member

    15
    0
    Jul 17, 2008
    Adelaide, SA
    Okay, some more info on this issue. Turns out some of the series lists are working fine... but this one isn't for some reason. Compared XML and couldn't see any significant difference?!?

    As an example, the following shows up in folder lists as "A Racing Car Is Born" rather than "A Racing Car Is Born - Episode 1". It shows correctly on the info page as "A Racing Car Is Born - Episode 1". Can someone else try this and check if there is something strange with my XML?

    title : A Racing Car Is Born
    seriesTitle : A Racing Car Is Born
    episodeTitle : Episode 1
    episodeNumber : 1
    description : Building a Westfield sports car
    isEpisode : true
     
  19. Feb 27, 2009 #599 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Thanks Conan, that helped. Just gave the metadata you supplied a try, and ended up with the same problem as you-- Incorrect title in the selection screen.

    Looks like there is a bug in streambaby where (only for selection screen title purposes, there is no problem on the play screen) it ignores the last element in the metadata (so isEpisode in this case)

    I'll upload a fixed version later today.
     
  20. Feb 27, 2009 #600 of 3415
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    The Info button will do this.
     

Share This Page