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. Feb 6, 2011 #3021 of 10405
    charlesd81

    charlesd81 New Member

    77
    0
    Apr 19, 2006
    PA
    moyekj,
    I've received this error after downloading the .tivo file and running tvdecode against it.

    processing frame: No error
    Encryption by QUALCOMM ;)

    Invalid MAK -- aborting

    What does this mean and how can I resolve it? I've had no errors so far decrypting any of the .tivo files. I'm running v0p7s.
     
  2. Feb 6, 2011 #3022 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    If you turned on TS downloads I warned you that tivodecode doesn't work well to decrypt TS TiVo files.
     
  3. Feb 6, 2011 #3023 of 10405
    charlesd81

    charlesd81 New Member

    77
    0
    Apr 19, 2006
    PA
    I didn't turn on TS downloads. The checkbox is not selected in the configuration options.
     
  4. Feb 6, 2011 #3024 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Maybe it's an incomplete download then. Run mediainfo on TiVo file and see if duration is correct.
     
  5. Feb 7, 2011 #3025 of 10405
    charlesd81

    charlesd81 New Member

    77
    0
    Apr 19, 2006
    PA
    The duration seems to be correct for the TiVo file at 1hr 00mins.
     
  6. Feb 9, 2011 #3026 of 10405
    boredsox38

    boredsox38 New Member

    9
    0
    Apr 7, 2007
    OK, running into an issue maybe someone can help with. Have a bunch of mkv files that i used pytivo to move over to my tivo, couldn't get them to transcode correctly any other way. Now trying to use KMTTG to bring them back and decrypt them. WHat happens is I get about 8 to 9mg of the file moved over and it stops and decrypts that little piece.

    Here is the status:
     
  7. Feb 9, 2011 #3027 of 10405
    boredsox38

    boredsox38 New Member

    9
    0
    Apr 7, 2007
    Sorry here is KMTTG info:

    Iron_Man
    Recorded Tue 02/08/2011 08:38 PM, Duration = 126 mins
    >> DOWNLOADING C:\kmttg\Iron_Man.TiVo ...
    C:\kmttg\curl\curl.exe --retry 3 --anyauth --globoff --user tivo:MAK --insecure --cookie-jar C:\DOCUME~1\Main\LOCALS~1\Temp\cookie8430402594997772242.tmp --url http://192.168.1.106:80/download/Iron_Man.TiVo?Container=/NowPlaying&id=294757 --output C:\kmttg\Iron_Man.TiVo
    C:\kmttg\Iron_Man.TiVo: size=8.52 MB elapsed=0:00:04 (17.87 Mbps)
    ---DONE--- job=download output=C:\kmttg\Iron_Man.TiVo
    >> DECRYPTING C:\kmttg\Iron_Man.TiVo ...
    C:\kmttg\tivodecode\tivodecode.exe --mak MAK --out C:\kmttg\Iron_Man.mpg C:\kmttg\Iron_Man.TiVo
    tivodecode job completed: 0:00:00
    ---DONE--- job=decrypt output=C:\kmttg\Iron_Man.mpg
     
  8. Feb 10, 2011 #3028 of 10405
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Bah. It appears I broke something:
    Code:
    2011_02_10_18:47:13 NOTE: adcut job completed: 00:01:29
    2011_02_10_18:47:13 ---DONE--- job=adcut output=\\Dl380-server\ToTivo\Cut Programs\Dragnet\28809-The Big Ad_cut.mpg
    2011_02_10_18:47:13 (Deleted vprj file: F:\FromTivo\Dragnet\28809-The Big Ad.VPrj)
    2011_02_10_18:47:13 (Deleted edl file: F:\FromTivo\Dragnet\28809-The Big Ad.edl)
    2011_02_10_18:47:13 (Deleted mpeg file: F:\FromTivo\Dragnet\28809-The Big Ad.mpg)
    2011_02_10_18:47:13 ERROR: This file is not located in a pyTivo share directory
    2011_02_10_18:47:13 ERROR: Available pyTivo shares:
    2011_02_10_18:47:13 ERROR: share=Downloaded path=\\sy-6ba-100\ToTivo\Downloaded
    share=Movies path=f:\ToTivo\Movies
    share=Cut Programs path=\\dl380-server\ToTivo\Cut Programs
    
    2011_02_10_18:47:18 >> Running custom command ...
    2011_02_10_18:47:18 "C:\Program Files\kmttg\Housekeeping.bat" "F:\FromTivo\Dragnet\28809-The Big Ad.mpg" 
    2011_02_10_18:47:29 NOTE: custom job completed: 00:00:05
    2011_02_10_18:47:29 NOTE: exit code: 0
    2011_02_10_18:47:29 ---DONE--- job=custom
    2011_02_10_18:47:29 
    
    The above shows the adcut step successfully writing to "\\Dl380-server\ToTivo\Cut Programs", but the subsequent push step is indicating that the file isn't in a pyTivo share.

    Hopefully relevant info from config.ini:
    Code:
    <mpegCutDir>
    \\Dl380-server\ToTivo\Cut Programs
    
    <pyTivo_config>
    C:\Program Files\pyTivo Production\pyTivo.conf
    
    <pyTivo_files>
    mpegFile_cut
    
    ...and from C:\Program Files\pyTivo Production\pyTivo.conf:
    Code:
    [Cut Programs]
    type = video
    path = \\dl380-server\ToTivo\Cut Programs
    
    Anything obvious jump out? I tried enclosing the UNC path in quotes, but that effort didn't allow me to save the kmttg configuration. I can push those files manually from the pyTivo web interface, so I know for certain the pyTivo share is configured and working correctly.

    Dl380-server IS the local machine running kmttg & pytivo, so that share is always available when pytivo & kmttg are running. I recently updated pyTivo and kmttg to use that UNC, to support another process on a remote machine (sy-6ba-100) that also interacts mostly with pyTivo, but only tangentially with kmttg (really kmttg's pushed output files).

    To make a short story longer...
    The sy-6ba-100 machine is setup to download and push content from the internet. Prior to the push, it parses a pyTivo log of successful transfers, and selectively deletes anything that's been pushed, whether pushed from the sy-6ba-100 process, or from kmttg running on dl380-server. Once the delete actions have completed, the log of successfully pushed transfers is nullified, awaiting pyTivo to repopulate it. This keeps my harddrives relatively clean of transient videos (I'm a "watch once" kinda guy). Nullifying the log negates any attempted deletion of files already deleted. kmttg also does the same pyTivo log parsing and file deleting as it's custom command. All non-pushed files remain safe; pushed files get deleted when pyTivo says "yep, pushed successfully".

    What prompted me to switch to UNC paths both remotely and locally was when I found that the dl380-server's files weren't getting deleted. This was because the prior pyTivo share was for the local dl380-server drive, "F:\ToTivo\Cut Programs". When the sy-6ba-100 process read the log of transfers, it attempted to delete files found on it's local drive, "F:\ToTivo\Cut Programs". No such directory exists on that machine, the files remained on dl380-server's drive, and the log would get nullified. My idea of using UNC remotely and locally seemed to be a solution to that problem (in theory), referencing the same directory name from either machine. Unfortunately, kmttg begs to differ. So... here I am.

    Edit: This is using a quite back-leveled release, svn r1082. :(
     
  9. Feb 10, 2011 #3029 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Could be case problem. From kmttg log UNC server name has capital D:
    output=\\Dl380-server\ToTivo\Cut Programs\Dragnet\28809-The Big Ad_cut.mpg

    From listed available shares it has lowercase d:
    Programs path=\\dl380-server\ToTivo\Cut Programs

    So while UNC case may not matter in general you should make them match to keep kmttg happy? i.e. Change kmttg mpegCutDir config to be:
    \\dl380-server\ToTivo\Cut Programs
    (or alternatively update pyTivo config to match kmttg setting)
     
  10. Feb 10, 2011 #3030 of 10405
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I saw that, and had the same thoughts about generally being case-insensitive. I'll apply whatever change (pyTivo or kmttg) and test. Thanks as always for the prompt reply!
     
  11. Feb 10, 2011 #3031 of 10405
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I had a nice 500MB SD show I could test with before some bigger HD shows popped into the queue:

    Code:
    2011_02_10_22:05:12 ---DONE--- job=adcut output=\\Dl380-server\ToTivo\Cut Programs\\Dragnet\000-The Big Frustration_cut.mpg
    2011_02_10_22:05:12 (Deleted vprj file: F:\FromTivo\Dragnet\000-The Big Frustration.VPrj)
    2011_02_10_22:05:12 (Deleted edl file: F:\FromTivo\Dragnet\000-The Big Frustration.edl)
    2011_02_10_22:05:12 (Deleted mpeg file: F:\FromTivo\Dragnet\000-The Big Frustration.mpg)
    2011_02_10_22:05:13 NOTE: >> Pushing \\Dl380-server\ToTivo\Cut Programs\Dragnet\000-The Big Frustration_cut.mpg to TivoS3
    2011_02_10_22:05:13 http://localhost:9033/TiVoConnect?Command=Push&Container=Cut+Programs&File=/Dragnet/000-The+Big+Frustration_cut.mpg&tsn=TivoS3
    2011_02_10_22:05:26 NOTE: push job completed: 00:00:06
    2011_02_10_22:05:26 ---DONE--- job=push video=\\Dl380-server\ToTivo\Cut Programs\Dragnet\000-The Big Frustration_cut.mpg
    2011_02_10_22:05:26 >> Running custom command ...
    2011_02_10_22:05:26 "C:\Program Files\kmttg\Housekeeping.bat" "F:\FromTivo\Dragnet\000-The Big Frustration.mpg" 
    
    So indeed, case is relevant with pyTivo shares and kmttg.
     
  12. Feb 12, 2011 #3032 of 10405
    wireman121

    wireman121 Member

    126
    0
    Nov 8, 2008
    I have 2 feature requests:

    when auto transfers is enabled, and also videoredo review is enabled, if its waiting for a videoredo review window to close, it will not automatically start downloading another show/refresh the NPL List until thats closed...heres an example:

    TiVo records a 30 minute show from 8:00-8:30, and another 30 minute show from 8:30-9:00. KMTTG is set to auto transfer both shows. at 8:40 (since its set to check the TiVo for shows its set to auto transfer every 10 mins) it starts downloading the show that finished reccording at 8:30. It processes everything, runs Video ReDo and brings up the review window to review the content. I get home at 11:00 and its still waiting for me to review (which is fine) but the auto transfer hasnt checked since 8:40, so it doesnt see that the 2nd show finished recording at 9:00 and hasnt started downloading, processing and bringing up the review window for that show.

    If possible could we add a "auto transfer pending" list, so that kmttg can continue to check the NPL list even while its in the process of processing an auto transfer, that way it knows its already working on the 8-8:30 show, but it hasnt started the 8:30-9 show and it can start working on that - so when I get home at 11, both shows (and anything that recorded after that) are all at the video redo review window for me to make any changes, save project, and start cutting?


    feature request 2- the ability to pick which show brings up a video redo review window, and which ones will just automatically start cutting.... This would be useful because some shows are always cut in the right places, so they dont need to wait for me to review them before pushing back to the TiVo while other shows are always cut in the wrong places, so i need to review and modify the cuts...

    Thanks!!
     
  13. Feb 14, 2011 #3033 of 10405
    sirfergy

    sirfergy New Member

    288
    0
    May 18, 2002
    Is it possible to get a NOT operator for file naming? I have some shows that don't have an episodeTitle, and if they don't I'd like to just use title.
     
  14. Feb 15, 2011 #3034 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Piggybacking on wiremans request I have a different idea. I often have kmttg download and process a bunch of shows at a time, but want to edit them all later in a batch. The hiccup I have is that when I do this and want to transfer the txt file over things do not work quite right which is okay, I can deal with it, but I think it might be an easy fix.

    How I do my process is to pick a bunch of shows and leave everything checked except adcut, so that when the program downloads the shows, it decrypts them, qs fixes them, ad detects them and then moves onto the next file that might show up.

    This leaves me with a bunch of project files in whatever directory I have set up for them to be ready to sit and edit when I have a chance ( so I just open them individually in videoredo, check or perform the edits ) and then save the edits and open them back up in kmttg and add them to the queue with adcut selected and then they are all trimmed and the leftover files are done. This works well.

    This is the best way I have found to be able to edit and make sure all the other shows are downloaded and all ready to go and such. This could be an alternate way for wireman to deal with his autodownload shows since I imagine most people don't want the edit window just sitting there unless they are at the computer and like he says, it stops other stuff from happening. My way lets you have everything ready when you want to sit and do your edits and then quickly apply the cuts and cleanup the messes left behind.

    My thought is though, that what happens with this method is the txt file that is created in the last step (as I have it configured) is done at the adscan point and left in that directory. Then when I open the files to check that adscan is correct or whatever edits I need to manually do, when I load the files back into kmttg to have it do the adcut process and delete the fixed mpg and the project file, it leaves the txt file in the processed directory and not the cut directory (which also has the wrong name if it still is using the cut moniker, etc.). Is there anyway to accomplish what I am doing differently or change the program to check if there is a txt file at the adcut point and transfer that to the final cut directory when the last cut is done? I tried having it output the txt file at all steps or changing the config but too many orphaned txt files happen or I just forget to change the config back or whatever.

    I should also mention a great thing about kmttg is that I can take my mpg files from my replays (replaytvs, old fashioned I know) and have kmttg run the same process on them, so I download them to my computer and copy them to an edit directory and then perform the qsfix, addetect, stop wait for edit, load after edit and cut. So anyone who uses this for other files might want to think about the great possibility of opening it up for non tivo use. I have already suggested it to a few replay friends and will post on the boards about it too since it is really cool.

    This might not be as big a deal with the new setup that doesn't add the _cut moniker because I should be able to just transfer the txt file to the output dir, but it still would be nice to be automated.

    Or even thinking further down the road, you could have kmttg halt and then after you do all the edits, it could just start the cuts, but I think there are too many variables there which might cause problems.

    One other suggestion I have which might be easy to implement or not, depending on how java works, but like videoredo has a set of 5 favorite directories, it would be awesome if we could have that same feature in kmttg, since usually they are are the same directories.

    One other thought I had which might be for way down the line or even a different project, but since autodownload is already running a server, I will suggest it, is to do something like wirns (windows replay network server) which allows you to do lots of the operations thru a web interface and catalog what files you have and such. Just a thought, I am sure since lots of the code is similar for the recorders, maybe a port out for replay users or even a port of wirns for tivo users combination might be an awesome thing for all users of set top box files.

    Anyway, some thoughts. I am extremely active in the wirns community so if you want any ideas or whatever, feel free to contact me there. Check it out at wirns.com. Owning both a tivo hd and the older replaytvs, I can tell you they are so similar the communities should merge, besides, wirns has poopli which tivo owners could really make use of too, since you can convert the formats pretty easily between boxes with the right software. You can check out poopli.com too.

    Please don't anyone lose their minds and start bombing me about tivo being better or replay being better or whatever, I think lots of good work has been done by the community on both sides of the fence and crossing the tools could be a really great idea.
     
  15. Feb 15, 2011 #3035 of 10405
    Stuxnet

    Stuxnet Alien Infidel

    356
    0
    Feb 8, 2011
    Using kmttg... tivodecode won't launch for me. Here's the error...

    >> DECRYPTING D:\Program Files (x86)\kmttg\output\SpongeBob SquarePants - The Main Drain (01_28_2011).TiVo ...
    Failed to start command: "D:\Program Files (x86)\kmttg\tivodecode\tivodecode.exe" --mak MAK --out "D:\Program Files (x86)\kmttg\output\SpongeBob SquarePants - The Main Drain (01_28_2011).mpg" "D:\Program Files (x86)\kmttg\output\SpongeBob SquarePants - The Main Drain (01_28_2011).TiVo"
    Cannot run program "D:\Program Files (x86)\kmttg\tivodecode\tivodecode.exe": CreateProcess error=740, The requested operation requires elevation


    I turned off UAC... no joy... I have Win7-64 setup... what to do?
     
  16. Feb 16, 2011 #3036 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    I think for Win 7 installing anything under Program Files (x86) requires admin permissions. You can try running kmttg as administrator to see if that fixes the issue:
    Look at windows install wiki:
    http://code.google.com/p/kmttg/wiki/windows_installation
    Specifically:
    Perhaps a better solution though is install kmttg somewhere other than Program Files which many not require admin permissions.
     
  17. Feb 16, 2011 #3037 of 10405
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Yeah I found putting KMTTG in a folder in C: worked for me.
     
  18. Feb 16, 2011 #3038 of 10405
    Stuxnet

    Stuxnet Alien Infidel

    356
    0
    Feb 8, 2011
    OK... things are working... but I don't quite understand what changed...

    I ran the jar file association commands (without thinking that I have both 32-bit and 64-bit java installs) and pointing to the 32-bit java app. That alone didn't fix my problem. So I gave "Run as Administrator" compatibility to the 32-bit javaw.exe file. Tivodecode ran fine.

    Not wanting to give all java apps admin-level access, I unchecked "Run as Administrator" compatibility on the 32-bit javaw.exe ... oddly now UAC prompted me to elevate java and when I did Tivodecode again ran fine... this prompt puzzled me (I hadn't seen that previously) so I rebooted figuring that was an artifact of the "Run as Administrator" setting. After reboot I got the same response.

    For all practical purposes, I should be where I started, but I'm not... the apps all run after I OK the elevation prompt. That's good, but I'm not sure what else I may have changed on my system. I'm planning to do a "restore" and then test the suggestions to move away from the Program Files path.
     
  19. Feb 16, 2011 #3039 of 10405
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Yeah - I've had problems with ANY program that did not have aninstaller. I think in kmttg's case, I ended up changing permissions on the kmttg directory. I had to bring up a command window as administrator to do this though
     
  20. Feb 16, 2011 #3040 of 10405
    Stuxnet

    Stuxnet Alien Infidel

    356
    0
    Feb 8, 2011
    Success... I rolled back the PC and moved kmttg to D:\ Everything runs and I don't have to elevate any apps... Now if I could improve the download rates. HD programs take about 3 hours for every hour of programming... is that what I should expect?

    I recall that TivoDesktop can stream a downloading program in real time (one hour to download one hour of HD programming)... that's 3x the rate I get w/curl. Is TivoDesktop getting the same file as kmttg?
     

Share This Page