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. Mar 15, 2009 #721 of 3415
    krismast

    krismast New Member

    7
    0
    Dec 10, 2008
    yes this is windows. I dont really know if im not doing something or not. this is what my ini file says:
    #
    # ./streambaby --help for more configuration file options
    #

    #dir.1=C:\Documents and Settings\Kristopher\My Documents\My Videos
    #dir.1.name=Someones videos
    #dir.2=/media/disk
    #dir.2.name=External Drive
    # Ip address to bind to
    # most people don't need to change this.
    #ip=192.168.1.37
    # port to use
    #port=7290
     
  2. Mar 15, 2009 #722 of 3415
    rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    SImple fix, you just need to remove the '#' in front of the dir.1 and dir.1.name lines. The '#' at the front means to ignore that line.

    Hope that helps,

    Rick
     
  3. Mar 15, 2009 #723 of 3415
    ajayabb

    ajayabb Member

    429
    0
    Jan 11, 2007
    Moorestown NJ
    remove the "#" for your port and directory . The commands without the "#" are those that get recognized
     
  4. Mar 15, 2009 #724 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Ok, so I am pretty much stuck on this one. It's pretty clear that streambaby doesn't like the meta atom, but I can't find any kind of reference that might explain why.

    It looks like I may be able to work around this issue (the debug output is slightly broken so it's a little tough to tell, Ill fix the output in the next release) by only parsing the Meta atom if it is inside of the udta atom. (It looks like the one that streambaby doesn't understand is at a different level).

    However, I am a little hesitant to make that change without understanding a bit more about exactly what is causing it. I'm inclined to say that it is just a bad MOV file. (Looking back you mentioned you had one that caused ffmpeg to crash, is this that file?)
     
  5. Mar 15, 2009 #725 of 3415
    cahoon

    cahoon New Member

    19
    0
    Nov 1, 2007
    I'm getting an incompatible video stream message when playing mp4's with the mp4module.interleave=false set in the ini file.

    This started happening after revision 103 due to a change in BaseVideoHandlerModule.java

    Code:
    	public boolean canStream(URI uri, VideoInformation vinfo) {
    		return (vinfo.getAudioBps() == 44100 || vinfo.getAudioBps() == 48000) && isFormatStreamable(vinfo));
    	}
    
    The additional checks for getAudioBps() always return 0, so this method will always return false. Looks like the audioBps field in VideoInformation.java is never set.

    I removed the getAudioBps() checks, and things started working again. Though, that's probably not the best solution, but it was easier than changing the necessary files to get this information from the parsed Mp4 files.
     
  6. Mar 15, 2009 #726 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    If Im thinking about this correctly, this should only happen in the case where ffmpeg is not used to gather the video information, and rather the Mp4 module is being used to gather the video information. Although this may have used to work, it's not a case that I test (and probably won't really support). Can you tell from the log file why ffmpeg (either the exe or the native library support) is not working?
     
  7. Mar 16, 2009 #727 of 3415
    cahoon

    cahoon New Member

    19
    0
    Nov 1, 2007
    Ah, Yes. You're right. I haven't been using ffmpeg lately. For some reason, I didn't think ffmpeg was used anymore, so I was ignoring the error message.

    Thanks for the help!
     
  8. Mar 16, 2009 #728 of 3415
    ufo4sale

    ufo4sale Active Member

    3,934
    3
    Apr 21, 2001
    Plainview...
    Can I have this and TiVo Desktop running at the same time?
     
  9. Mar 16, 2009 #729 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    yes.
     
  10. Mar 16, 2009 #730 of 3415
    ufo4sale

    ufo4sale Active Member

    3,934
    3
    Apr 21, 2001
    Plainview...
    What does it mean when it says failed to open stream? How do I fix this?
     
  11. Mar 16, 2009 #731 of 3415
    conan76

    conan76 New Member

    15
    0
    Jul 17, 2008
    Adelaide, SA
    Couple of quick questions (or feature requests):
    a) Is it possible to reduce the initial buffer time? I have a wired connection and am pretty sure that it could safely be reduced... or does streambaby wait until ??mb have been buffered? That would be a good way to do it.
    b) Can you allow playback of entire folders that have subfolders? When I try to do this I get an error message... which is a pity due to the directory structures for our home videos. Eg, my wife wants to play all home videos in the "2009" directory... rather than videos for just one directory under "2009"

    Thanks guys. BTW, is StreamBaby an official Google app, or something that has been created by an enthusiastic individual? Either way it's awesome, thanks.
     
  12. Mar 16, 2009 #732 of 3415
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    It's possible (you can see that it's done in the YouTube app), but we don't know how (the API for video streaming is undocumented).

    Oh dear. No, code.google.com is just a free hosting site, like SourceForge. I hope no one else is thinking that the programs there are Google products. (Of course a few are, because they also use it themselves. But the vast majority, no.)
     
  13. Mar 16, 2009 #733 of 3415
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Ok I can't send it using PyTivo either. Is there an easy way to convert this file without losing video quality?
    It errors - "Transferring prohibited by the Copyright Holder"
     
  14. Mar 16, 2009 #734 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    1. What type of file are you trying to send? (avi/mp4/mkv/etc)
    2. Does this happen for all of the files you have tried
    3. What platform are you running on (windows/mac/linux)

    Failed to open stream is a somewhat generic error that happens for a bunch of different reasons. (but means in general it had trouble opening the file for some reason, which more than likely means it didn't understand the format, not that it physically couldn't read it)
     
  15. Mar 16, 2009 #735 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Is the file by any chance a movie you bought in the itunes store?

    Those files are 'protected' by DRM (where protected means they won't allow you to do anything with the file other than viewing it on your computer or your ipod).
     
  16. Mar 16, 2009 #736 of 3415
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Nope - show downloaded from ted torrent. The AVI's like I mentioned play fine and transfer fine. The MKVs wont' play or transfer so if I can convert them I am fine with that.

    Here is the MKV File:

    General
    Complete name : Numb3rs.S05E12.720p.HDTV.X264-DIMENSION.mkv
    Format : Matroska
    File size : 1.09 GiB
    Duration : 41mn 0s
    Overall bit rate : 3 813 Kbps
    Encoded date : UTC 2009-01-17 02:53:29
    Writing application : mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Nov 7 2008 17:24:23
    Writing library : libebml v0.7.8 + libmatroska v0.8.1

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Muxing mode : Container profile=Unknown@4.1
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 40mn 58s
    Bit rate : 3 333 Kbps
    Nominal bit rate : 3 490 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16/9
    Frame rate : 23.976 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.151
    Writing library : x264 core 65 r1057 5f8a149
    Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=3490 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
    Language : English

    Audio
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : A_AC3
    Duration : 41mn 0s
    Bit rate mode : Constant
    Bit rate : 320 Kbps
    Channel(s) : 2 channels
    Channel positions : L R
    Sampling rate : 48.0 KHz


    Here is the AVI File:

    General
    Complete name : Rules.of.Engagement.S03E02.HDTV.XviD-LOL.[VTV].avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 174 MiB
    Duration : 21mn 6s
    Overall bit rate : 1 155 Kbps
    Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
    Writing library : VirtualDubMod build 2540/release

    Video
    Format : MPEG-4 Visual
    Format profile : Streaming Video@L1
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 21mn 6s
    Bit rate : 1 009 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16/9
    Frame rate : 23.976 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.192
    Stream size : 152 MiB (87%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)

    Audio
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 21mn 6s
    Bit rate mode : Variable
    Bit rate : 133 Kbps
    Nominal bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 20.1 MiB (12%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Interleave, preload duration : 372 ms
    Writing library : LAME3.90.
    Encoding settings : ABR
     
  17. Mar 16, 2009 #737 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    well, what happens when you run ffmpeg on one of the broken files?:
    Code:
    ffmpeg -i (your mkv file) -acodec ac3 -vcodec mpeg2video -f vob -async 1 -r 23.976 -v 0  -sameq -ab 384k -ar 48000 tcp://127.0.0.1:8500
    
    (hoping it might print out something interesting)
     
  18. Mar 16, 2009 #738 of 3415
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    From looking at the output I think it's probably as simple as not being able to keep up with the HD MKV. It's starting as a HD h264 video and getting transcoded to a HD MPEG2 before sending off to TiVo, which is going to take double the bitrate (I'm guessing, but the original is ~3400kbs so the MPEG2 may end up around ~7000kbs). This may be just to much for the either the CPU or the TiVo handle. (Not sure which, could be either)

    I looked back in previous posts, but am not sure if I saw this suggested (or what the results) were. I would simply try to select a different quality in streambaby before playing. I'd try 2000kbs just to see what happens, and move up from there.

    (note that the AVI is SD, a lower bitrate, and a lower quality codec at that bitrate so when it gets transcoded it would not end up near the 7000kbs mark)
     
  19. Mar 16, 2009 #739 of 3415
    Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    I don't know if it's just my set up but I play videos that are 16 Mbps just fine. It usually "stutters" a bit when it first starts but continues fine until the next rebuffering. Of course these are files that are not being transcoded (mp4's).
     
  20. Mar 16, 2009 #740 of 3415
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Playing is a LOT easier on the CPU than encoding.

    There is a 'quality' setting that you can use which lets you control the outgoing bitrate. Set it to something like 1.5Mbps and see if it works better?
     

Share This Page