TiVo Community Forum banner
  • TiVoCommunity.com Ambassador Program Now Open! >>> Click Here

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

2M views 13K replies 921 participants last post by  mattack 
#1 ·
EDIT: This program has evolved a lot since this 1st post and now is written in Java and much easier to install than before (very easy on Windows and Mac OSX)... See http://sourceforge.net/projects/kmttg/ for details or visit the end of this thread for more up to date information.

kmttg is a Perl/Tk program I wrote to facilitate TivoToGo (TTG) transfers that can download, create pyTivo metadata, decrypt, run comskip & comcut (commercial detection and removal) and re-encode multiple shows you select from your Tivos all in 1 step.
You can select one or more shows at a time and then with one click of a button the program will download all the selected items, with the options of also automatically creating a metadata file for pyTivo, decrypting .TiVo files to .mpg, running comskip (commercial detection and removal program), and automatically re-encoding to a more portable format using mencoder, ffmpeg or any other command line encoder of your choosing. The program queues up multiple jobs and displays time, size and speed statistics for ongoing jobs.

For more information, screenshots and download visit:
http://sourceforge.net/projects/kmttg

Web page contains windows executables for all 3rd party tools used. The only other requirement of course is you must have Perl installed. Runs under Windows or Linux - tested with WinXP SP2 & Linux Red Hat Enterprise 4.

If you do try this out would appreciate some comments/feedback. For any programmers out there feel free to tinker and make improvements yourself.
 
See less See more
#6,146 ·
What cable co are you with?
Time Warner... The most likely to set everything to "no copy", that is, unles you live in Albany. (Some folks in Albany started a letter-writing campaign, and got their local programming cci corrected)

It would be very unusual for you to be able to actually remove the CableCARD from the STB, you might not be able to pair it with the Roamio, and it's liable to be a single stream card which wouldn't work at all in a Roamio. Are you certain that your STB even has a CableCARD? I know the one connected to my S2 doesn't.
You're correct, of course, but all of the cable boxes in my area have the CableCards sticking out of the back. There's a label on mine that says M-Card. Aside from that, I actually requested a particular make and model set-top box, so that I could buy that TiVo direct-connect IR blaster cable that you see all over eBay. (My channel changes are more reliable now.)

I might start my own thread on this, so that it's not frowned upon that we're off-topic here.
 
#6,149 ·
Time Warner... The most likely to set everything to "no copy", that is, unles you live in Albany. (Some folks in Albany started a letter-writing campaign, and got their local programming cci corrected)

You're correct, of course, but all of the cable boxes in my area have the CableCards sticking out of the back. There's a label on mine that says M-Card. Aside from that, I actually requested a particular make and model set-top box, so that I could buy that TiVo direct-connect IR blaster cable that you see all over eBay. (My channel changes are more reliable now.)

I might start my own thread on this, so that it's not frowned upon that we're off-topic here.
Something that should have occurred to me immediatly but I was distracted by your plan to move a CableCARD from an STB to a TiVo - even if you are successful, it won't do you any good. It is the device (IOW the TiVo) that honors the CCI byte that is set when it is transmitted by the cable co. The CableCARD is not involved.
 
#6,150 ·
I had to reload xp64 and now I can't get kmttg to save my settings. The folder is in the root drive (C:\kmttg) so I bunped my profile up to administrator but no matter what I try it says it can't save changes to the config file. Any suggestions? It won't take my MAK so I can't access my Tivo's and none of my settings like use VideoRedo save after hitting ok...
 
#6,151 ·
Right click on folder and go to Properties-Security and unset any read-only properties that may be in effect. (Apply any changes recursively to all files if needed). Then test that you can create and/or modify files under that folder before starting kmttg.
 
#6,152 ·
Thanks, making progress....

Now it says my videoredo path isn't valid. This is where it is, is there a better place to load it or is there something in this patch kmttg doesn't like?

Code:
C:\Program Files (x86)\VideoReDoPlus\VRDPlus3.exe
i figured it out, it just wants the directory and not the .exe file...
 
#6,153 ·
Wow, I'm not having a good night. It connects fine to one Tivo but not the other.

Code:
>> Getting Now Playing List from Other ...
C:\kmttg\curl\curl.exe --retry 3 --anyauth --globoff --user tivo:MAK --insecure --cookie-jar D:\Chuck\LOCALS~1\Temp\cookie5683873835506203735.tmp --url https://192.168.0.191/TiVoConnect?Command=QueryContainer&Container=/NowPlaying&Recurse=Yes&AnchorOffset=0 --output D:\Chuck\LOCALS~1\Temp\NPL2178436811548736148.tmp 
Failed to retrieve Now Playing List from Other
Exit code: 7
Check YOUR MAK & IP settings

curl: (7) couldn't connect to host

curl: (35) Unknown SSL protocol error in connection to 192.168.0.191:443
Any idea what can be causing this? It found the Tivo automatically and the IP looks right. The MAK worked on my other tivo and I pasted it directly from the tivo website...

Figured out the problem here, it's the Tivo. It received an update recently and now no sharing is working. Can't get it to see my pytivo shares or anything. Sorry...
 
#6,154 ·
You were right, there were four repeat manual recordings that were not copied. I was able to copy the rest of the SPs. The order of the SPs was different than what was on the S3 but that's OK since with the 4 tuner Roamio I was going to change them anyway. I got all SPs including wishlists!
I had the same errors due to a few manual recording SPs on my HD. Glad to know that's all it was.

I'm wondering about the ordering, though. Conflicts shouldn't be a problem with the extra tuners, but I do depend on some channel-specific SPs being prioritized above more general wish list entries. I noticed that the out-of-order SP list from my HD appears in kmttg to be sorted on the "__priority__" value, when the "priority" value would give the correct order.

I tried tweaking the "__priority__" values in the saved SP file to reflect the correct order (based on "priority", although that starts at 0 and has gaps, so I set __priority__ to consecutive integers starting at 1) and loaded it, but kmttg simply lists the entries in the order they appear in the file (so the PRIORITY column reflects neither "priority" nor "__priority__"). I could reorder the entries in the file, but before going any further I'll ask:

When I do a "Copy" to my new Roamio, what priority values will it use? Is it safe to experiment (Copy all, Delete all, repeat) without tickling any known TiVo bugs?

Great program! Thanks!
Can't agree more. Thanks, moyekj!

--dave
 
#6,156 ·
Any idea what can be causing this? It found the Tivo automatically and the IP looks right. The MAK worked on my other tivo and I pasted it directly from the tivo website...

Figured out the problem here, it's the Tivo. It received an update recently and now no sharing is working. Can't get it to see my pytivo shares or anything. Sorry...
A reboot is in order, when you get any unexplained errors or anything unusual.
When you see "Pending Restart" in the Network status, when it receives an update, you do not need to wait until it reboots itself. Just restart it manually, no matter if you pull the plug or through the menu.
 
#6,157 ·
A reboot is in order, when you get any unexplained errors or anything unusual.
When you see "Pending Restart" in the Network status, when it receives an update, you do not need to wait until it reboots itself. Just restart it manually, no matter if you pull the plug or through the menu.
I rebooted several times and that thing still won't see the pyTivo shares. i turned sharing off on the website and kept connecting until the status was i,i,i,a the turned it back on until the status is a,a,a,a and it still won't see the pytivo shares. My tivoHD is fine but my premeir no longer shares or see's pyTivo.

So I signed up for the next release hoping it will fix the problem. The version I just received was the one from late October (fall release) so there is a newer OS currently being released. I sure hope that fixes it.

What Tivo should know, the only reason I keep the premier subscribed is because it records the shows I keep and archive. my TivoHD is the one we watch. If I can't get the shows off the box then there's no reason to have it sub'd. I'll just save that $12/mo...
 
#6,158 ·
I rebooted several times and that thing still won't see the pyTivo shares. i turned sharing off on the website and kept connecting until the status was i,i,i,a the turned it back on until the status is a,a,a,a and it still won't see the pytivo shares. My tivoHD is fine but my premeir no longer shares or see's pyTivo.

So I signed up for the next release hoping it will fix the problem. The version I just received was the one from late October (fall release) so there is a newer OS currently being released. I sure hope that fixes it.

What Tivo should know, the only reason I keep the premier subscribed is because it records the shows I keep and archive. my TivoHD is the one we watch. If I can't get the shows off the box then there's no reason to have it sub'd. I'll just save that $12/mo...
If you are getting TTG: i,i,i, it seems to show that under DVR Preferences, the "Transfers" and/or "Downloads" boxes, in your tico.com account, were unchecked somehow. Perhaps if it was previously subscribed to Tivo service, then became unsubscribed and re-subscribed.

If they are turned off, then you cannot do any transferring to/from that Tivo.

If they are currently checked, try this:
  • Uncheck the boxes.
  • Force Tivo Connection to Tivo boxes.
  • Re-check those boxes.
  • Force another Tivo Connection.

For PyTivo, you can restart the server by running the commands to "Stop Service", then do "Start Service"
 
#6,159 ·
The i,i,i,i, were my attempt to do this...

If they are turned off, then you cannot do any transferring to/from that Tivo.

If they are currently checked, try this:
  • Uncheck the boxes.
  • Force Tivo Connection to Tivo boxes.
  • Re-check those boxes.
  • Force another Tivo Connection.
Anyway, I got a software update and all is happy now. I guess that previous OS got corrupted or something during install... thanks...
 
#6,161 ·
I'm still on 1p0j, doesn't look like the update changes this...

i just got a Roamio Plus. I got it up and subscribed (though it can't see the shows on my Premiere 4, yes I connected to the service several times -- it did realize it was subscribed).

I couldn't get their SP manager working (maybe for the same reason as above -- maybe it's not fully "set up").

So I tried to do this in kmttg. First of all, the kmttg configuration page doesn't mention the Remote tab at all.

Anyway, I figured out how to get the SP list saved from my Premiere 4 and load it to Roamio.. I select all rows (which is hard, since cmd-A doesn't work, I have to shift-click after selecting the first item and scrolling to the bottom).

Out of my 271 Season Passes (yes that's excessive), it seemed to copy only 61 of them.

Why is it not copying all of them and how do I make it do so?

The one bug I did find is that while you support wishlists (AWESOME!), my repeated attempts to copy the SP list makes duplicates, only for ARWLs.

Maybe I'm using kmttg wrong.
 
#6,162 ·
I am using the current v1p0k version and the previous version until it was updated, but when I try to use v0p9i, my setting went bonkers. I had to reset the window size, columns and their sizes, also the jobs, stats windows.

It stayed that way even when I returned to the current version.
 
#6,163 ·
Out of my 271 Season Passes (yes that's excessive), it seemed to copy only 61 of them.
Were there error messages for the ones that failed? kmttg prints a message for each SP copy, success or failure. If you have any repeating manual SPs those don't work since there's insufficient data to do the copy. With all the C133 issues lately that could also be a problem as the TiVo servers need to be up and running properly for SP scheduling to work reliably.
 
#6,165 ·
Oh, do you mean that the SP copying really is "the same" as what the TiVo web page uses?

So I don't have to worry (paranoid) about some potential future incompatibility, esp after I sell the other one and no longer have the SPs?
No, it's not the same at all since for one the scheduling is immediate, but the series ID lookup done by the TiVo when scheduling SPs (even on TiVo itself) relies on TiVo servers rather than local guide data. As has become increasingly obvious lately, TiVo is relying more and more on servers for functionality rather than local guide data.
 
#6,166 ·
One minor tweak thought: it would be great if when you went to Update Tools if it told you if you already had the latest version, just like when you try and update KMTTG. As it stands now it just asks if you want to install, regardless if you just installed them a minute ago.
 
#6,167 ·
One minor tweak thought: it would be great if when you went to Update Tools if it told you if you already had the latest version, just like when you try and update KMTTG. As it stands now it just asks if you want to install, regardless if you just installed them a minute ago.
I thought about it, but for tools it could be useful to be able to update in case you messed with tools under kmttg installation (I mess with them all the time but may be the exception). I suppose I could write a file to kmttg directory when tools are updated indicating version that was installed and then report that as part of the tools check, but still allow option to install anyway.
 
#6,168 ·
I updated to version v1p0k. In my kmttg work flow, when I file add a .Vprj file, it deletes the .Vprj file, but not the .mpg file. When I file add a .mpg file, it deletes the .mpg file, but not the .Vprj file.

Any way that I can get kmttg to delete both the .Vprj file & the .mpg file?

Under File -> Configure, I have all the 'remove' check boxes checked.

My workflow is two phases:
Phase 1: Kmttg service does auto-transfer of metadata, decrypt, QS Fix, and ad detect for each show.
Phase 2 happens whenever I get around to it. Launch each .Vprj under VideoRedo, and verify ad-cuts, save .Vprj, then in kmttg add file and then start job with Ad cut, captions, and encode and custom checked.
 
#6,169 ·
I updated to version v1p0k. In my kmttg work flow, when I file add a .Vprj file, it deletes the .Vprj file, but not the .mpg file. When I file add a .mpg file, it deletes the .mpg file, but not the .Vprj file.

Any way that I can get kmttg to delete both the .Vprj file & the .mpg file?

Under File -> Configure, I have all the 'remove' check boxes checked.

My workflow is two phases:
Phase 1: Kmttg service does auto-transfer of metadata, decrypt, QS Fix, and ad detect for each show.
Phase 2 happens whenever I get around to it. Launch each .Vprj under VideoRedo, and verify ad-cuts, save .Vprj, then in kmttg add file and then start job with Ad cut, captions, and encode and custom checked.
Looking at the code with flow broken down as you are doing I can see why files aren't deleted when starting from FILES tab. I've made changes to next release to accommodate that flow. NOTE: The right/expected starting file is the .mpg file, not the .VPrj file.
 
#6,170 ·
I thought about it, but for tools it could be useful to be able to update in case you messed with tools under kmttg installation (I mess with them all the time but may be the exception). I suppose I could write a file to kmttg directory when tools are updated indicating version that was installed and then report that as part of the tools check, but still allow option to install anyway.
I can see that. I don't touch any of the tools, but I can definitely understand a need to "reset" everything back to default for a variety of reasons.
 
Top