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

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Feb 27, 2007 #41 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    I have merged the changes KRKeegan's 147. It is now killing mmpeg when you stop the transfer early on linux (it looks like it was being killed then the thread was ending anyway). And fixed the type line in the config file, from x-container/tivo-videos to video. This was changed when I moved to the plugin system.
     
  2. Feb 27, 2007 #42 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    teehee, literally last night I also fixed the abandoned ffmpeg threads on linux too.

    As an fyi I don't know if you saw but Desktop 2.4 is out and the paid version offers the ability to transcode from WMV to TiVo. From what I am reading it sounds like you just toss the WMV files into the correct folder and they show up on the NPL.

    I am plugging away trying to find someone out there with a paid version to tell me what the XML looks like for the wmv files. I would imagine that if TiVo is offering this they have fixed the glitch with video file sizes.

    Kevin
     
  3. Feb 27, 2007 #43 of 5687
    zpimpa

    zpimpa New Member

    7
    0
    Jun 3, 2006
    Hi,

    I can connect manually (via my laptop) to:
    h.ttp://127.0.0.1:9032/TiVoConnect?Command=QueryContainer&Container=Video

    However, Video does not showup on my Tivo.

    I am running Python 2.5 and the latest build of PyTivo.

    Any help or help troubleshooting would be appreciated greatly. Thanks
     
  4. Feb 27, 2007 #44 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    What do you get when you load that web page?

    If you see XML with your videos in there then there is either something blocking the TiVo or your TiVo doesnt support video transfers. You need to have version 7.2 of the software.

    Check and make sure that there are no firewalls or anything blocking TiVo from talking to your pc.
     
  5. Feb 27, 2007 #45 of 5687
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    I'm running Vista and having a bit of an issue. I have python installed with no issues, but running the pyTivoService.py --startup auto install isn't working. It seems like a syntax error but everytime I try to install the service it just spits out the usage commands...like I put nothing in. I'm sure it's something dumb but any help would be nice.

    Oh and if I just try to run pyTivo.py it spits out lots of errors. Not sure what this means to you.

    No module Named x-containter etc.. So I'm not sure if I did something wrong or whether vista doesn't like whats going on.
     
  6. Feb 27, 2007 #46 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    The "No module Named x-containter" is caused by an error in KRKeegan's included config file. If you change the type=video under your share name it should start right up.
     
  7. Feb 27, 2007 #47 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    hehe oops :p

    Sorry all.

    Kevin
     
  8. Feb 28, 2007 #48 of 5687
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    Great! That works. Any clue as to why it won't install as a service? It just ignores my parameters in python. Thanks in advance! Also, what would I change to make it get music and videos? Thanks
     
  9. Feb 28, 2007 #49 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    I am working on a windows installer/config tool now. The first release is going to be bare bone, but it will work (kinda).

    If you want to add music just create a new config section and set the type to music.

    [Mp3's]
    path=d:\mp3s
    type=music
     
  10. Feb 28, 2007 #50 of 5687
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    Yeah I got it to work finally. The latest 157 version is missing the Transcode.py python file ;) the music part works great now! Is there anyway to put music on the NPL? I know it's probably a weird request but even linking straight from there instead of like 3 screens would be great! I'm sure tivo has limitations though.
     
  11. Mar 1, 2007 #51 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    1. Transcode.py - Hmm this is in the plugins/video directory as it should be. But armoo recently deleted an extra copy form the base folder. Is that what you had to replace?

    2. Music in NPL - I dont think that is something we can do on the server end. That is up to TiVo to handle that one.

    ---------------------------

    So I am messing around with Desktop 2.4. It appears that they use a constant bit rate in order to be able to predict the streamed file size. It looks like the bit rate is 3367kbytes/second

    Edit
    Well cool, the file size TiVo reports pre-transcoding is not the same as the resulting file size. So I just have to figure out how Desktop gracefully tells TiVo that there is no more. So a solution does appear likely.
     
  12. Mar 1, 2007 #52 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    It seems that when running as a windows service os.getcwd() is not the pyTivo directory so it was not able to find the pyTivo.conf file. This has been fixed.

    I have also added GUID support. So you can now have more than one server on your network.

    And finally I have an installer to try out. pyTivo 161 Setup. It should install Python 2.5 and pywin32. It will install pyTivo as a service and start it. It will also run the configurator to let you set up shares.

    The configurator is not done yet, so it has some bugs. You need to double click to select a share, and you need to make sure you hit save before you quit. The configurator is also linked to from the start menu and will let you restart the pyTivo service, which you need to do after making changes.

    You also need to make sure that port 9032 is open, the installer dose not do anything to the windows firewall.
     
  13. Mar 2, 2007 #53 of 5687
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    Yeah for it to work I still have to have the transcode code file in the main directory. I am having issues with the service too, running pyTivo by itself works fine, I am not familar with Python so if you want me to pull some kind of log from it or just tell me how to fire the pyTivoService from inside the command line then I could catch the error it's recieving and maybe give some insight on what is causing the failure.
     
  14. Mar 2, 2007 #54 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Wahoo!

    I purchased Desktop 2.4 and watched how it handles the transcoding of WMV files. Long story short, I was able to solve the Transfer interrupt problem that many of us saw at the end of file transfers.

    This should also fix the rapid deletion problem. After $25 bucks and a lot of packet sniffing it turns out to be a very simple fix. It has been updated and versions 163 and onward should have no problem.

    Enjoy, I am off to bed. http://armooo.net/~armooo/pyTivo/

    Kevin

    Next Fixes1. Overestimating file size may cause TiVo to delete programs prematurely to make room for an overly large file. 2. Aspect ratio tweaks. 3. Attempt to add some meta data features
     
  15. Mar 2, 2007 #55 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
  16. Mar 2, 2007 #56 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Version 164 is up.

    Changes:
    - No longer limited to a 6gig transfer. File sizes are now estimated with extra buffer. This should stop TiVo unnecessarily deleting programs early to make room for a 6gig file everytime.

    - Ratio stretch. Files that are nearly 4:3 or 16:9 will be stretched to those aspects. I noticed many bittorrent videos are slightly off because the videos have been cropped.

    - Left and Right padding. While rare there was no ability to view a video that had a lower ratio than 4:3. This is now enabled and will add black bars to the left and right side of the screen.

    Enjoy
     
  17. Mar 2, 2007 #57 of 5687
    ocntscha

    ocntscha New Member

    149
    0
    Oct 22, 2003
    So do I really need python 2.4 for this? I've got 2.3.4 which is the latest availalble to me via my yum repositories. (Not much going on in the Tivo.Net thread, I think Pipakin overdosed on Benadryl, figured I'd wander into here) Congratulations on snooping out how to do the graceful transfer terminations.
     
  18. Mar 2, 2007 #58 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    oops sorry, the interpreter line should read python not python2.4. This is a holdover from when I was converting this from a windows to a linux script.

    Umm you probably only need 2.3 but I am not sure. The only limitation is getting the imports to work. Namely cheetah. Sorry I dont specifically know the requirements. Tinker with it and let me know.

    Kevin
     
  19. Mar 2, 2007 #59 of 5687
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I'm in here too. ;)

    Giving it a try ... took a long time for the NPL to populate. At first I thought it wasn't working but eventually it came up. Now to actually try a transfer ...
     
  20. Mar 2, 2007 #60 of 5687
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    :p Sorry everyone in my rush to merge in my own modifications I missed a correction i had made to the original code. You may have inadvertantly been getting some very narrow video. Sorry that should be fixed now in version 165.
     

Share This Page