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

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Jul 6, 2009 #1061 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    No this tool is for pulling shows from your Tivos, not the other way around. pyTivo is the best tool for transferring programs from your PC to Tivo(s).
     
  2. Jul 6, 2009 #1062 of 10411
    rascal

    rascal New Member

    4
    0
    Jul 5, 2009
    Thank you for getting back to me.

    I selected the link you provided and went through the forum. I cannot seem to find the latest version of pyTivo. Can you help me with this please?

    Thank you
     
  3. Jul 6, 2009 #1063 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    This should really go in pyTivo thread... There are windows installer versions for pyTivo which I do not care for very much. While they do make installation a little easier they tend to point to older versions of pyTivo and in some cases to versions with known bugs. To get the very latest wmcbrine fork of pyTivo you can grab the latest zip file from here:
    http://repo.or.cz/w/pyTivo/wmcbrine.git
    Then, assuming you are using Windows:
    0. Install python if you don't already have it installed.
    1. If you don't already have ffmpeg download it from here and unzip it to a fresh folder somewhere.
    2. Unzip the wmcbrine file in a fresh folder somewhere.
    3. Copy pyTivo.conf.dist to pyTivo.conf and edit the file to point to location of your ffmpeg.exe file. Also under [My Videos] change path to match where you keep videos you want to transfer to Tivo.
    4. Double click on pyTivo.py to start the program (leave the console window that starts up open)
    NOTE: There are ways to run the program as a service as well which if you use windows installer makes it easy. Personally I don't like running it as a service since I only use it occasionally so only fire it up when I want to use it.
     
  4. Jul 6, 2009 #1064 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Kevin,
    Just out of curiosity, on the PeeCee side, will kmttg fire a second curl query to a second TiVo while a curl query is currently downloading a show?

    This little bottleneck has bugged me for some time. When I use AutoTransfers, I see the curl queries firing every X minutes when there are no shows to download. However if it finds a show on one TiVo, and begins to download, it won't fire another curl query off to the second TiVo until the first show is completely downloaded from the first TiVo.
     
  5. Jul 6, 2009 #1065 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    The Auto Transfers algorithm currently (doesn't matter what platform) is essentially in pseudo code:
    Code:
    loop
     foreach tivo
       get now playing list
       process auto transfer setup for matches
       fire up/queue up jobs associated with matches
     end foreach
    
     wait for all jobs to finish (all tivos)
    
     sleep X minutes
    end loop
    
    So yes I think that is consistent with your observation and it's not like GUI mode where you can have more things running in parallel for different Tivos. i.e. It's a simplistic design not optimized to maximize job throughput, but in my view if you use Auto Transfers it's kind of a "set it and forget it" type setup where throughput is not a high priority and you don't necessarily want to overwhelm the computer with jobs.
     
  6. Jul 6, 2009 #1066 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    So you can see a feature request here, right? :D
     
  7. Jul 7, 2009 #1067 of 10411
    rascal

    rascal New Member

    4
    0
    Jul 5, 2009
    I really appreciate the info you provided. I didn't understand which version to use from the pyTivo thread. I will use the information you provided. Going forward I'll address any issues with that program in the pyTivo thread.

    BTW, I had a video downloaded to TivoDesktop. Somehow it got distored and I was no longer able to view it in MediaPlayer. After opening the video in your program, it works again. So thanks!
     
  8. Jul 7, 2009 #1068 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Could see it coming a mile away. :) I'll look into perhaps giving each Tivo its own loop, though keep in mind of course the active job limit setting may still have some influence on number of parallel CPU intensive jobs that can run at a time.
     
  9. Jul 7, 2009 #1069 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    I can give each TiVo its own loop right now, by simply running two instances of kmttg, but the challenge there is that they won't share a single config, or a single set of auto-transfers.

    (I was once running two instances of kmttg in the 0.5n days, because I was having trouble with reception on one of the channels on one of my TiVos.)
     
  10. Jul 9, 2009 #1070 of 10411
    manse

    manse New Member

    11
    0
    Jan 17, 2005
    Just tried this out. What a great program!

    But... I seem to be running into a problem after I burn this to a DVD. I use kmttg to download and decode to MPEG2, then I bring it into Premiere Elements 3, then burn to DVD. I am getting an issue where the sound gets out of sync with the picture. I don't have this problem when I use Tivo desktop to convert the file to MPEG-4 then use the exact same workflow in Elements (however, encoding to DVD takes hours with MPEG-4, works much faster with a MPEG-2 file).

    Do you think installing VideoRedo and then using the option in kmttg for "VRD QS Fix" will help solve the sound out of sync problem? (Also seeing some screen jaggies when the camera pans...)
     
  11. Jul 9, 2009 #1071 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    Yes.

    Without VideoRedo QS Fix, I see A/V sync errors a high percentage of the time. With VideoRedo QS Fix, I have yet to see any A/V sync errors.

    Ultimately, new tools or workflow is needed provide encodes with reliable, in-sync audio without VideoRedo. For now, VideoRedo is almost required.
     
  12. Jul 9, 2009 #1072 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Do you get this same issue when you use kmttg to encode to MPEG-4?
     
  13. Jul 9, 2009 #1073 of 10411
    manse

    manse New Member

    11
    0
    Jan 17, 2005
    That was my next test, but I couldn't figure out which of the encode profiles in kmttg would give me vanilla mpeg-4 (I've had some issues with H.264 in premiere... I get a *tiny* amount of screen blur every few seconds in the resulting DVD).

    I've been reading up on the ffmpeg documentation, but if anyone wants to throw this dog a bone and give me the commands that converts from descrypted Tivo.mpg to vanilla Mpeg-4 I'd be a happy boy :)
     
  14. Jul 9, 2009 #1074 of 10411
    manse

    manse New Member

    11
    0
    Jan 17, 2005
    I tried the latest beta of VideoRedo. Note that the vbs script call in kmttg does not work anymore (gives an error that some function is not available). I opened up VideoRedo itself and ran quickfix from there. Still had sync problems. My problem may be with elements.
     
  15. Jul 9, 2009 #1075 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    The ff_psp profile uses mpeg4 video & AAC audio so you may want to start with a copy of that profile and perhaps adjust the resolution parameter.
    However the core of the problem I think is the mpeg2 source you start from has defects and it's likely no matter how you encode it with ffmpeg you are going to see issues. If you double click on the encode job in job monitor while it's running in kmttg and look at stderr ffmpeg messages you will likely see many timestamp issues being reported which is a good clue the resulting encoding will have problems.
    Cleaning up the source mpeg2 with VideoRedo QS Fix will fix that.
     
  16. Jul 9, 2009 #1076 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    That's a known VideoRedo issue. You have to run VideoRedo from GUI at least once before using the batch scripts. If you run again in kmttg it should work fine now that you've run via GUI once.

    Try the sequence again via kmttg enabling VRD QS Fix & encode. I'd be surprised if there are still sync issues.
     
  17. Jul 9, 2009 #1077 of 10411
    manse

    manse New Member

    11
    0
    Jan 17, 2005
    moyekj, thanks for the help! I will try out your tips tonight!

    And thank you again for kmttg! This is a great application!
     
  18. Jul 9, 2009 #1078 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    manse, just make sure to start with a fresh download or the original .TiVo file downloaded from you Tivo as a starting point. Obviously it would do no good to start from a source video file that already has A/V sync issues.
     
  19. Jul 9, 2009 #1079 of 10411
    manse

    manse New Member

    11
    0
    Jan 17, 2005
    Will do Moyekj!

    Hey, you got a donate button someplace on your code page? I can't find one.
     
  20. Jul 9, 2009 #1080 of 10411
    stujac

    stujac Member

    2,343
    0
    Jan 26, 2002
    I agree, if he doesn't have a donate button he should.
     

Share This Page