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 6, 2010 #1861 of 3405
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    @Yog: Not sure if you are transcoding your own files or not. In my case, my wife and I always have the captions on, so I just hardcode the subs/captions. Is that something that would work for you?
     
  2. Jan 6, 2010 #1862 of 3405
    kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    I'd be curious if the subtitles worked when pushed with pyTivo instead of Streambaby. I think streambaby probably does a bunch of manipulations on the mp4 even when pushing vs streaming that pyTivo won't do.

    I have been thinking about adding some more subtitle capabilities to streambaby to:
    1) Support more formats
    2) Support embedded subtitles from an MP4 container

    Not sure when I'll get to it however.
     
  3. Jan 6, 2010 #1863 of 3405
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    I don't have pyTivo installed, since streambaby looked like it did everything I wanted and it worked well for me. I could give it a try.

    If SB does anything to the mp4s, it's not very CPU intensive, since it just seemed to push it with near idle CPU. What sort of things do you do? Manipulate the container and streams to be more palatable to the Tivo or something? Honestly, I'm not even sure what else is out there, since I'm pretty new to the series 3/HD.

    I deleted the file I created with the added subbies. But it wouldn't be difficult to create it again and try it with pyTivo. I think I'd also have to install Python on the XP box I do all this on though. I doubt it could use Cygwin Python.

    Meanwhile, I've managed to successfully find a way to repackage MKVs into mp4s without needing to transcode. Well actually I had to transcode the audio from DTS to AC3, since AFAIK Tivo doesn't do DTS natively. ffmpeg was only used to transcode the DTS audio to AC3 while extracting that stream into a file, which was then repackaged with the extracted video with mp4box into an mp4 file. Way faster on my relatively slow hardware (I really need to build a core i7 box or something). This streamed nicely with SB to the tivo without transcoding.
     
  4. Jan 6, 2010 #1864 of 3405
    superflysocal

    superflysocal New Member

    70
    0
    Nov 26, 2009
    So can megui be used as a one step process or do i have to demux the movie first, then convert 6 ch aac to 2 channel aac and remux? Is there anything that will automate this?

    Can I use kktmg for files other than .tivo files to convert mp4 with 6 channel aac to 2 channel aac w/o transcoding video?

    I would love a program or script that will take a mp4 with 6 ch aac and convert it to mp4 with 2 ch aac w/o transcoding video.
     
  5. Jan 6, 2010 #1865 of 3405
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    I'm not sure about the others you mention, but there's a program for Xbox360 users called XenonMKV which takes MKVs with multi chan audio can converts them to mp4s with stereo AAC so they play on the 360. It does this by transcoding only the audio and repackaging it. This would obviously work for the Tivo too.

    For the Tivo, I've just been doing this "by hand" using ffmpeg, mkvextract, and mp4box. The procedure I recently used for doing MKV,h.264,DTS -> MP4,h.264,AC3 was:

    1. ffmpeg -y -vn -i movie.mkv -acodec ac3 -ab 256k movie.ac3 (extract and transcode the DTS audio to AC3 ... I used 256k for bitrate since it was roughly DTS_bitrate/6)
    2. mkvextract.exe tracks movie.mkv 1:movie.h264 (extract video from mkv, which was in track/stream #1, which it almost always is. If it isn't, substitute the proper track # for "1:".)
    3. MP4Box.exe -add movie.h264 -add movie.ac3 -fps 23.976 movie.mp4 (combine the extracted video and extracted/transcoded audio into a new mp4 container. The -fps argument is important for the audio to be properly synched, because mp4box seems to make bad assumptions about the frame rate. Get the FPS to plug in here from the original video using a tool like mediainfo, ffmpeg, mkvinfo, etc etc. The more precise the better.)

    This is obviously much faster than transcoding the entire video/audio. And if it were say an MKV with AC3 audio, you wouldn't even need to transcode anything, just extract with mkvextract and recombine with mp4box into an mp4 container.

    BTW, I'm doing this on my windows game box, which happens to have the fastest CPU. I'm using the mkvmerge and mp4box which comes with XenonMKV, and the ffmpeg which comes with Streambaby. :p
     
  6. Jan 6, 2010 #1866 of 3405
    superflysocal

    superflysocal New Member

    70
    0
    Nov 26, 2009
    thanks for this, except most of my movies are mp4 already, just with multichannel aac.
     
  7. Jan 6, 2010 #1867 of 3405
    realgtom

    realgtom TiVo Addict

    14
    0
    Jan 6, 2010
    Grand...
    OK...new user of streambaby...I have 5 TiVo Series3s/HDs scattered around the house. About to move streambaby from an old WHS to a new media center pc running Windows7 x64. This thread will be really helpful.

    I first want to thank Keary and any others for this piece of art. It is awesome. I am in the process of ripping a bunch of DVDs for streambaby to stream from. I hope I can list a few issues in the spirit of providing constructive feedback for improvement - since if the product didn't change at all it would still be super awesome.

    Some of the issues I have noticed running streambaby 0.27 on XP WHS SP3 for a week or so now:

    1. My ripping software rips 1GB .VOB files (usually 4-5 per DVD) each in their own folder. Streambaby definitely delays as it transfers between files. Would be nice if the next file was buffering a bit to queue up the next file.

    2. TiVo "time bar" (position bar?) often shows the wrong total time (sometimes even as little as 2 seconds) and often skips right to the end of the time bar even though there is a substantial about of time left in the file to play. Am going to stitch the VOB files together on one of my DVDs to see whether this fixes the issue.

    3. I am using the DVDXML.com for windows client to download the DVD cover art (named as "folder.jpg") and create an XML file which links to the DVDID synopsis information. Would be nice if the folder browser would detect for these files and show the cover art and synopsis. (Example DVDID XML: <?xml version="1.0" encoding="utf-8"?><Disc><Name>The Princess Bride</Name> <ID>16EC5C92|EC059662</ID></Disc>). This is the material that Media Center on a PC uses for synopsis information. Not sure if this is publicly available as a webservice GET though.

    4. I may have missed this option - but is it possible to browse by chapter break in the VOB files using the channel up/down button on the TiVo remote?

    5. Strange image caching during fast forward: my ripping software names all of the ripped files using the same format: VTS_01_1.VOB, VTS_01_2.VOB, VTS_01_3.VOB, etc. When I fast forward, I see the jpeg images flashing by from other movies that I have fast forwarded through the same time segment. (Not a huge deal - but uncomfortable when my kids are watching Finding Nemo and a violent scene from Dark Knight comes flashing on the screen during fast-forwards).

    6. I see the same streambaby program dropouts as the others. Pretty consistently after changeovers between adjacent files.

    Not huge complaints - awesome job!
     
  8. Jan 7, 2010 #1868 of 3405
    Yog

    Yog New Member

    31
    0
    Feb 3, 2002
    Silicon...
    Yeh this "recipe" can be changed for just about any audio or video format. Just transcode the AAC multichan to AC3 multichan. ffmpeg should be able to do this I'm pretty sure.
     
  9. Jan 9, 2010 #1869 of 3405
    asherber

    asherber New Member

    1
    0
    Dec 16, 2008
    I'm a new user, and while streaming to my TivoHD works perfectly out of the box, I can't seem to get push to work -- or maybe I'm just not understanding. I added the username and password to streambaby.ini, Push shows up as an option on my Tivo, and when I click that the Tivo says 'Push succeeded'. Shouldn't this wind up transferring the file to the Tivo so it shows up under 'Now Playing'? I'm on Windows XP, Streambaby 0.27.

    Thanks for any help.

    Edit: Nevermind, got it -- I didn't realize that the push doesn't begin right away. Works great -- love this app.
     
  10. Jan 9, 2010 #1870 of 3405
    realgtom

    realgtom TiVo Addict

    14
    0
    Jan 6, 2010
    Grand...
    Quick question - can i use streambaby to stream two different movies to two different Tivos (assuming I have enough network bandwidth to do it)?

    Edit - "two different movies to two different TiVos simultaneously..."
     
  11. Jan 9, 2010 #1871 of 3405
    mj1856

    mj1856 New Member

    6
    0
    Dec 14, 2004
    Sorry if this has already been posted, but it's so difficult to sort through all the various posts to know what's current and what's already been resolved.

    I have the latest StreamBaby 0.27, and I'm having audio sync issues when streaming. If I play on my computer, the audio is in perfect sync. If I push to the tivo using StreamBaby's push feature, the audio is still in perfect sync. But when I stream the file directly, audio is out of sync the majority of the time.

    I have ripped the content from dvd's that I own and encoded via handbrake's "normal" profile. I have a hunch that there's something I can change in the advanced settings that would fix this, but I'm not sure what. I've seen so many various different handbrake settings discussed, but they all seem to be related to the video, which looks fine to me. I'm just using AC3 passthru, so I don't understand how it's getting so out of sync. What am I missing?

    Can anyone tell me the specific handbrake or streambaby setting that I need to adjust? Please don't give me a whole string of settings - I just want to know which one will fix the audio sync issue.

    Thanks,
    Matt
     
  12. Jan 9, 2010 #1872 of 3405
    MrGolden

    MrGolden New Member

    24
    0
    May 18, 2009
    I don't know if it's "supposed" to work, but I have done that before successfully.
     
  13. Jan 9, 2010 #1873 of 3405
    realgtom

    realgtom TiVo Addict

    14
    0
    Jan 6, 2010
    Grand...
    MrGolden that's awesome news. Thanks!
     
  14. Jan 9, 2010 #1874 of 3405
    realgtom

    realgtom TiVo Addict

    14
    0
    Jan 6, 2010
    Grand...
    Another thought on an enhancement: I am putting all of my DVDs on my NAS to make a DVD library for streambaby. I would expect that the list of movies will be lengthly (300-400 entries). Would be nice if I could use the numeric keypad on the TiVo remote touch-tone-telephone style to jump to a movie on the folder listing that begins with a particular letter: e.g., press 9 once for W, again for X, again for Y, again for Z, etc.
     
  15. Jan 9, 2010 #1875 of 3405
    moyekj

    moyekj Well-Known Member

    11,140
    29
    Jan 23, 2006
    Mission...
    Better off to organize your movies into folders instead of 1 giant flat structure.
     
  16. realgtom

    realgtom TiVo Addict

    14
    0
    Jan 6, 2010
    Grand...
    Has anyone else noticed the "caching" of jpeg images during fast forwarding? If I fast forward a movie, then play a different movie and fast forward that through the same time segments, I see the jpegs during fast-forward from the earlier movie, not the current movie? Kind of wondering if I missed a .ini setting or something.
     
  17. ke6rwj

    ke6rwj New Member

    6
    0
    Jan 9, 2010
    Seems to bind to loopback IP for MDNS, if i put an ip in the INI, without the IP it just picks one from the configured IPS, includeing ones used for VMs.

    So the tivo never gets the Multicast, hence no show in showcases...

    Linux Centos 5.

    Code:
    dir.1=/share/Movies
    
    dir.1.name=My 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.111
    
    # port to use
    
    #port=7290
    
    Code:
    
    Initializing StreamBaby v0.27...
    01/10/10 13:36:40 StreamBabyConfig: WorkingDir: /root/Desktop/streambaby-0.27
    01/10/10 13:36:40 StreamBabyConfig: StreamBabyDir: /root/Desktop/streambaby-0.27
    01/10/10 13:36:40 StreamBabyConfig: CurDir: /root/Desktop/streambaby-0.27
    01/10/10 13:36:40 FFmpegJavaConfig$1: Loading avutil, default: avutil
    01/10/10 13:36:40 FFmpegJavaConfig$1: Loaded: /usr/lib/libavutil.so.49.15.0
    01/10/10 13:36:40 FFmpegJavaConfig$1: Loading avcodec, default: avcodec
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loaded: /usr/lib/libavcodec.so.52.20.0
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loaded avCodec version: 52 (3412992)
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loading avformat, default: avformat
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loaded: /usr/lib/libavformat.so.52.31.0
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loaded avFormat version: 52 (3415808)
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loading swscale, default: swscale
    01/10/10 13:36:41 FFmpegJavaConfig$1: Loaded: /usr/lib/libswscale.so.0.7.1
    01/10/10 13:36:41 FFmpegJavaConfig$1: Marking libswscale as available.
    01/10/10 13:36:42 FFmpegJavaVideoModule: FFmpeg-java Module: loaded
    01/10/10 13:36:42 FFmpegExeVideoModule: FFmpegPath: ffmpeg
    01/10/10 13:36:42 FFmpegExeVideoModule: FFmpegExeModule: Loaded
    01/10/10 13:36:42 StreamBabyMain: STARTING StreamBaby v0.27...
    01/10/10 13:36:42 Main: args= start=true
    01/10/10 13:36:42 Main: args= loader=sun.misc.Launcher$AppClassLoader@fabe9
    01/10/10 13:36:42 Listener: config=com.tivo.hme.host.util.Config_1e3cd51 logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@bc8e1e
    01/10/10 13:36:42 Listener: factoryList=[StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]]
    01/10/10 13:36:42 Listener: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    01/10/10 13:36:42 Listener: name=/streambaby/
    01/10/10 13:36:42 Listener: 
    01/10/10 13:36:42 Listener: added factory
    01/10/10 13:36:42 Main: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    01/10/10 13:36:42 Main: MDNS: [LINK REMOVED TO POST]://127.0.0.1:7290/streambaby/
    01/10/10 13:36:42 Main: streambaby ready & listening.
    01/10/10 13:36:42 Main: mdns_type=_tivo-hme._tcp.local. factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream] port=7290
    
    current Ifconfig

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:16:E6:02:07:04  
              inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::216:e6ff:fe02:704/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:12188498 errors:0 dropped:837 overruns:0 frame:0
              TX packets:13064394 errors:0 dropped:0 overruns:0 carrier:0
              collisions:3646634 txqueuelen:100 
              RX bytes:1507932242 (1.4 GiB)  TX bytes:3749269480 (3.4 GiB)
              Memory:d0080000-d00a0000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:544657 errors:0 dropped:0 overruns:0 frame:0
              TX packets:544657 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:286972187 (273.6 MiB)  TX bytes:286972187 (273.6 MiB)
    

    it will also attempt to bind to VIRIP from VMWARE when they are there... sometimes it tries to bind to those IP even when they are DOWN, ie not in ifconfig listing.

    Ideas? Thanks

    Chris
     
  18. Jayboy3

    Jayboy3 Member

    101
    1
    Jan 2, 2010
    Can I install Streambaby to stream from a Windows PC to a Linux computer?

    I use a Windows 7 machine as my main media server (with Tivo Desktop and two Tivo HD boxes).

    But downstairs, I have a Linux PC laptop that I use as an additional computer station. It is hooked to an HD monitor. So is there a Linux app I can install on it to make it behave like a client to receive streams from Windows Media Player upstairs?
     
  19. orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    VLC will do this. I use this command line in a batch file to transcode and stream to a friend, where www.xxx.yyy.zzz is my friend's IP address:

    Code:
    "C:\Program Files\VideoLAN\VLC\vlc.exe"  %1  --extraintf http --http-host 192.168.0.30:8085 --http-src "C:\Program Files\VideoLAN\VLC\http" --aspect-ratio=4:3 --sout=#transcode{vcodec=h264,vb=1400,scale=1,acodec=mp4a,ab=96,channels=2}:duplicate{dst=std{access=udp,mux=ts,dst=www.xxx.yyy.zzz:1234}}
    
    At my friend's house, he uses VLC to "open network stream", and specifies udp port 1234 (mrl should look like "udp://@:1234").
     
  20. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    There are definitely some issues with streambaby and streaming VOB files that haven't been merged (or merged correctly...) I would like to address this at some point, but it's a pretty significant job to try and handle DVD structures correctly and I haven't had the time to investigate properly.

    The problem with the caching during FF is due to the filenames being the same (VTS_01.01 for example) for all of the DVDs, and streambaby only looking at the filename and not the directories. You can disable "preview" image generation for MPG files by adding the following line in streambaby.ini:
    preview.autogenerate=false
    and then deleting everything in the streambaby/cache directory. Streambaby will then only display the time when FF/rewinding MPG files (VOBs).

    I'll have to take a look at the DVDXML mechanism, I had never heard of it before...
     

Share This Page