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. Dec 5, 2009 #1761 of 3450
    dm_

    dm_ New Member

    19
    0
    Nov 4, 2009
    I thought the current theory was that the streaming support has simply been removed from the current .au/.nz firmware? Since there's no official apps which use it (no youtube streaming here) it would seem to be a bit difficult to find something to reverse-engineer. (The CASPA stuff isn't streamed, its downloaded to the hard drive, I'd assume via the 'push' mechanism).
     
  2. Dec 5, 2009 #1762 of 3450
    bjarne

    bjarne New Member

    19
    0
    Dec 20, 2001
    Sunnyvale, CA
    I have been playing around with streambaby/pyTivoX on my iMac and TiVo HD, great applications, thank you.

    My ultimate goal is to run streambaby on my DNS-321 which is running linux, but has a fairly weak processor, so I want to encode my videos in a format that does not require transcoding.

    My testing has been to create m2ts files from my blue-ray disc and then enconding to mp4 with handbrake using H.264 (x264) and aac audio. I have endoded with targets between 1-9 mbps. Whatever bit rate I use I get blocking in the video on the TiVo when playing at the native bit rate. If I choose another bit rate for playback, it plays back perfectly, but of course is transcoding on the iMac.

    Is there a way to encode with handbrake to a format the TiVo HD is happy with directly? The answer might be somewhere here in this thread, but I was not able to find it :(
     
  3. Dec 5, 2009 #1763 of 3450
    PWF

    PWF New Member

    6
    0
    Mar 17, 2008
    I've been using Handbrake to convert all my video. The latest version works better than the previous ones.
     
  4. Dec 5, 2009 #1764 of 3450
    jkates

    jkates New Member

    18
    0
    Jun 11, 2002

    What options are you using to encode?
    This is what I am currently using and I don't think that I have the correct settings.
    HandBrakeCLI -v -i /dev/sr1 -L -o outfile.mp4 -e x264 -f mp4 -w 480 -Y 320 -b 1500 -2 -9 -T -x subq=6:frameref=6:me=umh:threads=auto:bframes=3:weight-b:qcomp=0.8:partitions=all:b-pyramid:mixed-refs:trellis=1:no-fast-pskip:nr=100 -E aac+ac3 -B 160 -R 48 -m

    Thanks -Jason​
     
  5. Dec 5, 2009 #1765 of 3450
    BrianVeg

    BrianVeg New Member

    6
    0
    Dec 3, 2007
    Thank you for the tip. Tried it and no luck.

    Also just tried it in XP Compatibility mode - still no luck.

    Yes I am running the latest version
     
  6. Dec 6, 2009 #1766 of 3450
    bsmith1051

    bsmith1051 Member

    102
    0
    Nov 15, 2009
    Manually transcoded material plays fine, yes. But it sounded like you(?) were saying that you cannot expect on-the-fly transcoding to work properly, which I thought was a major goal of this software.

    In other words, if I have a video that is otherwise compatible but is stored in an MKV container, Streambaby doesn't seem to be able to convert it on-the-fly to a proper playable video on my S3. If, however, I manually convert it from an MKV to an MP4, then it'll stream fine. But I thought one of the goals of Streambaby was to do that conversion automatically and as-needed?
     
  7. Dec 6, 2009 #1767 of 3450
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    I use on the fly transcoding all the time, however my HTPC is only transcoding SD material or at best DVD quality and bit rates under 8k to ensure that the TiVo can keep up.

    One of the problems is that HD MPG streams at a bitrate that the TiVo may not be able to process if it is also recording shows on other channels as it's CPU is relatively weak. Increasing your CPU on your HTPC will not solve this as the limit is on the TiVo side to process the MPG stream and encode that into the TiVo format.

    So I would not recommend transcoding HD material on the fly and instead reconvert those into an MP4 container that can be send to the TiVo easily in real time.
     
  8. Dec 6, 2009 #1768 of 3450
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    No, you misunderstood. The Tivo will accept different types of content containers. Each container has constraints on what audio and video it will carry.

    The first container is the VOB (MPEG2 Program Stream). If you send a VOB to the Tivo, it will remux in the Tivo on its CPU before storing on the Tivo's hard drive. We cannot control this and it slows down the max transfer rate the Tivo will accept compared to other containers. It does playback smoothly and in realtime if you can feed the Tivo "fast enough". "Fast enough" is constrained by your computer's CPU, but the max transfer rate (which allows fast enough for realtime) is capped by the Tivo's internal process. The VOB container is what we use for transcoding most formats for Tivo compatibility. That is your MKV is being remuxed or transcoded (depends on the video/audio codecs) to the VOB container. When transcoding, the video is being converted to MPEG2 on the fly. If that on the fly conversion is too slow then you end up with non-realtime playback. But if you have a fast enough CPU in your computer, even h264 HD transcoding to MPEG2 can be done in realtime (I do it with pyTivo using an Intel Core2Quad Q6600.)

    With the MP4 container, the Tivo seems to accept the file and store it without remuxing internally similar to what it does for MRV transfers between Tivos. This raises the maximum transfer rate imposed by the Tivo to near MRV transfer rates. However, neither streambaby nor pyTivo will transcode or remux to MP4 on the fly. The MP4 has certain requirements for the whole file to be done remuxing/transcoding before it can be start the transfer to the Tivo with current software. So even if you have an MKV with h264 video and AC3 audio, it cannot be remuxed to MP4 on the fly for streaming to the Tivo with current software. The other advantage of the MP4 container is that it can carry h264 video which is more compact than MPEG2 video. So if you happen to have a complete MP4 file, streambaby is happy to send that at the fastest transfer rate the Tivo will accept.
     
  9. Dec 6, 2009 #1769 of 3450
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    I believe this is inaccurate. I have a Tivo S3 (the THX one that came before the Tivo HD) and I'm currently recording a football game on CBS in HD and golf on the second tuner in HD. I'm also sending a 720p MKV file that is transcoding with ffmpeg from my Core2Quad Q6600 box using pyTivo.

    The pyTivo transfer is occurring faster than realtime. The video is 24 fps and the transcode (which feeds into a network buffer and will be slowed if the Tivo isn't consuming the network transfer fast enough) is running around 52-54 fps.

    So having a fast enough CPU on your HTPC DOES make a difference. The max transfer rate at which the Tivo will accept a VOB even when recording HD on both tuners does allow realtime HD video playback during transfer.

    If you don't have a fast enough CPU, then by all means try to convert to MP4 so that the transfer can avoid transcoding.
     
  10. Dec 6, 2009 #1770 of 3450
    bjarne

    bjarne New Member

    19
    0
    Dec 20, 2001
    Sunnyvale, CA
    Just to close this, if anybody is interested. I found my problem, the CLI version of HandBrake generated good mp4's, but the GUI version gave my the breakup video. Somehow I had gotten a "level=30" into the x264 option string and that caused my problems, I can now encode great mp4 with no need to transcode on-the-fly.
    Thank you again for a great application :)
     
  11. Dec 6, 2009 #1771 of 3450
    dbsams

    dbsams New Member

    6
    0
    Nov 27, 2009
    I have about 600 avi files from my Sony MiniDV Camcorder. These files hang when I leave the quality at "Same", but they look beautiful if I change it to High 5000. I know from reading this forces the file to be transcoded. The problem is I want to play multiple files forcing the transcode. I have my home videos split up by scenes, but I want to be able to watch multiple scenes. For obvious reasons, I don't want to consume the time required to downgrade all of these files. I just want an "ini" setting or the like that will force these files to be transcoded to the high setting on the fly. I'm open to batching all of the files to a new format, but everything I've tried so far doesn't look near as good as just kicking in the transcode by changing the quality setting. Is there some way to program the ini file force it to transcode these files.

    I've been working all weekend on this and I'm just plain frustrated.
     
  12. Dec 7, 2009 #1772 of 3450
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    This probably means that the original videos do not show a bitrate from the FFMPEG/MediaInfo that Streambaby uses. So when you select a bitrate it works, but if you use the "default" of same it will hang.

    You can easily use a btach script to remux these videos into either a new AVI or another container and it should fix the AVI headers to include the bitrate.

    If you know how to use MediaInfo or FFMPEG to get the media info please post that in a response and we should be able to tell exactly what the problem is with these AVIs.

    Rick
     
  13. Dec 7, 2009 #1773 of 3450
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    The TiVo S3 has a faster more powerful CPU that the TiVo HD that I am using.

    Also your HTPC CPU does make a difference if it is not fast enough to transcode the video. The response that I was originally replying to stated his HTPC CPU maxed out at 40% which means that it was not a HTPC CPU bounding issue but a transfer rate/TiVo CPU Issue.

    I also can stream HD MPEGs to my TiVo but it depends on the bitrate like I stated on my post.. I only recommended to transocde SD or 480p material, not to never transcode that. :)

    Rick
     
  14. Dec 7, 2009 #1774 of 3450
    net114

    net114 Tivolitic Guru

    860
    0
    Dec 29, 2000
    florida
    Look at my post here:

    http://www.tivocommunity.com/tivo-vb/showthread.php?p=7572855&highlight=java#post7572855

    The simplest way is to put a line between the "pushd" and "java" lines that tells the script to look in your java directory.
     
  15. Dec 7, 2009 #1775 of 3450
    dbsams

    dbsams New Member

    6
    0
    Nov 27, 2009
    Rick, thanks for your help. Here's the MediaInfo. Just to be clear, it is not hanging, it is playing faster than buffering which causes it to hang/pause until you hit play to start it again...

    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 200 MiB
    Duration : 55s 88ms
    Overall bit rate : 30.5 Mbps
    Recorded date : 2002-01-27 14:00:00

    Video
    ID : 0
    Format : Digital Video
    Codec ID : dvsd
    Codec ID/Hint : Sony
    Duration : 55s 88ms
    Bit rate : 28.8 Mbps
    Width : 720 pixels
    Height : 480 pixels
    Display aspect ratio : 1.500
    Original display aspect ratio : 4:3
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Standard : NTSC
    Resolution : 24 bits
    Colorimetry : 4:1:1
    Scan type : Interlaced
    Bits/(Pixel*Frame) : 2.778
    Stream size : 189 MiB (94%)
    Encoding settings : ae mode=full automatic / wb mode=automatic / white balance= / fcm=manual focus

    Audio
    Format : PCM
    Format settings, Endianness : Little
    Format settings, Sign : Unsigned
    Codec ID : 1
    Codec ID/Hint : Microsoft
    Duration : 55s 88ms
    Bit rate mode : Constant
    Bit rate : 1 536 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 10.1 MiB (5%)
    Interleave, duration : 33 ms (1.00 video frame)
    Interleave, preload duration : 33 ms
     
  16. Dec 7, 2009 #1776 of 3450
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I just had a chance to look through the code and there is a parameter you can add to the INI file that may do what you are looking for.

    quality.default=7

    If I am reading the code correctly and this feature actually works it should set the default quality to "highest" which (assuming all other quality related values are at their defaults) is equivalent to the 5000kbs you mentioned in your post.
    The valid values for this parameter are 1-7 (1=lowest, 7=highest)

    It's probably been a long time (if ever) since this particular feature was tested...

    I believe that if the kbps of the file you are trying to stream is already < 5000 and in a format the TiVo understands it will not transcode the file (so it will show up on the playscreen as "same"), but any file with a kbps > 5000 will default to transcoding to a lower kbps.

    Good luck
     
  17. Dec 8, 2009 #1777 of 3450
    bsmith1051

    bsmith1051 Member

    102
    0
    Nov 15, 2009
    Are you sure about this? My test file was an MKV container with Tivo-compliant 720p h.264 video and non-compliant DTS. Streambaby was able to convert it on-the-fly but not successfully (video stutter). The same file, once converted to MP4 and with the audo re-encoded, streamed just fine. My question is: was the problem the container, the audio re-encoding, or a combination of both?

    I suppose I should test something with both audio and video that are compliant but with just the wrong container, see if that streams properly. If the only 'problem' is the container, does that force Streambaby to transcode to MPEG2? I could certainly see that causing a problem.

    P.S. Is there a way to configure Streambaby to show more information about a file, i.e., whether it will stream or need transcoding? By default all I see in the interface is Quality:Same/Highest(8Mbps) etc but I don't know what this means in regards to streaming vs transcoding. My test file was marked 'Same' even though I know it wasn't (audio needed transcoding).
     
  18. Dec 8, 2009 #1778 of 3450
    rfryar

    rfryar My Media, My Way

    224
    0
    Feb 15, 2008
    Cottage...
    At the moment StreamBaby only transcodes to an MPG-2 Program Stream. Perhaps down the road a way to just change containers or remux compliant streams may be possible, but that would be a question for kearygriffin to answer.

    Yes this is exactly the case. If the container is not MP4 or MPG it does not even look at the codecs and bitrates.

    You can tell when a MP4 file is compliant as it will say SAME but with the bitrate shown as well. If it just shows SAME then it is going to be transcoding the video to Mpeg2.

    Rick
     
  19. Dec 9, 2009 #1779 of 3450
    greggonzo1

    greggonzo1 New Member

    2
    0
    Aug 15, 2007
    Hello, I have been unable to find a resolution to this issue, although it seems that many have had it and been able to now stream/push.

    I have windows 7 32 bit, tivo series 2 DVR that I purchased earlier in the year.
    I have pytivo and it has worked well up until a few days ago. It has since been unable to completly transfer an entire to movie to my tivo. it stops at the same spot every time, I have watched the movie on my pc with no issue, it is in avi files and I have watched several avi's transfered to my tivo no issue.

    I thought Id try Streambaby r262, to see if that would work better. My issue is now
    installed streambaby I can see it from the tivo along with the movies. but the console reads the error

    ERROR code =1 Message: can't create rsrc. unsupported stream type /streambaby/e568adfa-bc0e-44e5-b45b-6b98a62a99cc.stream

    and the screen on the tivo just states "please wait"....

    any ideas?
     
  20. Dec 9, 2009 #1780 of 3450
    MrGolden

    MrGolden New Member

    25
    0
    May 18, 2009
    I'm fairly new to Streambaby, but I'd bet "Series 2" is your problem... :)
     

Share This Page