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. Nov 15, 2009 #1521 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Sorry for the poor wording on my part. I should have stated "there is no way to associate the programId with a pyTivo pulled file." I'm not so much worried about a pyTivo pushed file since it is marked copy-protected, but I imagine the same is true about associating that piece of metadata with a pyTivo pushed file.
     
  2. Nov 15, 2009 #1522 of 10412
    CrispyCritter

    CrispyCritter Purple Ribbon Wearer

    3,646
    0
    Feb 28, 2001
    North...
    My reading of this is that there are two issues that need to be addressed in my situation, and what you're doing (thanks!) addresses the most important one, but still has problems.

    My setup is having a series auto-transferred on TiVo 1, and then watching an episode of the show on TiVo 2, pulling it via pytivo from the PC. Currently that show on TiVo 2 will be infinitely auto-transferred back to PC, since it doesn't have a programid.

    Your current solution solves the infinitely looping problem (I believe), but still means one extra copy of everything I watch this way on TiVo 2 will now appear in the Series archive on the PC, cluttering up that list and taking up space.

    I'm not sure that this can be attacked from just kmttg; the easiest solution (and I really have no idea how easy it is) might be to add programid to the info that pyTivo cares about and stores.
     
  3. Nov 15, 2009 #1523 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    How about a kmttg option to not auto transfer any program that does not have a ProgramId?
     
  4. Nov 15, 2009 #1524 of 10412
    CrispyCritter

    CrispyCritter Purple Ribbon Wearer

    3,646
    0
    Feb 28, 2001
    North...
    That works for me, and sounds like it should be reasonable in general. If it doesn't have a ProgramId then that copy wasn't recorded by the TiVo. Restricting auto-transfers to TiVo-originated shows sounds good.

    An alternative I was thinking about was to have pulled shows copy-protected as well as pushed shows, but your solution should be much easier to implement!
     
  5. Nov 15, 2009 #1525 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    If you like please visit this issue for a beta version containing new changes including this new ProgramId filter and filter by TiVo name for Auto Transfers (among several other things):
    http://code.google.com/p/kmttg/issues/detail?id=66
     
  6. Nov 15, 2009 #1526 of 10412
    CrispyCritter

    CrispyCritter Purple Ribbon Wearer

    3,646
    0
    Feb 28, 2001
    North...
    Looks good! A quick test of both restricting an auto-filter to a TiVO, and not auto-transferring a pytivo'd copy of a show both worked. (Not the first time I tried; I just hit 'OK' and didn't hit 'UPDATE' first in auto-transfer configure. But I understand why you want both; it was just confusing the first time.)
     
  7. Nov 15, 2009 #1527 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    +1 on that idea. :up:
     
  8. Nov 16, 2009 #1528 of 10412
    Krelnath

    Krelnath New Member

    3
    0
    Feb 11, 2009
    Ran into a problem downloading sunday's ep of "The Prisoner" on AMC. kmttg failed to download.

    From the tivo itself, the ep title is 'Arrival; Harmony' (note the semicolon). Lools like the semicolon is confusing something.

    Relevant lines from the log:

    DOWNLOADING D:\TiVo\YYYY\The Prisoner #001 - Arrival Harmony (2009-11-15).TiVo ...
    D:\Programs\kmttg\curl\curl.exe --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar C:\Users\ZZZZZZZ\AppData\Local\Temp\cookie7422760316985141032.tmp --url hxxp://999.999.999.999:80/download/The%20Prisoner.TiVo?Container=%2FNowPlaying&id=1089403 --output "D:\TiVo\YYYY\The Prisoner #001 - Arrival Harmony (2009-11-15).TiVo"
    Download failed to file: D:\TiVo\YYYY\The Prisoner #001 - Arrival Harmony (2009-11-15).TiVo
    Exit code: 2
    Warning: bad output glob!​

    Any suggestions?
     
  9. Nov 16, 2009 #1529 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    It's not the semicolon causing a problem since that character (and other illegal characters) is intentionally stripped from the file name as you will note from the output. On the surface I don't see anything wrong. Did you try to download it again and do you repeatedly get same error? If so it could be a fatal glitch in the source recording which TiVo server is failing to offload. If that's the case if you try a web browser to download the file you will likely run into a similar problem.

    I don't think the problem is file name related.
    I setup a similar file naming template to what I think you have:
    Code:
    [mainTitle][" #" EpisodeNumber " - "][episodeTitle] ([monthNum]_[mday]_[year])
    
    Then tried it out on a show that has episode number and it worked fine:
    Code:
    >> DOWNLOADING C:\home\dvd\Rescue Me #518 - Carrot Three-Minute Replay (08_09_2009).TiVo ...
    "C:\home\kmttg java testing\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar C:\Users\Kevin\AppData\Local\Temp\cookie3204214199951617123.tmp --url http://192.168.1.107:80/download/Rescue%20Me.TiVo?Container=%2FNowPlaying&id=2257761 --output "C:\home\dvd\Rescue Me #518 - Carrot Three-Minute Replay (08_09_2009).TiVo"
    C:\home\dvd\Rescue Me #518 - Carrot Three-Minute Replay (08_09_2009).TiVo
    size=115.10 MB elapsed=00:01:35 (10.16 Mbps)
    ---DONE---
    
     
  10. Nov 16, 2009 #1530 of 10412
    janry

    janry New Member

    17,688
    0
    Jan 2, 2003
    Nashville, TN
    Have you seen this thread?

    http://www.tivocommunity.com/tivo-vb/showthread.php?p=7611511

    I tried the suggestion to run comskip on my TiVo files and indeed it does fix the audio problem.

    But on HD files, the video plays fine for a few seconds, then freezes for a few seconds. SD videos play fine. The freezing does not happen on files I do not run comskip on but they don't have audio.
     
  11. Nov 16, 2009 #1531 of 10412
    CrispyCritter

    CrispyCritter Purple Ribbon Wearer

    3,646
    0
    Feb 28, 2001
    North...
    I had no problems with it - my auto-load of it worked fine last night. I'm running the latest beta (v0.7ebeta). kmttg removed the semi-colon when creating the file name for me; my filename is
    ep001_Arrival Harmony_(11_15_2009).mpg

    Now I just have to move all those old "The Prisoner" elsewhere!
     
  12. Nov 16, 2009 #1532 of 10412
    Krelnath

    Krelnath New Member

    3
    0
    Feb 11, 2009
    tried again, same result - dies immediately with same errors via kmttg v0p7d.

    Downloaded via web browser, worked ok.

    Any other other suggestions?
     
  13. Nov 16, 2009 #1533 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    It looks like the problem is #001 in output file name. When I try curl from command line and using #001 in output file name I get:
    internal error: invalid pattern type (0)
    It only does that for #001. If I change to #002 or other 3 digit combinations it works fine.

    So as a workaround if you insert a space or _ (underscore) character after # character in your file naming then that should solve the problem.
    i.e. # 001 is OK, but #001 looks to be a special reserved shell construct of some sort.
    (In next release I've put in fix to change #001 to # 001 for Windows platforms)
     
  14. Nov 16, 2009 #1534 of 10412
    Krelnath

    Krelnath New Member

    3
    0
    Feb 11, 2009
    Think I figured it out, after RTFM-ing the curl docs. :)

    The '#n' sequence is used for output stream redirection to open files for multiple file pulls. The zeroes were ignored, it was just the '1' that ended up pointing to the first file stream. Since we only pull 1 file at a time, none of the other combinations would have an effect.

    Went back through my logs, and this is the first show I've pulled that has had an episode number 1.

    I think it might be a misfeature in curl, as according to the docs, it should be barfing on any '#n' in the output filespec without multiple inputs.

    Looks like adding --globoff to the curl command line turns it off, so the extra space kludge shouldn't be needed.
     
  15. Nov 16, 2009 #1535 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Great, thanks for the research and better solution. I've added --globoff option to curl calls in kmttg and got rid of the #001-># 001 replacement hack.
     
  16. Nov 20, 2009 #1536 of 10412
    philter25

    philter25 New Member

    18
    0
    Jun 9, 2009
    So I downloaded this a month ago to use it to transfer stuff of my tivo to my psp. I worked flawlessly for the first month. Now, with this current batch of videos I transferred, all of them have audio/video sync issues.

    Ive done some reading, is the only fix for this to buy videoredo to fix the av sync problems?

    At what step do the AV sync problems occur? Like can I use tivo desktop to create the .tivo files and then use KMTTG to convert them for the psp? Would that still give me av sync problems?

    I REALLY like KMTTG because the format for the psp, the videos take up almost the full screen. I was using directshow and another program before and the video files came out small.

    Any help would be appreciated.
     
  17. Nov 20, 2009 #1537 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    The problem is glitches in the source digital cable recordings. The .TiVo files have the glitches embedded so it doesn't matter how you downloaded them from your TiVos. The A/V sync problem won't actually show up until you try and edit the mpeg2 file. i.e. If you play back the .TiVo or decrypted .mpg file on your PC then all is fine. But if you then edit the .mpg file to remove commercials and/or encode to another format that is when the A/V sync issues will surface unless you clean up the original .TiVo/.mpg with VRD first.
    As I posted not too long ago if you took same files through Tivo Desktop Plus you would run into similar issues.
    Note that it is well worth the $50 for VRD Plus (all you need) and you can use the trial version to confirm it really works before purchasing and there is good integration with VRD in kmttg.
     
  18. Nov 20, 2009 #1538 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    v0p7e version just released. Consult release_notes Wiki for a summary of all enhancements, changes & fixes.
     
  19. Nov 21, 2009 #1539 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Very nice! Thanks! :)
     
  20. Nov 21, 2009 #1540 of 10412
    jmsxl

    jmsxl New Member

    20
    3
    Nov 21, 2009
    SF Bay Area, CA
    Just discovered kmttg -- Thank You moyekj for this fantastic program!

    I have perhaps an odd request here. Is there a way for me to extract the audio portion of a program? For example, Charlie Rose which is a talk show. I would like to download the audio from these shows to my Ipod nano... don't need the video. I've looked through some of the encoding profiles and it isn't clear to me what to change to pull out just the audio, if that's possible.

    Thanks again!
     

Share This Page