1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivoX

Discussion in 'TiVo Home Media Features & TiVoToGo' started by Yoav, Dec 10, 2008.

  1. Aug 7, 2011 #1141 of 1438
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Hmmm sorry about that... Too early in the morning.

    in Terminal type:

    Code:
    /opt/local/bin/ffmpeg
    
    just to make sure ffmpeg works.

    to change the .profile use Terminal and type
    Code:
    open ~/.profile
    
    This should open up TextEdit with your .profile. Then add this line and save it.

    Code:
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    
    Not sure ATM about the FFmpeg issue and streambaby. I'll have to look at it later when I have more time and get back with you.
     
  2. Aug 8, 2011 #1142 of 1438
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast


    Thanks,,

    ffmpeg ran so it is working.

    I opened the .profile and this is the contents, it already has the new path statement:

    Code:
    ##
    # DELUXE-USR-LOCAL-BIN-INSERT
    # (do not remove this comment)
    ##
    echo $PATH | grep -q -s "/usr/local/bin"
    if [ $? -eq 1 ] ; then
        PATH=$PATH:/usr/local/bin
        export PATH
    fi
    
    ##
    # Your previous /Users/brian/.profile file was backed up as /Users/brian/.profile.macports-saved_2011-07-25_at_19:43:11
    ##
    
    # MacPorts Installer addition on 2011-07-25_at_19:43:11: adding an appropriate PATH variable for use with MacPorts.
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    # Finished adapting your PATH environment variable for use with MacPorts.
    
    
    So for now that is not the big issue, it is Streambaby... Here is the contents of my .ini file.

    Code:
    #
    # ./streambaby --help for more configuration file options
    #
    dir.1=/Volumes/iTunes/iTunes/iTunes\ Music/Movies/
    dir.1.name=Movies
    dir.2=/Volumes/iTunes/iTunes/iTunes\ Music/TV\ Shows/
    dir.2.name=TV Shows
    # Ip address to bind to
    # most people don't need to change this. 
    #ip=192.168.1.37
    # port to use
    #port=7290
    ffmpeg.path=opt/local/bin/ffmpeg
    
    
    Thanks again,

    b
     
  3. Aug 8, 2011 #1143 of 1438
    TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Not saying this is your issue, but I read your post and couldn't help saying... What the hey is up with your folder locations for dir.1 and dir.2 both?!

    Is that a direct copy/paste or is there a typo or something? If that's a copy/paste, you may be having issues with the / and \ and spaces all in the folder name. For sure, it won't handle a FOLDER NAME with a slash in it very well unless you escape it, and I'm not sure how/what format Streambaby wants you to use to do that.

    My dir.1 is /Users/username/tivo for example - I wanted to eliminate that as a potential source of trouble and aggravation.
     
  4. Aug 9, 2011 #1144 of 1438
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Well, the path includes the folder name "iTunes Music". What little UNIX I know says I have to use a "\" before a space. So to enter this path:

    /Volumes/iTunes/iTunes/iTunes Music/TV Shows/

    In UNIX I have to write it so:

    /Volumes/iTunes/iTunes/iTunes\ Music/TV\ Shows/

    I did try it the other way but something else is failing with Streambaby. My other alternative is to change my folder names.

    Brian
     
  5. Aug 9, 2011 #1145 of 1438
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Code:
    [iMac21-i3:~] brian% /Applications/streambaby-0.29/streambaby ; exit;
    Initializing StreamBaby v0.29...
    08/09/11 20:13:25 StreamBabyConfig: WorkingDir: /Users/brian
    08/09/11 20:13:25 StreamBabyConfig: StreamBabyDir: /Applications/streambaby-0.29
    08/09/11 20:13:25 StreamBabyConfig: CurDir: /Users/brian
    08/09/11 20:13:25 FFmpegJavaConfig$1: Loading avutil, default: avutil
    08/09/11 20:13:25 FFmpegJavaConfig$1: Error attempting toload ffmpeg libraries: Unable to load library 'avutil': dlopen(libavutil.dylib, 1): image not found
    08/09/11 20:13:25 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
    08/09/11 20:13:25 FFmpegExeVideoModule: FFmpegPath: opt/local/bin/ffmpeg
    08/09/11 20:13:25 FFmpegExeVideoModule: FFmpegExeModule: Loaded
    08/09/11 20:13:25 StreamBabyMain: STARTING StreamBaby v0.29...
    08/09/11 20:13:25 Main: args= start=true
    08/09/11 20:13:25 Main: args= loader=sun.misc.Launcher$AppClassLoader@37b90b39
    08/09/11 20:13:25 Listener: config=com.tivo.hme.host.util.Config@19e3cd51 logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@3abc8e1e
    08/09/11 20:13:25 Listener: factoryList=[StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]]
    08/09/11 20:13:25 Listener: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    08/09/11 20:13:25 Listener: name=/streambaby/
    08/09/11 20:13:25 Listener: 
    08/09/11 20:13:25 Listener: added factory
    08/09/11 20:13:25 Main: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    08/09/11 20:13:25 Main: MDNS: http://10.37.129.2:7290/streambaby/
    08/09/11 20:13:25 Main: streambaby ready & listening.
    08/09/11 20:13:25 Main: mdns_type=_tivo-hme._tcp.local. factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream] port=7290
    08/09/11 20:43:25 InfoCache$PruneTask: Pruning cache...
    08/09/11 20:43:25 InfoCache$PruneTask: Pruning complete.
    
    So a question or 2...

    Where is this address?

    Code:
    08/09/11 20:13:25 Main: MDNS: http://10.37.129.2:7290/streambaby/
    My network is 192.168.....

    and does this error mean anything?

    Code:
    FFmpegJavaConfig$1: Error attempting toload ffmpeg libraries: Unable to load library 'avutil': dlopen(libavutil.dylib, 1): image not found

    Brian
     
  6. Aug 9, 2011 #1146 of 1438
    TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    You're right - but I'm not sure if Streambaby uses that convention. I'm also wondering if the /iTunes/iTunes/ double-nested identical-name is confusing it. Just out of curiosity, have you tried commenting out the lines you have in there now and putting in something simple without any complications?


    Edit to respond to your questions posted as I was composing this post:

    1) maybe you need to uncomment and edit the "IP address to bind to" in the config file - I think that's related to multiple network interfaces available - I read a post where removing extraneous network interfaces fixed someone's issue.

    2) Are you sure all the ffmpeg stuff is pointed to the right place? You're using just iluvatar's build, right? I would think that would include everything, so not real sure where to go from there.
     
  7. Aug 9, 2011 #1147 of 1438
    yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast

    Hi, thanks for your input...

    This is where I am at...

    My .ini now looks like this:

    Code:
    #
    # ./streambaby --help for more configuration file options
    #
    dir.1=/Volumes/iTunes/iTunes/iTunes Music/Movies/
    dir.1.name=Movies
    dir.2=/Volumes/iTunes/iTunes/iTunes Music/TV Shows/
    dir.2.name=TV Shows
    dir.3=/Volumes/admin/iTunes1/iTunes Music/Movies/
    dir.3.name=Mov
    # Ip address to bind to
    # most people don't need to change this. 
    ip=192.168.1.201
    # port to use
    port=7290
    ffmpeg.path=opt/local/bin/ffmpeg
    
    I now see Stream Baby Stream on my Tivo, but I get the error "Unable to open Stream" when I try to play the movie.

    The path with spaces seem to work fine although the 3rd dir does not display the contents. On my screen is says "No entries in this directory".

    As you see I found a post that suggested I uncomment the IP and that seemed to do the trick.

    And for your second question, no, I got MacPorts to install ffmpeg I did not use iluvatar's build.

    Brian
     
  8. Aug 9, 2011 #1148 of 1438
    TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Sounds like you're getting closer! :)

    To be honest, my macports install had no such strange issues, and it was super-straightforward for me. Sounds like you had a much more complicated time of it for some reason.

    What happens if you comment out that ffmpeg.path in the streambaby.ini now that everything else is fixed?
    edit: d'oh, you ARE missing a slash in that ffmpeg.path - try putting that slash in first!
     
  9. Aug 9, 2011 #1149 of 1438
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    for one thing this is in error

    Code:
    ffmpeg.path=opt/local/bin/ffmpeg
    
    you are missing a slash it should read

    Code:
    ffmpeg.path=/opt/local/bin/ffmpeg
    
    have no idea if that will fix your issue though. I'm more of a pyTivo guy.
     
  10. Aug 9, 2011 #1150 of 1438
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006

    dang...missed it by thaaaat much!

    I swear your post wasnt there when I wrote mine :D

    ..... and yea something is really messed up with their user profile to have so many commands not working.
     
  11. yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Thanks folks,

    That worked... not sure how that was missed, but with all the other problems I was running into it slipped by.

    Any idea why my dir.3 fails to see anything?

    b
     
  12. krakelohm

    krakelohm New Member

    9
    0
    Sep 22, 2008
    Alaska
    Just a quick note, not sure why but after my install of 10.7 every time pyTivoX was running it would have an icon in the dock which was not the case with 10.6.x. I hunted around and found the following that will still allow you to run pyTivoX without the dock icon. Just open up the terminal and paste in the following line:

    defaults write /Applications/pyTivoXs.app/Contents/Info LSUIElement 1

    To turn it back on just paste the following:

    defaults write /Applications/pyTivoXs.app/Contents/Info LSUIElement 0
     
  13. yooper126

    yooper126 u betcha

    14
    0
    Sep 28, 2005
    Right Coast
    Is pyTivoX actually working for you in 10.7? You are watching movies on your TiVo with it?
     
  14. MacGuruTX

    MacGuruTX Member

    46
    0
    Sep 19, 2006
    San Diego, CA
    Ok my turn. I'm having some of the same problems.
    My Lion upgrade had major issues, it trashed my Administrator user account and was having all kinds of r/w security access issues. So i finally decided to (*&% with it, and reformatted my primary drive and did a completely clean Lion install.

    1) Installed Xcode via Appstore
    2) installed macports 2.0.1
    3) sudo port selfupdate to make sure I was current.
    4) sudo port install ffmpeg (it successfully installed all of the dependencies and ffmpeg)
    5) Downloaded streambaby v0.29, extracted the folder and dropped in my Applications folder.
    6) Attempted to run streambaby and get the Unable to load FFmpeg native libraries.

    7) I edited my streambaby.ini to
    8) I'm still getting

    entering /opt/local/bin/ffmpeg in Terminal gets a response from ffmpeg

    and my .profile has

    I realize my video location paths aren't correct yet, but figured that doesn't matter yet if I can't get past the ffmpeg load?
     
  15. MacGuruTX

    MacGuruTX Member

    46
    0
    Sep 19, 2006
    San Diego, CA
    turning on debug in streambaby, it appears there is aproblem with avutil?

    08/10/11 21:12:25 StreamBabyConfig: WorkingDir: /Users/gregmiddleton
    08/10/11 21:12:25 StreamBabyConfig: StreamBabyDir: /Applications/streambaby-0.29
    08/10/11 21:12:25 StreamBabyConfig: CurDir: /Users/gregmiddleton
    08/10/11 21:12:25 FFmpegJavaConfig$1: Loading avutil, default: avutil
    08/10/11 21:12:25 FFmpegJavaConfig$1: Error attempting toload ffmpeg libraries: Unable to load library 'avutil': dlopen(libavutil.dylib, 1): image not found
    08/10/11 21:12:25 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
    08/10/11 21:12:25 FFmpegExeVideoModule: FFmpegPath: /opt/local/bin/ffmpeg
    08/10/11 21:12:25 FFmpegExeVideoModule: FFmpegExeModule: Loaded
    08/10/11 21:12:25 StreamBabyMain: STARTING StreamBaby v0.29...
    08/10/11 21:12:25 Main: args= start=true
    08/10/11 21:12:25 Main: args= loader=sun.misc.Launcher$AppClassLoader@37b90b39
    08/10/11 21:12:26 Listener: config=com.tivo.hme.host.util.Config@518f5824 logger=com.unwiredappeal.tivo.utils.Log$ILoggerImpl@19e3cd51
    08/10/11 21:12:26 Listener: factoryList=[StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]]
    08/10/11 21:12:26 Listener: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
    08/10/11 21:12:26 Listener: name=/streambaby/
    08/10/11 21:12:26 Listener:
    08/10/11 21:12:26 Listener: added factory
    08/10/11 21:12:26 Main: factory=StreamBabyStreamFactory[/streambaby/,Stream, Baby, Stream]
     
  16. TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    Try editing the config to point to a real folder, then putting a file in the folder and seeing if it'll play it... I swear I've seen that error a time or two but it's still worked fine. Eliminate what you KNOW is wrong before trying to troubleshoot the other issue (even though I agree, it shouldn't affect it)! :)

    Your ffmpeg path looks to be correct, and you're not relying on a link or anything... so it SHOULD be pointed at the files, assuming everything installed okay, which it sounds like it did.

    I don't think the Applications folder is treated as "special" is it? There's no reason streambaby can't see /opt/local/bin/ffmpeg I don't think...
     
  17. MacGuruTX

    MacGuruTX Member

    46
    0
    Sep 19, 2006
    San Diego, CA
    yeah, it looks like I may have jumped the gun.

    Does anyone else get that error?

    When i go to my TiVo it is indeed working. i was previously using pytivox install prelion, so I'm not sure if the error was there all along but just not visible.

    i'll keep researching that to see if i can pin it down. but looks like im up.

    now on to pytivo
     
  18. krakelohm

    krakelohm New Member

    9
    0
    Sep 22, 2008
    Alaska
    Yea that it is.I have transferred and watched two shows in the last day or so. I just loaded 10.7 two days ago, fresh install.
     
  19. dig_duggler

    dig_duggler losing enthusiasm

    835
    0
    Sep 18, 2002
    Birmingham, AL
    Lion + pyTivoX works fine for me. It was an upgrade, no reinstall necessary. It just kept working. I have not tried streambaby but it seems pretty clear from posts above that has issues.
     
  20. TheWGP

    TheWGP Hmmm...

    299
    0
    Oct 26, 2007
    That's really strange - I did my Lion as an upgrade, and others who have done clean installs have had issues. Earlier in this thread there's exact logging of the problem, I think.

    Streambaby does run fine if you follow the steps I outlined - the guy a little bit earlier has some weird profile issues, and even he got it working fine after he fixed his typo... happens to the best of us. :D

    Really interested in these reports of pytivox working fine with Lion now - I just tried it again and it's still not working here. To be honest, Streambaby by itself is more reliable as far as showing up on the Tivo's list than PyTivoX ever was, so I'm not sure I'd ever go back.
     

Share This Page