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. Mar 30, 2010 #2101 of 10410
    Phantom Gremlin

    Phantom Gremlin New Member

    1,555
    0
    Jun 20, 2002
    Tualatin,...
    I'm still getting lots of Server Busy return codes. But I think that's because my WD expander is going bad. E.g. it sometimes takes 3 or 4 attempts at booting (doing a power cycle each time) before I get the TiVo critter splash movie. Most of the time it goes to a blank gray screen instead.

    Anyway, with the v0p7j version I still have Server Busy, but the transfer will sometimes recover. For example, one file succeeded on the 4th retry. Once a transfer starts properly, it will always run to completion. It never hangs up in the middle.

    So my initial reaction is that the retry code has helped. I've been able to retrieve all my programs off the TiVO and will replace the HD soon.
     
  2. Apr 1, 2010 #2102 of 10410
    kmp14

    kmp14 New Member

    75
    0
    Sep 18, 2003
    I am brand new to kmttg, and wow, how cool! I am having a minor issue. The Auto Transfers are not getting placed in the location I have specified in the ".mpg Output Dir". I have the configuration set to decrypt and QS Fix. When I manually run a show, it works as expected, and the file gets processed into the .mpg Output Dir. but Auto Transfers dont, the stay in the .Tivo Output Dir. I am gonna search the thread, but this question might be tricky to find...thanks!

    Oh yeah, and I am running the auto transfers as a service, and the service runs under an account that has access to everything. The mpg Output Dir is a network drive mapping.
     
  3. Apr 1, 2010 #2103 of 10410
    moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    I think the key issue is the following:
    "The mpg Output Dir is a network drive"
    There was another user using a network drive as one of the output dirs but he was having same problem you specify. Turns out that the problem was in service mode kmttg didn't have access to network drive, and when that happens kmttg will reset to tivoDir or the kmttg installation dir. You should see something like the following in auto.log file if that is what is happening:
    "Configured mpegDir does not exist, resetting to default"

    Part of the problem may be service order start. If kmttg service starts before the network drive is mounted/available then that would be a problem. Other problem could be permissions issue if service is not using an account with proper permissions to see network drive.
    Ultimately the user resolved his problem but unfortunately did not share all the details of exactly how he fixed it.

    One experiment you can try is make sure network drive is mounted, then stop kmttg service and start it again and then see if you get the auto.log message I mentioned above and if not then it probably will work. Then it becomes a question of setting up service to start only after network mount is available which I'm not quite sure how one would go about doing.
     
  4. Apr 1, 2010 #2104 of 10410
    Phantom Gremlin

    Phantom Gremlin New Member

    1,555
    0
    Jun 20, 2002
    Tualatin,...
    Well, you can always unconditionally "sleep" for 30 or 60 seconds after the service is started. That should allow any and all network mounts to become available.

    Or maybe, on startup, try to access the mount and, if the directory doesn't exist, retry 5 times, delaying 10 seconds each retry, before giving up and reverting to current behavior.
     
  5. Apr 1, 2010 #2105 of 10410
    moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    It also may depend on how you are specifying the output dir. If you are not already you should use the following syntax for the network share instead of a network volume:
    i.e. \\server\share
    instead of via a network mounted volume such as:
    h:\share
     
  6. Apr 1, 2010 #2106 of 10410
    kmp14

    kmp14 New Member

    75
    0
    Sep 18, 2003
    I really appreciate the response. Sure enough, there were "Configured mpegDir does not exist" errors in the auto.log. Strange thing is, this was not after a reboot. The drive mapping is there, then I start the service, and I get the error. Again, the service is set up to run as my account which has access to the shares. Regardless, I did find the post from the person with the same question. He resolved it by creating a batch file that copies the completed files to the desired location, and has it called as a custom script in kmttg. One running now. Hopefully it works. Thanks again for the help!
     
  7. Apr 1, 2010 #2107 of 10410
    kmp14

    kmp14 New Member

    75
    0
    Sep 18, 2003
    Just saw this post. Instead of the batch file, I am going to try the UNC approach. I assumed that would not work, but it looks like it does. I will let you know. Thanks!
     
  8. Apr 2, 2010 #2108 of 10410
    SoBayJake

    SoBayJake New Member

    407
    0
    Feb 6, 2002
    Los Angeles, CA
    First of all, I just found kmttg recently, and love it. Thanks so much!

    However, I'm having issues with tivodecode. I'm on a Mac.

    I think I have the latest version of kmttg (v0p7j) and the tivodecode from "kmttg_MacOSX_tools_v0p7j.zip".

    tivodecode reports this:
    $ ./tivodecode --version
    tivodecode 0.3pre4
    Copyright (c) 2006-2007, Jeremy Drake
    See COPYING file in distribution for details
    Encryption by QUALCOMM ;)

    I think that's the right version?

    When I download program streams, everything is fine. When I download as transport streams, things don't work so well. The files download faster, but tivodecode fails. It returns error 138 to kmttg, and you get "Bus error" when running it from the command line. The partially completed file is somewhat decrypted, but has severe macroblocking every few seconds.

    Any thoughts?
     
  9. Apr 2, 2010 #2109 of 10410
    moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    Yes that's the right version. tivodecode with TS support is a relatively new development that some gracious anonymous user posted at the tivodecode sourceforge site, so there probably are some minor coding issues still to work out.
    One question for you is does the TS format fail to decode for all programs you have tried from multiple channels or does it work right in some cases? Reason I ask is it has worked fine for other Premiere users, so the issue may well be headend, channel or show specific.
    I haven't delved into the source code myself so can't really provide insight on what could be wrong but there may be others with experience with video editing that may be able to track down the issue with the help of some sample trouble videos.

    EDIT: At least the Premiere still offers choice of TS & PS formats and the PS downloads reportedly (I don't have a Premiere myself) are still much faster than on S3/THD platforms, so that is still a good choice. tivodecode for PS formats has been proven to be very reliable over several years now so is rock solid.
     
  10. Apr 2, 2010 #2110 of 10410
    SoBayJake

    SoBayJake New Member

    407
    0
    Feb 6, 2002
    Los Angeles, CA
    At least 2 shows, one on the CW, one on ABC (I think).
    It was on a mac mini, running 10.6.3. I'll try on my MacBook pro this weekend. I might even download Xcode and see if I can see where it's crashing.
     
  11. Apr 2, 2010 #2111 of 10410
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Yes, that's the latest version.

    Hmmm.... Usually "Bus Error" is one of those error messages that I get when I use an unsupported OS, or unsupported hardware. (Like a G4, or Tiger OS) I saw in one of your other messages that you're using the recently released 10.6.3 OS, and I cannot confirm nor deny that this is a supported OS with the tivodecode that I compiled last week.

    I'm not jumping on 10.6.3 right now, because some of the 'other' tools that I use are not yet supported on that OS. It doesn't surprise me that this piece doesn't work with the 10.6.3 OS right now.


    In the meantime, I'll try out a Transport stream with the latest/greatest that I've got...
     
  12. Apr 3, 2010 #2112 of 10410
    moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    Note that the same tivodecode works fine for PS decrypt which strongly suggests the compile and binary are fine.

    SoBayJake, if you are willing to contribute a short TS clip of a troubled show along with your MAK you can P.M. me and we can go from there. Otherwise you are relegated to using PS downloads for now. I don't think this forum is appropriate for detailed discussions about tivodecode since technically it circumvents TiVo encryption and TiVo hacking discussions are forbidden here.
     
  13. Apr 3, 2010 #2113 of 10410
    videojanitor

    videojanitor New Member

    678
    0
    Dec 21, 2001
    Greetings! Just getting starting trying to use this program -- picked up a TiVo Premiere earlier this week mainly because of the ability to get the improved transfer speeds. But so far, I'm coming up empty in my attempts to get kmttg to download anything.

    It SEES the content in the TiVo, but when I attempt to download from it, I get a "Server Busy" error message, and then "Warning: Transient error. HTTP problem."

    I believe it's installed properly, as well as the associated apps, but I can't get past this step. I also have TiVo Desktop installed, and that works. But perhaps that is causing a conflict? Any idea how to begin troubleshooting this?

    Thanks!
     
  14. Apr 3, 2010 #2114 of 10410
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    kmttg has a "Reset TiVo Web Server" option that you can try, or restart the TiVo DVR. My Series2 didn't correct itself using the "Reset TiVo Web Server", but did start working again after a restart of the DVR.
     
  15. Apr 3, 2010 #2115 of 10410
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Now that I've done my little test, I can confirm that Transport Streams are working fine on the 10.6.2 version of the OS, with my MacBook Pro hardware. It may have something to do with 10.6.3, but like I mentioned I'm holding off with that update until Cisco updates their VPN stuff.

    He could always compile his own directly on 10.6.3, and see if that changes things...
     
  16. Apr 3, 2010 #2116 of 10410
    videojanitor

    videojanitor New Member

    678
    0
    Dec 21, 2001
    Well ain't that somethin' -- I tried the "Reset TiVo Web Server" option, but it didn't work. On your suggestion, I just restarted the TiVo, and now it's working!

    Thanks!

    Edit: Well, only-semi success as it turns out. For whatever reason, everything I select for transfer only partially completes. It seems to dump out at the same point in each show -- one might go to 100MB or so, while another will transfer 580MB and then stop. It seems to think it has finished -- no errors are returned. The same shows transfer completely with TiVo Desktop. (?)
     
  17. Apr 3, 2010 #2117 of 10410
    SoBayJake

    SoBayJake New Member

    407
    0
    Feb 6, 2002
    Los Angeles, CA
    I'm downloading XCode right now, and I'll try compiling to see if I can make any progress. Also downloading an episode of Lost that I'll try. And I'll make a few short recordings to see what I can get.

    I realized one of the clips was transferred from my S3, so that might have something to do with it, I don't know. But I'll get some fresh clips recorded directly on the Premiere to test.
     
  18. Apr 3, 2010 #2118 of 10410
    moyekj

    moyekj Well-Known Member

    11,132
    27
    Jan 23, 2006
    Mission...
    It's not a good idea to run TiVo Desktop at the same time as you could be over-taxing the TiVo web server. I would suggest you pause TiVo Desktop. Better yet dump TiVo Desktop all together as the combination of kmttg and pyTivo IMO is a much better solution.
     
  19. Apr 4, 2010 #2119 of 10410
    SoBayJake

    SoBayJake New Member

    407
    0
    Feb 6, 2002
    Los Angeles, CA
    So I think the TiVo was in a bad state. An unexpected reboot (caused by hitting "Record") seems to have cleared things up!

    Sorry for the false alarm!
     
  20. Apr 4, 2010 #2120 of 10410
    videojanitor

    videojanitor New Member

    678
    0
    Dec 21, 2001
    Thanks for the info and suggestion -- I will do just that ...

    <minutes elapse>

    ... OK, TiVo Desktop is gone. Same result when trying to download the two shows I tried before. Tried a third show, and it transferred fine. I suppose it's possible the other two are somehow corrupt, though TiVo Desktop transferred them. Is there a way to get kmttg to ignore the errors and keep on going?
     

Share This Page