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. Apr 19, 2007 #341 of 5683
    comandercody

    comandercody New Member

    48
    0
    Jun 16, 2002

    I should have edited it, lol, sorry. It was late and I was a cut and paste whore. I have not been able to get this to work. It seems that every time I restart my computer, the CONFIG file changes to this:

    [Paris]
    type = video
    path = N:\pyTIVO\Paris Hilton

    [Howard Stern]
    type = video
    path = N:\pyTIVO\Howard Stern on Demand

    [TIVO Barney and friends(not porn)]
    type = video
    path = N:\pyTIVO

    [Server]
    ffmpeg = /usr/bin/ffmpeg
    height = 720
    width = 1440
    beacon = 255.255.255.0
    port = 9032

    Then I edit back to:

    [Server]
    port = 9032
    ffmpeg = c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    ffmpeg = /usr/bin/ffmpeg
    height = 720
    width = 1440
    beacon = 255.255.255.0

    [Paris]
    type = video
    path = N:\pyTIVO\Paris Hilton

    [Howard Stern]
    type = video
    path = N:\pyTIVO\Howard Stern on Demand

    [TIVO Barney and friends(not porn)]
    type = video
    path = N:\pyTIVO\!!Tivo Porn

    path = N:\pyTIVO

    Also, when I "edit" the config file, do I have to restart the computer? or is there a way to restart the service? And, does the Tivo need to be restarted to recognize any changes? Thanks in advance for any help.
     
  2. Apr 19, 2007 #342 of 5683
    comandercody

    comandercody New Member

    48
    0
    Jun 16, 2002
    No, it is not a networked drive.
     
  3. Apr 20, 2007 #343 of 5683
    dlfl

    dlfl Cranky old novice

    6,996
    17
    Jul 6, 2006
    Near...
    @comandercody
    Suggest running as a program rather than a service until you get it running correctly.
    width and height are too large -- just delete them and they default to 544x480 which should be OK.
    Unless you're sure about your subnet mask needing zeros at the end, use 255.255.255.255 or just delete that and it will default to those values.

    I don't run Linux (or pyTivo as a service). Hope someone else can help you more.

    You should not need to restart your TiVo.
     
  4. Apr 20, 2007 #344 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    comandercody, I also see you have two lines for ffmpeg in your config file: one with the Windows syntax and one with the Linux syntax. Since you're on XP, remove the one that references /usr/bin/ffmpeg.

    Also, why do you have the beacon set to 255.255.255.0? I would try commenting that out (the default is 255.255.255.255). That could be why nothing appears on your TiVos.

    I have no idea why the file would revert to an old version after you reboot. That's a little strange. Try editing the file while pyTiVo is not running.
     
  5. Apr 20, 2007 #345 of 5683
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    On Vista, with UAC active, you can open a ty file with notepad, edit it, appear to save it, but actually fail, since you aren't running notepad as an administrator, and Vista therefore denies you the access to change the file. (But it saves it somewhere, because the changed file is still available from "recent files.") This one had me stuck for a while when I was trying to adjust the encoding rate.
     
  6. Apr 20, 2007 #346 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    That's messed up.

    "You are trying to edit a text file, accept or deny." :D
     
  7. Apr 20, 2007 #347 of 5683
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    Yeah, annoying. The way around it is open notepad as admin then you can open/save whatever file you want.
     
  8. Apr 20, 2007 #348 of 5683
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    1. I really love how pyTivo can transcode just about anything, including *.flv's from youtube. (I save them as *.swf, but I bet *.flv would be fine, huh?

    2. I also really love how "low quality" stuff that look bad on a computer, like this:My Generation Cover Video look just fine on a TV.
     
  9. Apr 20, 2007 #349 of 5683
    dmullig

    dmullig New Member

    12
    0
    Oct 15, 2005
    pyTivo has been working great for me! Thanks! ... until recently that is.

    I started a transfer through pyTivo, then realized that I had watched it before, so I cancelled the transfer. Since then, I haven't been able to transfer ANYTHING. (It's been a couple of weeks.) The play list is still there, and I can attempt to transfer videos over, but I always get the same thing :

    "This program has been added to the To Do list and will be transferred onto the [Tivo name} after previously requested programs have finished transferring."

    I go to the To Do list in Tivo, and I see an entry (for each attempt at transferring) like this:

    " Transfer from Videos [name of video]"

    The "Transfer from Videos" is in place of the date and time, and Videos is my pyTivo shared name.

    When I look at that entry, it says

    "This program will be transferred after previously requested programs have finished transferring"

    Well, that was two weeks ago, and besides, I cancelled it within a few minutes of starting the transfer. Since then, I've upgraded to the newest version of pyTivo, and installed the Windows service, to now avail.

    Ay suggestions as to how I can tell pyTivo that the "previously requested program" will never finish?

    Thanks for pyTivo, and thanks for listening.
    David.
     
  10. Apr 20, 2007 #350 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    That's not pyTivo saying that, it's the software on the TiVo itself. It thinks there is already a transfer in progress, so when you initiate another transfer through pyTiVo, the TiVo returns that message.

    Does the "stuck" transfer appear in the To Do List at all? Have you tried rebooting your TiVo?
     
  11. Apr 20, 2007 #351 of 5683
    dlfl

    dlfl Cranky old novice

    6,996
    17
    Jul 6, 2006
    Near...
    dmullig,
    I get that too, but all I have to do is go to the To Do list, select the offending entry and cancel the transfer. That clears it.
     
  12. Apr 21, 2007 #352 of 5683
    dmullig

    dmullig New Member

    12
    0
    Oct 15, 2005
    I cancelled the original transfer that TiVo thinks is still transferring long ago. It no longer appears in the To Do list. I will reboot the TiVo to see if that helps. Sometimes a fresh start is good. Thanks.


    Yep, like I said above, I cancelled the offending transfer long ago, but TiVo apparantly thinks it's still transferring, because I can't send anything back to the TiVo...well, through pyTivo anyway. I haven't tried bringing something back from my PC through TiVo Desktop (2.3a). Yet something else I could try.


    Thanks for your help(s).
    Dmullig
     
  13. Apr 21, 2007 #353 of 5683
    murezor

    murezor New Member

    3
    0
    Aug 2, 2006
    Hello. I read through this whole post. Good stuff here.

    I have a pyTivo 187 up and running on a Linux Server. Using a sniffer I can see the heartbeats going out from my 2 hacked DTV series2 TiVos and the 1 pyTivo server. The TiVos show up in each other's NPL lists but not the pyTivo server.

    When I goto:
    h.t.t.p://localhost:9032/

    It returns:
    This is a tivoPY server

    When I goto:
    h.t.t.p://localhost:9032/TiVoConnect?Command=QueryContainer&Container=MyMovies

    It returns:
    0 1 x-container/tivo-videos x-container/folder 1 video/x-tivo-mpeg video/x-ms-wmv 1910675460 6501000 video/x-tivo-mpeg No /MyMovies/MI.mpg video/* No urn:tivo:image:save-until-i-delete-recording

    So it looks like pyTivo is doing just fine.

    How come I don't see the pyTivo server in my NPL list?

    Thanks in advance.
     
  14. Apr 21, 2007 #354 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    murezor, what version of the tivo software do you have running on your DTV series2? I think goback came out in version 7.1 which as far as I know will not run on a DTV tivo.
     
  15. Apr 21, 2007 #355 of 5683
    murezor

    murezor New Member

    3
    0
    Aug 2, 2006
    Hello Armooo. Thanks for the response. I'll have to lookup "goback", is that something I need to install on the TiVo's?

    Just in case I'm confusing people, when I say DTV, I mean DirectTV.

    Here's the version:
    Software System: 6.2-01-2-301

    Of course it has been "zippered", another great tool I found here.

    Thanks.
     
  16. Apr 21, 2007 #356 of 5683
    murezor

    murezor New Member

    3
    0
    Aug 2, 2006
    Got it now. TivoToGo is a Tivo Service. DirectTV uses MRV. So I'm SOL.
     
  17. Apr 22, 2007 #357 of 5683
    gonzotek

    gonzotek tivo_xml developer

    2,402
    3
    Sep 24, 2004
    Outside...
    Your hacked DTV units should be able to work with tivoserver, another open source project that provides a MRV-protocol pc server.
     
  18. Apr 23, 2007 #358 of 5683
    Justin Thyme

    Justin Thyme Contra sceleris

    3,306
    0
    Mar 29, 2005
    On large directories , I am seeing some huge latency (like minute plus waits), and I was wondering if this is some io bound thing on the Tivo side or the PC side.

    If the PC side, wouldn't caching the top level directories into ram speed things up significantly?

    Or is it basically hopeless- (A Tivo latency issue)- eg- that's how slow it is if it is building a huge (like 80 element) list of shows.
     
  19. Apr 23, 2007 #359 of 5683
    comandercody

    comandercody New Member

    48
    0
    Jun 16, 2002

    OK, thanks to those that have posted and tried to help me, but ever since I clicked on Windracer's season passes, I have been busy adding them to my NPL, and watching them. :D

    JK, Wind, removing the MAC reference like you suggested worked like a charm. Also, my beacon was wrong, not sure why I changed it to 255.255.255.0, but changing it back worked. Also, the config file does not revert, it stays just like I saved it.

    One thing I am still struggling with: In my NPL, I see each "Folder" that I put in my config file, however, when I select the "You Tube" folder, it shows all the other folders in the Config file(Howard, Paris, You Tube, P0rn), which would be the same folders you would see if you were to click on the (absolute, I think that is the right terminology) "path" of all my videos, N:\pyTIVO.

    I have copied and pated the config file:

    [Server]
    port=9032

    #Full path to ffmpeg including filename
    ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    beacon=255.255.255.255

    #This will make a large debug.txt file in you base directory. It only debugs
    #transcode.py right now.
    #debug=false

    # Audio bit-rate, default 192K
    #audio_br=192K

    # Video bit-rate, default 4096K
    #video_br=12Mi

    #Beacon broadcast address(es)
    #Typically use 255.255.255.255 but on some multihomed machines you may
    #need to specify the subnet broadcast address(es) of your Tivo boxes


    #Output Pixel Width: if you have an HDTV you might want to try 720 or 704
    #Valid: 720, 704, 544, 480, 352
    width=1440
    height=720

    ##Per tivo options
    # section named _tivo_TSN with the tsn in all caps
    #[_tivo_2400000DEADBEEF]

    #If you want to use 16:9 or 4:3 on this tivo
    #aspect169=true

    [Stern]
    path=N:\pyTIVO\Howard Stern on Demand
    type=video

    [Porn]
    path=N:\pyTIVO\Tivo Porn
    type=video

    [You Tube]
    path=N:\pyTIVO\You Tube
    type=video

    #Path is the full path to your files (No trailing slash needed)
    #For windows: path=N:\pyTIVO



    ##You can have more than one share
    #[MyTelevision]
    #type=video
    path=N:\pyTIVO

    Anyway, thanks again, Tivo is a great product, and the open source software, and the fact that they(Tivo) does not mind modifications/additions(read, not hacked), makes this a really great consumer product.
     
  20. Apr 23, 2007 #360 of 5683
    dlfl

    dlfl Cranky old novice

    6,996
    17
    Jul 6, 2006
    Near...
    The mods and instructions for having pyTivo read DAR using mediaInfo.exe, and use DAR in mpeg2 transcodings, are attached. Let me know how it goes.

    All others: you are welcome to try this also. Tested on Windows with pyTivo running as a program (not a service) only. For linux, the CLI version of mediaInfo will have to be built and there may be some additional debugging to get it to work right with pyTivo.

    If ffmpeg would report DAR for mpeg2 files, this all would be so easy!
     

Share This Page