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. Aug 7, 2012 #4221 of 10411
    wmcbrine

    wmcbrine Ziphead

    10,363
    22
    Aug 2, 2003
    Are you kidding? They can barely be bothered with a Mac version.
     
  2. Aug 8, 2012 #4222 of 10411
    kpeters59

    kpeters59 Member

    70
    3
    Jun 19, 2007


    Is 2 days long enough for a bump?




    Might as well add some info, huh?


    When I "examine log file", there's nothing new since April. I tried changing max log file size from 10 to 20 and tried to start the service to generate the error that is displayed in the gui window, but that didn't fix that. So I can't Copy/Paste.

    The error that is displayed in the gui is something like:


    [SC] Start Service: Open Service Failed 5:

    Access is denied



    Edit 2:

    I changed the properties of javaw.exe "Compatibility" to "Run as Administrator" and the error went away. Now when I try to start the service, it just returns: kmttg service is installed status=stopped. I tried changing wrapper.exe too, but that still has the same result. Trying to start the service from Services, results in Error 1067.



    Edit 3:

    I uninstalled all existing versions of Java. 7_32 and 7_64. Then I installed Java 6 Update 33 and the service started on the first try.

    Can I run 7? Maybe it was just a glitch? I'd prefer to just have 1 version installed. Not sure why. Just to keep things lean, I guess. Definitely 64_bit won't work?



    Thanks,

    -KP
     
  3. Aug 9, 2012 #4223 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    I have not tried Java 7 so no idea if there are any issues but certainly seems like that's the case. I still compile to be Java 5 compatible since Apple OS tends to lag way behind on the Java front.
     
  4. Aug 9, 2012 #4224 of 10411
    kpeters59

    kpeters59 Member

    70
    3
    Jun 19, 2007

    It worked for quite a while, apparently with Java 7, until I stopped it because the files weren't playing properly. When I started troubleshooting, there was a Java 7 32&64 install listed in Programs and Features. There was a Java 6 folder in the (x86) folder, but it was empty and 6 was not listed in P&F's.

    For this machine, I can't think of a reason why I'd need 7, so I'll leave well enough alone. I do still have 100 or so shows needing to be QS Fix'd...

    This software is amazingly fantastic. Thanks again for making it and keeping it working and for all your work improving it.




    -Kyle


    And my 'log' is working again.
     
  5. Aug 13, 2012 #4225 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    I'm trying to get KMTTG set up on a new computer. I transferred the Program Files folder from my old computer to the new one, and when I tried to use it, I got the message: Problem writing to config file.... I assumed this was because I couldn't just start using it from the old files that were transferred, so I downloaded it fresh from the website. I started it up again from the new download, and I got the same message after it found my Tivos (see pic). I searched through the Wiki and didn't see any entries related to this. Please help.
     

    Attached Files:

  6. Aug 13, 2012 #4226 of 10411
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,719
    7
    Apr 6, 2000
    SF Bay Area
    When you moved KMTTG, you must have placed it in a different folder on the new computer. You could try to re-configure KMTTG for the new folder. Also, it appears you are running it from the .zip file.
     
  7. Aug 13, 2012 #4227 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    As I said, I downloaded and installed a fresh copy, and the latest version. So the folder location shouldn't be an issue. I'm not running it from the zip file. What you see in the pic is where it downloaded the Win32_tools zip, but then it says it can't find it. I downloaded it seperately and extracted it to the KMTTG folder, but it still says it can't find the files. I thought I'd address that issue later.
     
  8. Aug 13, 2012 #4228 of 10411
    kpeters59

    kpeters59 Member

    70
    3
    Jun 19, 2007

    Also, you may need to check the 'properties' of the file/folder.

    Did you put the moved folder in \Program Files and not \Program Files (x86)?

    -KP
     
  9. Aug 13, 2012 #4229 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    I actually have one in each. The one I transferred from the old computer is in Program Files. The fresh download is in the x86 folder.
     
  10. Aug 13, 2012 #4230 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    Disregard. I just got it working, although I really don't understand why or how. I moved the old folder to my desktop, which is where it was located on the old computer. It is working now. I just don't understand why the fresh download didn't work. It shouldn't have had any old settings/configuration linked to it. Thanks for the help anyway.
     
  11. Aug 13, 2012 #4231 of 10411
    kpeters59

    kpeters59 Member

    70
    3
    Jun 19, 2007
    Did you check to make sure that the file 'properties' aren't set to read only, or that the 'security' settings of the files will allow your 'new' user to R/W to it?
     
  12. Aug 13, 2012 #4232 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    That was it. I hate Windows! Now that I got the new version to work also, is there a way to import the Auto Transfers list from the old version to the new one so I don't have to add all of them again?
     
  13. Aug 13, 2012 #4233 of 10411
    kpeters59

    kpeters59 Member

    70
    3
    Jun 19, 2007
    I think there's some settings stored in your user/roaming folder. Not too sure.
     
  14. Aug 13, 2012 #4234 of 10411
    spammsmcghee

    spammsmcghee New Member

    23
    0
    Feb 19, 2010
    It's the auto.ini file in the kmttg folder. I copied the old one and pasted into the new folder, and it worked.
     
  15. Aug 18, 2012 #4235 of 10411
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    OK, I looked for this, and I cannot find such a checkbox anywhere in the config section. Where is it?

    No, I looked into this, too, and doing so would produce a horrible mess. The primary issue is the output from kmttg produces a bunch of files, and handling each one in my scripts with the additional hour and minute, even when stuck in the least obtrusive place would require a lot of fiddling script changes. I could do it, of course, but it would take far more time than it is worth. For example:

    Code:
    dirName=${fileName%/*}
    stubName=${shortName%.mp[4g]*}
    PrjName=$stubName.VPrj
    prjName=$stubName.Vprj
    fileType=.mpg
    echo $shortName | grep -q .mp4 && fileType=.mp4
    echo
    
    cd /usr/share/pyTivo/Unverified
    [ -a "$shortName" ] && rm "$shortName"
    [ -a "$shortName.txt" ] && rm "$shortName.txt"
    
    cd "$metaDir"
    [[ -a "$stubName.mpg.txt" ]] && mv "$stubName.mpg.txt" "$fileName.txt"
    rm -f "$PrjName" "$prjName" "$shortName" "$stubName.mpg" "$stubName.edl" "$stubName.log" "$stubName.logo.txt" "$stubName.mpg.Xcl"
    
    cd "$metaTDir"
    rm -f "$stubName.TiVo.txt"
    
    $fileName and $shortName are the fully qualified and unqualified name of the final video file on the server, which would not contain the [hour] and [min] string, but do contain the extension. Inserting [hour] and [min] anywhere in the middle of those strings for the comparisons above would be very doable, but also very messy. That is just one example, though. There are lots of similar, but unique, issues with monkeying with the existing name structure in the scripts. The differences between

    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).mp[4g] <= $shortName
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).mpg.txt
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).VPrj
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).mp[4g].jpg
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).epl
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).mpg.Xcl
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).TiVo.txt

    and

    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>).mp[4g] <= $shortName
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.mpg
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.mpg.txt
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.VPrj
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.mp[4g].jpg
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.epl
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.mpg.Xcl
    <Title> (Recorded <dow> <mon> <day>, <year>, <channel>)<hour><min>.TiVo.txt

    are a bit intricate, especially when <Title> (Recorded <dow> <mon> <day> <year>, <channel>) is a key element but <Title> (Recorded <dow> <mon> <day> <year>, <channel>)<hour><min> is not. The fact $shortName and $stubName are no longer unique WRT the <hour><min> embedded files also throws grit into the gears.
     
  16. Aug 18, 2012 #4236 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    It's part of auto transfers configuration form.
     
  17. Aug 18, 2012 #4237 of 10411
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    And based on what appears to be actually happening (file name collisions) rather than what you originally thought was happening ( recordings not being processed by kmttg), it wouldn't do anything for you anyway.

    Your problem is two or more episodes of the same series with the same episode title shown on the same day. You have to add something to the file name to prevent collisions.
     
  18. Aug 18, 2012 #4238 of 10411
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Oh, OK, I found it. It's in the auto transfer config.

    Edit: Oh, yeah, I just saw moyekj's post. I had already stumbled across it, but thanks for the reply.

    No, no. The second recording is definitely not being processed. Kmttg is set to delete the recordings after processing, so one is deleted and one remains on the TiVo, because the first already resides on the server. Unless, of course, that is what you mean by a file name collision, since it is of a sort just that, but kmttg terms it "skipping":

    Code:
    2012_08_18_16:52:39 START PROCESSING OF ENTRY: JAG - Adrift
    2012_08_18_16:52:51 >> CREATING \\RAID-Server\Server-Main\Movies\TiVo_HD\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).TiVo.txt ...
    2012_08_18_16:52:53 ---DONE--- job=metadata output=\\RAID-Server\Server-Main\Movies\TiVo_HD\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).TiVo.txt
    2012_08_18_16:53:05 >> CREATING \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg.txt ...
    2012_08_18_16:53:07 ---DONE--- job=metadata output=\\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg.txt
    2012_08_18_16:53:19 >> DOWNLOADING/DECRYPTING TO \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg ...
    2012_08_18_16:53:19 "C:\Program Files (x86)\kmttg\curl\curl.exe" --retry 3 --anyauth --globoff --user tivo:MAK --insecure --cookie-jar "C:\WINDOWS\TEMP\cookie3743762314352028481.tmp" --url "http://192.168.1.102:80/download/JAG.TiVo?Container=%2FNowPlaying&id=5834761" | "C:\Program Files (x86)\kmttg\tivodecode\tivodecode.exe" --mak MAK --no-verify --out "\\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg" -
    2012_08_18_17:29:04 NOTE: \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg: size=5323.07 MB elapsed=0:35:45 (20.82 Mbps)
    2012_08_18_17:29:04 ---DONE--- job=download_decrypt output=\\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg
    2012_08_18_17:29:07 >> Running comskip on \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg ...
    2012_08_18_17:29:07 "C:\Program Files (x86)\kmttg\comskip\comskip.exe" --ini "C:\Program Files (x86)\kmttg\comskip\comskip.ini" --videoredo "\\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg" 
    2012_08_18_17:43:37 ---DONE--- job=comskip output=\\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).VPrj
    2012_08_18_17:54:01 START PROCESSING OF ENTRY: JAG - Adrift
    2012_08_18_17:54:15 NOTE: SKIPPING METADATA GENERATION, FILE ALREADY EXISTS: \\RAID-Server\Server-Main\Movies\TiVo_HD\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).TiVo.txt
    2012_08_18_17:54:15 NOTE: SKIPPING METADATA GENERATION, FILE ALREADY EXISTS: \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg.txt
    2012_08_18_17:54:27 NOTE: SKIPPING DOWNLOAD/DECRYPT, FILE ALREADY EXISTS: \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).mpg
    2012_08_18_17:54:29 NOTE: SKIPPING COMSKIP, FILE ALREADY EXISTS: \\RAID-Server\Server-Main\Movies\TiVo_MPG\JAG - Adrift (Recorded Wed Jul 25, 2012, AXSTV).VPrj
    Whether one deems "skipping" to constitute processing or not, the fact is kmttg only transfers and deletes one of the files but does nothing other than take note of the second and decline to transfer, decrypt, and delete it. That is what I meant by "not being processed by kmttg".

    Given the small number of remaining cases where this will be an issue, it's just going to be easier to manually move the first downloads to temporary file names and manage the rest by hand. It's still a pain, but a lot less so than digging back through all the scripts.
     
  19. Aug 19, 2012 #4239 of 10411
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    That's because you don't have the "Overwrite existing files" box checked, so yes, the skipping is the result of file name collision. It's a good thing you didn't have that option selected. Otherwise, the second episode would have wiped out the first.
     
  20. Aug 19, 2012 #4240 of 10411
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,719
    7
    Apr 6, 2000
    SF Bay Area
    That's the reason I use [year].[month].[date].[hour].[min] in my filename scheme.
     

Share This Page