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
#4,396 ·
Anybody else with 20.2.2 software seeing some crazy Episode Numbers in kmttg NPL?

For example, "Two and a Half Men" recorded Thu 11/1 is giving me episode # 25849648.
I thought perhaps it was some weird bug in kmttg but checking the NPL XML from the TiVo that's exactly how it shows up there.
Then I thought perhaps shows with more than 9 seasons perhaps were screwed up with 20.2.2 but I see for example "Dancing with the Stars" which is season 15 with correct episode #s so that's not it. Perhaps it was just a glitch in guide listings for that particular "Two and a Half Men" episode...
I saw the same episode issue before and after the update, but only with 2.5 Men.
 
#4,397 ·
Already tried twice :(
What did you do to reboot? Menu restart or power cut?
Sometimes the menu restart will not fix the problem as a power cut can.
 
#4,398 ·
What did you do to reboot? Menu restart or power cut?
Sometimes the menu restart will not fix the problem as a power cut can.
All this system really does is just grab shows from tivo and encode, so not quite sure what went wrong. But after reinstalling Java and redownloading the latest kmttg, everything's transferring again.

But now, after downloading shows, it's not able to delete them from the xl4:

>> ENCODING WITH PROFILE 'hb_ipod' TO FILE D:\tivo_encoded\Top Gear - Best of 09-10 (11_03_2012).m4v ...
C:\kmttg\handbrake\HandBrakeCLI.exe -i "D:\from_tivo\Top Gear - Best of 09-10 (11_03_2012).mpg" -t 1 -c 1 -f mp4 -I -X 320 -e x264 -b 700 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 0.0 -x level=30:bframes=0:cabac=0:ref=2:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1 -o "D:\tivo_encoded\Top Gear - Best of 09-10 (11_03_2012).m4v"
TWP Delete: connection failed: http://192.168.1.109:8080/confirm/del/268105
java.net.ConnectException: Connection timed out: connect
 
#4,399 ·
All this system really does is just grab shows from tivo and encode, so not quite sure what went wrong. But after reinstalling Java and redownloading the latest kmttg, everything's transferring again.

But now, after downloading shows, it's not able to delete them from the xl4:

>> ENCODING WITH PROFILE 'hb_ipod' TO FILE D:\tivo_encoded\Top Gear - Best of 09-10 (11_03_2012).m4v ...
C:\kmttg\handbrake\HandBrakeCLI.exe -i "D:\from_tivo\Top Gear - Best of 09-10 (11_03_2012).mpg" -t 1 -c 1 -f mp4 -I -X 320 -e x264 -b 700 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 0.0 -x level=30:bframes=0:cabac=0:ref=2:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1 -o "D:\tivo_encoded\Top Gear - Best of 09-10 (11_03_2012).m4v"
TWP Delete: connection failed: http://192.168.1.109:8080/confirm/del/268105
java.net.ConnectException: Connection timed out: connect
For an XL4 (or any series 4 machine) you should be using "Enable iPad style delete task" not "Enable TivoWebPlus Delete task".
(You also have to turn on "Enable iPad style communications with this TiVo" under Config-Tivos for that TiVo if you haven't done so and you have to refresh the NPL with that enabled before you will be able to delete).
 
#4,400 ·
v0p9a version just released.

This contains new RPC "Deleted" tab which allows you to see and recover shows from Recently Deleted folder.

Also adds a "Include History" boolean to the "Won't Record" tab that when enabled means past history will be included in the table so that one can explore why certain shows of interest did not record in the past.

Finally includes update discussed above to properly list record dates for shows transferred to TiVos running the new 20.2.2 software.

See release_notes for all the details.
Thanks for quick turn around moyekj! I've tested and everything looks good for me.

Also - the new enhancements are welcome additions!

Thanks!!
Ed
 
#4,401 ·
v0p9a version just released.

This contains new RPC "Deleted" tab which allows you to see and recover shows from Recently Deleted folder.

Also adds a "Include History" boolean to the "Won't Record" tab that when enabled means past history will be included in the table so that one can explore why certain shows of interest did not record in the past.

Finally includes update discussed above to properly list record dates for shows transferred to TiVos running the new 20.2.2 software.

See release_notes for all the details.
Thanks for the new features. The Deleted Files tab will be very helpful.
 
#4,402 ·
Thanks for the new features. The Deleted Files tab will be very helpful.
I just figured out how to permanently delete shows using RPC so next release will add a "Permanently Delete" button to this tab. There have been cases where I've wanted to purge the entire Recently Deleted folder but via the TiVo you can only do 1 show at a time, so being able to select and delete all at once will be useful.
 
#4,403 ·
I actually thought about asking for that yesterday. Would have been very useful to me right after the fall update when everything ungrouped.

From time to time I too need to remove things from the recently deleted folder and a way to do it in kmttg would be great. Thanks for your continued efforts.
 
#4,404 ·
OK, I am slow.....

Just figured out how to use kmttg to manage conflict resolution between two tivos. GREAT FEATURE!

In using it, I run into some things that I either dont know how to do or are not there so some help please.

Once a recording is completed on an alturnate tivo, is there an easy way to transfer the recording to where it should be? IE highlight a recording in the NPL and ask kmttg to tell tivo to transfer the recording?

Would be great if the wont record tab could display conflicts for ALL tivos rather than just one at a time.

When a conflict is shown, an easy way to move the recording to a different tivo?
 
#4,405 ·
Once a recording is completed on an alturnate tivo, is there an easy way to transfer the recording to where it should be? IE highlight a recording in the NPL and ask kmttg to tell tivo to transfer the recording?
No. But for series 4 units MRS makes it seamless to play a show from remote unit so why bother to move the show?

When a conflict is shown, an easy way to move the recording to a different tivo?
That's already there. Change the TiVo pulldown to the TiVo you want to record the show on. Then select the show in the table and click on 'Record'.

Same thing for 'Season Premieres', 'Search' and 'Guide' tabs - you can change TiVo selection to 'Record' or 'Season Pass' to a specific TiVo of your choosing. Note also that for 'Won't Record' the ToDo lists of all configured units is collected so for cases when a show won't record on 1 TiVo but will on another it will be indicated in a different color, and if you click on the entry it will tell you which TiVo it will record on.
This kind of multi TiVo collaboration is something that's not there on the iOS/Android apps, coupled with the fact I can do it outside my LAN as well. I do most of my TiVo conflict management away from home.
 
#4,406 ·
Main reason for wanting to transfer the recording is that the NPL is not integrated between the two tivos. The user has to know the recording was done on a different unit than the one they are viewing and go there to start the stream. Not user frinedly.

Also for us, all recordings we actually watch are on one box, not scattered among several. Would not matter if the NPL was integrated......

Anyway, a workaround? I would think selecting the recording for transfer with the correct options including push configured correctly could accomplish what I am after even if via 2 seperate transfers. Would be nice if there was a way to initiate a MRV transfer via kmttg though.

Using the transfer to pc and then push to the other tivo idea, what would be the most expedient method to do this and preserve as much metadata as possible along with grouping?
 
#4,407 ·
I do most of my watching from 1 box as well. It's very easy to see the NPL of another unit though and now with 20.2.2 HDUI even the 'Play' shortcut works to initiate MRS of a show from another unit, so the behavior is practically the same as having a local NPL. Making a copy of a show from 1 TiVo to another is very clumsy because now you have 2 places to remember to remove a show. I never use MRV anymore.
So what's hard about viewing NPL of another TiVo? Yes you have to navigate to bottom of NPL to get to another TiVo, but the '->' button on remote makes that easy. So yes there's a couple of extra remote clicks to get to listings on another TiVo but to me that's a lot cleaner than making copies of shows just for the purposes of viewing on a different TiVo.
 
#4,408 ·
Main reason for wanting to transfer the recording is that the NPL is not integrated between the two tivos. The user has to know the recording was done on a different unit than the one they are viewing and go there to start the stream. Not user frinedly.

Also for us, all recordings we actually watch are on one box, not scattered among several. Would not matter if the NPL was integrated......

Anyway, a workaround? I would think selecting the recording for transfer with the correct options including push configured correctly could accomplish what I am after even if via 2 seperate transfers. Would be nice if there was a way to initiate a MRV transfer via kmttg though.

Using the transfer to pc and then push to the other tivo idea, what would be the most expedient method to do this and preserve as much metadata as possible along with grouping?
Push transfers very little of the metadata and episodes of a series will not be grouped with episodes recorded on the destination TiVo. Strangely enough, maximum metadata transfer is a pull from a computer using pyTiVo and a text metadata file. So you have to transfer it w/create metadata file and decode options set then pull it to the other TiVo.
 
#4,409 ·
I thought I asked this before, but I don't see it mentioned in the past few pages (since I got my Premiere 4), or I missed it..

When downloading the Now Playing list from my Premiere 4, it is FAST.. But it VIRTUALLY always (but I could swear once or twice it did not) downloads in 16 show chunks, rather than 128 with my Tivo HD. Even 16 at a time, it is a zillion times faster than the Tivo HD…

But it would be EVEN FASTER if it downloaded 128 at a time. Why does it download only 16 at a time? Is this a Premiere vs. previous Tivo limitation?


Also, I tried turning on iPad style communication, and got an exception about a bunch of missing graphic images (for the remote). I haven't checked the site yet, I think this MIGHT be mentioned… But the recommended upgrade path of "just replace the jar file" isn't always sufficient in times of changes like this. So I guess I'm just pointing this out, and maybe the prefs file should live outside the folder in a place that wouldn't be blown away if I just replaced the previous entire package with the new one. (I really wanted to try out the 'delete' function, even though I'm wary to try it at first. Being able to download a show then delete it from kmttg is intriguing..)
 
#4,410 ·
I thought I asked this before, but I don't see it mentioned in the past few pages (since I got my Premiere 4), or I missed it..

When downloading the Now Playing list from my Premiere 4, it is FAST.. But it VIRTUALLY always (but I could swear once or twice it did not) downloads in 16 show chunks, rather than 128 with my Tivo HD. Even 16 at a time, it is a zillion times faster than the Tivo HD…
Yes it's something TiVo changed in their software for series 4 TiVos. Not sure why they made it so small...

Also, I tried turning on iPad style communication, and got an exception about a bunch of missing graphic images (for the remote). I haven't checked the site yet, I think this MIGHT be mentioned… But the recommended upgrade path of "just replace the jar file" isn't always sufficient in times of changes like this. So I guess I'm just pointing this out, and maybe the prefs file should live outside the folder in a place that wouldn't be blown away if I just replaced the previous entire package with the new one. (I really wanted to try out the 'delete' function, even though I'm wary to try it at first. Being able to download a show then delete it from kmttg is intriguing..)
Download the latest .zip and just unzip right over your current installation allowing overwrites. Configuration files are not part of the .zip so will remain unaffected. This is always the recommended way to upgrade since once in a while it's more than just the .jar file that gets updated.
 
#4,411 ·
Push transfers very little of the metadata and episodes of a series will not be grouped with episodes recorded on the destination TiVo. Strangely enough, maximum metadata transfer is a pull from a computer using pyTiVo and a text metadata file. So you have to transfer it w/create metadata file and decode options set then pull it to the other TiVo.
If I was going to do a pull from the tivo, I would just pull from the originating tivo rather than transfering to a pc first.

Really was looking for a way to initiate a MRV trasfer from the PC as a remote command. I am hoping moyekj finds a way to make this work at some point. That is, if the commands are even threre to send.
 
#4,412 ·
Really was looking for a way to initiate a MRV trasfer from the PC as a remote command. I am hoping moyekj finds a way to make this work at some point. That is, if the commands are even threre to send.
MRV is not using the RPC protocol (MRV has been around a long time as you know) and there is no way I know of to initiate MRV automatically from 1 TiVo to another. MRV is always started from the client TiVo so I doubt there's a way to initiate it from somewhere else.
 
#4,413 ·
If I was going to do a pull from the tivo, I would just pull from the originating tivo rather than transfering to a pc first.
I was responding to your expressed desire to retain as much of the metadata as possible. Unfortunately, even a Premiere to Premiere direct transfer leaves something to be desired although it is better than a push in that regard.
 
#4,414 ·
Download the latest .zip and just unzip right over your current installation allowing overwrites. Configuration files are not part of the .zip so will remain unaffected. This is always the recommended way to upgrade since once in a while it's more than just the .jar file that gets updated.
OK, I reread the instructions and it does talk about unzipping over, but it ALSO says "or just replace the kmttg.jar file of the old installation with the one from the new installation.", which is what I've been doing so far..
 
#4,415 ·
OK, I reread the instructions and it does talk about unzipping over, but it ALSO says "or just replace the kmttg.jar file of the old installation with the one from the new installation.", which is what I've been doing so far..
Where did you see that? For example the Windows installation Wiki says this:
"If upgrading from a previous Java kmttg installation you can normally unzip over the previous installation. That way you can preserve the kmttg configuration and avoid having to re-configure. NOTE: In some cases there are other files and folders aside from kmttg.jar updated as part of a release, so you should unzip the zip file over the top of your previous installation to make sure you overwrite all files that make up an installation. When unzipping instruct Windows to overwrite previous files. If you want to install to same location and make sure to get a clean new installation then remove everything except *.ini files. That way you get a full new installation but preserve all your previous settings."

If you can point me where you saw "just replace kmttg.jar" other than perhaps some older release notes I'd like to know so I can fix it.
 
#4,418 ·
I've been puzzled by those instruction--what does "unzip over the current installation" mean on a Mac? Can you explain the steps?

If you drag the zipped file into the Applications folder and then unzip it, it just installs a duplicate folder. If you drag the zipped file into the previous kmttg folder, then unzip it, it puts a duplicate file into the kmttg folder. So either way, you end up with duplicates instead of updating the current files.
 
#4,419 ·
I don't know how the Mac works (never worked with one) or what different zip packages there are, but with Windows (various zip utils) and Linux command line "unzip" when you unzip you are prompted if it is OK to overwrite files at which point you say yes. i.e. The goal is to overwrite any files in the previous installation however you need to accomplish that. Perhaps on the Mac you need to unzip somewhere else and then copy and overwrite.
 
Top