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 24, 2009 #121 of 3410
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    Just starting to play with this...

    I think you forgot to compile for Java 1.5 with the .19 release. I'm getting errors trying to run under Java 1.5 on Solaris 10.
     
  2. Jan 24, 2009 #122 of 3410
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Thanks, your right... Let me see what I screwed up.
     
  3. Jan 24, 2009 #123 of 3410
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    And for the record, Streambaby does work on Solaris 10 Sparc. I consider this to be a Java reference system. :D

    The default for my system is Java 1.5 although I could set the environment variables for 1.6 I suppose. But my main server system is a Mac Leopard Server (an ancient Powermac dual-450 Mhz). The Solaris machine is an Ultra 60 dual 450 Mhz (also old as Methusela). For some reason, I can't get Streambaby to work on the Mac under Galleon (tivostream did). I need to fiddle with it some more. I haven't tried Streambaby on the Mac in a standalone manner.

    BTW, the reason some of us need Java 1.5 compatibility is that Apple only made Java 1.6 available for 64-bit Intel Macs. So anyone with 32-bit Intel or any PowerPC machines are stuck with 1.5.
     
  4. Jan 24, 2009 #124 of 3410
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I think I fixed the Java 1.5 issue, and put up the new version 0.19a.

    Yoav-- I'm not sure, but this very well may have been the issue with why your builds work with the native libraries and mine did not. I was looking at the custom-build.xml for ffmpeg-java, and I don't think ffmpeg-java ever got built for 1.5. It's possible that previous versions of streambaby where "catching" this exception and just not loading the native libraries. (Not 100% sure about this, but it's a better theory than I had before). If this is the case, I truly apologize for all of the debugging you've done over the last couple of days.
     
  5. Jan 24, 2009 #125 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Hey don't apologize. I know we're pushing you for releases really fast, and things slip.. that's why we're here to help test :).

    Anyways, I just built pyTivoX using your pre-built streambaby distribution, and it loads the dynamic libs. I'll upload the the beta in a bit... just gonna make sure it streams fine first :)


    edit : Ok the new pyTivoX is up. Hopefully everything is working smoothly.
     
  6. Jan 24, 2009 #126 of 3410
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    Here's another 1.9a error...not sure if this is Unix specific or not.

    $ ./streambaby
    Initializing...
    01/24/09 24:21:03 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
    01/24/09 24:21:04 Listener: added factory
    01/24/09 24:21:04 Main: streambaby ready & listening.
     
  7. Jan 24, 2009 #127 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Some quick questions:
    I notice the transcode command specifies 2-channel for ffmpeg. Wouldn't 6-channel make more sense? (what happens to a movie that is 2-channel if it's transcoded into 6?).

    The default jpeg compression for the images is 10%. At least on my tivo the ff images look barely discernible -- very blocky. What is the argument against raising it to say 30%? 50%? (is it cpu on host computer, or bandwidth to tivo that's the problem?).
     
  8. Jan 24, 2009 #128 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I think that's a problem on your end (I just looked at mine again and it's definitely loading). Keep in mind that even if it fails to load the native libraries things will run fine.

    Do you have libavutil.XX.so in /usr/lib? or /usr/local/lib or somewhere in your LD_LIBRARY_PATH? You say 'unix' but not which exact OS, so it's hard to be more specific... but it's looking for the four shared libs:
    libavutil, libavformat, libavcodec, and libswscale
    That error is printed if it can't find them or can't load them, do you know where they are on your system?
     
  9. Jan 24, 2009 #129 of 3410
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    That's probably specific to Solaris-- It means it could not loaded the ffmpeg native libraries, and will spawn ffmpeg as a process instead. (You lose certain functionality in this case)

    The error message never used to be shown (it was supposed to, but wasn't).

    Do you know if you have libavcodec, libavformat, and libavutil (the shared library portion of ffmpeg) installed on your machine? If so it is supposed to load them, but I really don't know enough about Solaris to guide you much more... (or to even know if getting to them to load is going to be possible)
     
  10. Jan 24, 2009 #130 of 3410
    Sevenfeet

    Sevenfeet Gentle Giant

    164
    0
    Jun 24, 2000
    Nashville, TN
    I don't have those libraries installed elsewhere. I remember it being mentioned on Linux so that should have been a red flag. Curiously, this error didn't appear on .18 which is what made me take notice.

    I would think that streambaby would load them in Solaris if it could find the files in an available path. Question..if I run this on a Mac, where is it expecting to find these libraries?
     
  11. Jan 24, 2009 #131 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    It would only find it if the path was in the global shared library search path, or if you specifically told it where to find them.

    As for the mac: it isn't expecting to find them anywhere. Macs don't ship with ffmpeg. You have to get ffmpeg using one of several ways: If you used darwinports/macports I believe it puts shared libs in /opt/local/lib. If you used fink it puts them in /sw/lib. IF you built it yourself it puts it in /usr/local/lib. If you're using pyTivoX, it's in /Applications/pyTivoX.app/Contents/Resources/ .
     
  12. Jan 24, 2009 #132 of 3410
    bzo

    bzo New Member

    12
    0
    Jun 17, 2002
    ok, I figured out why AVI files recorded from a digital camera were not working.

    1) 8 bit pcm audio seems to be a common audio format for digital camera videos. Unfortunately 8 bit resampling is broken in ffmpeg right now, so conversion to ac3 fails. Changing the ffmpeg option to turn off audio with -an allows those videos to play.

    2) Some were recorded at 15fps mjpeg, which ffmpeg says is invalid for conversion mpeg2. Changing the ffmpeg options to force 25fps or other valid rate makes them playable.
     
  13. Jan 24, 2009 #133 of 3410
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    The answer to both of those questions is I don't know :) I've definitely played with higher quality jpegs (20-30%) and didn't have any issues. It will make the cache files larger. I really was just trying to play it safe, and was mostly concerned about stressing the tivo. I'll probably leave the current default as it is for a while, but I'll change my personal INI to start using higher quality, and if others do the same and have no problems, I'll try to up it in the future.

    As for the transcode, again, I was just playing it safe (and my rear speakers haven't been hooked up in a couple of years, so it made no difference to me) Again, I'll change my personal INI and play around and see what happens with various files.

    I forgot about the frame rate issue. I'll try to take care of that in the next version. Unless it becomes a huge isssue, probably won't do anything about the 8-bit pcm issue. I assume it will get fixed in ffmpeg at some point and it will start working again.
     
  14. Jan 24, 2009 #134 of 3410
    ajayabb

    ajayabb Member

    429
    0
    Jan 11, 2007
    Moorestown NJ

    BTW The new update seems to have fixed my original problems. Awesome. Now to get it running through Galleon.
     
  15. Jan 24, 2009 #135 of 3410
    ajayabb

    ajayabb Member

    429
    0
    Jan 11, 2007
    Moorestown NJ
    I noticed that my Game 5 World Series video doesnt show up. It is a .tivo file in HD and is 12GB
     
  16. Jan 24, 2009 #136 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I didn't think streambaby can stream tivo files... (and unless tivo will accept a .tivo file streamed out, it shouldn't).

    But if you want to try it anyways, you will need to add .tivo to the list of valid file extensions in streambaby.ini (From the wiki):
    Code:
    extensions= (default:mp4,mpeg,vob,mpg,mpeg2,mp2,avi,wmv,asf)
     
  17. Jan 24, 2009 #137 of 3410
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    It is possible to stream .tivo files natively as discovered by davidblackledge:
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=416647
    So Keary could add support for it (currently it's not there but I was able to add it easily to tivostream and could be easily added to streambaby).
    However, the preview and random access to anywhere in the file are probably not possible to implement so you are better off decrypting to .mpg to get full functionality anyway.
     
  18. Jan 24, 2009 #138 of 3410
    dermanj

    dermanj New Member

    9
    0
    Nov 10, 2006
    Please forgive me if this has already been addressed or if it's a stupid question. I have searched the forum and don't see anyone else mention this...

    I just now downloaded and fired up streambaby, simply adding a directory location to the ini file -- no other changes. It seems to work great, except I'm not getting AC3 audio. Same content with pyTivo delivers AC3, but with streambaby, the audio is non-AC3.

    Anyone know what I'm doing wrong?
     
  19. Jan 24, 2009 #139 of 3410
    ajayabb

    ajayabb Member

    429
    0
    Jan 11, 2007
    Moorestown NJ
    Has anyone gotten this to run with Galleon and Windows. I tried windracer's suggestions but got an error on the tivo side
     
  20. Jan 24, 2009 #140 of 3410
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    streambaby will stream your original data only if it decides that it's a fully valid stream that tivo will play (not sure what the details are). Otherwise, it launches ffmpeg and converts it to an mpeg-2 stream. Right now the default conversion uses a 2-channel encoding. The author is looking into changing it to a 6-channel encoding default as we speak :).

    Edit: I just looked at the default, and it's apparently using "-acodec ac3 -ac 2 -ab 192k -vcodec mpeg2video -f vob -sameq -async 1 -v 0", which sounds like it's ac-3 2-channel. What is your audio turning into?
     

Share This Page