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 21, 2010 #2561 of 10413
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    I would think it best to reflect what's in the .TiVo file. Regarding isEpisode, the pyTiVo metadata wiki says
     
  2. Aug 21, 2010 #2562 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Already committed and available here.
     
  3. Aug 21, 2010 #2563 of 10413
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    Awesome! Looks like you nailed it. It Works!!!
     
  4. Aug 22, 2010 #2564 of 10413
    shiffrin

    shiffrin Member

    217
    0
    Aug 23, 2000
    Lancaster, PA
    I have a new Tivo Premiere XL with the 1 terabyte drive. kmttg (the L version) is installed on my Windows Home Server and is workign well except for 2 things.

    1. It always tells me that there is no free space. The drive size is shown as the actual space in use instead of 1000 GB. When I display the circle graph of space used, it does not show any free space either. Is this a known problem?

    2. Every few days, I get a message that I have file conflicts on the server. It always refers to file auto.log.0 and sometimes auto.log.lck as being open when it is trying to update them. I have to reboot the server to get rid of the file conflict message.

    Other than these 2 minot problems, the program is working great. Thanks for your efforts.
     
  5. Aug 22, 2010 #2565 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    1. Once you click on "Disk Usage" button at the very top of the window where it says "Total Disk Space (GB)" you have to enter your TiVo drive size in GB and then press enter (in your case about 915 is right number to enter). If you hover over that field you will see a tooltip explaining that. Then kmttg will compute free space compared to that number. You only need to do that once since the setting will be saved from then on.

    2. That most likely means there is more than 1 kmttg in auto transfers mode running at the same time. Note that if you have service running and then run Auto Transfers->Loop in GUI that would create a conflict. Regardless a reboot should not be necessary - you can bring up Task Manger to find and kill extra javaw.exe instances that are running.
     
  6. Aug 22, 2010 #2566 of 10413
    shiffrin

    shiffrin Member

    217
    0
    Aug 23, 2000
    Lancaster, PA
    Thanks for the reply. I don't remember setting the disk size when I first installed kmttg with my old Series 3, but that did solve the problem with the Premiere.

    I don't have the 'loop in GUI' set, but I'll watch for the file conflicts to show up again and check services to see if I have 2 javaw.exe's running.
     
  7. Aug 23, 2010 #2567 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Just tried the beta version. The "auto tune" feature is a great addition. The feature works without fail on two of my Tivo's (1 premiere, 1 XL), but on three they always fail (3 XLs). I get the following message:

    telnet - Failed to connect to host: 192.168.1.124
    telnet - connect timed out

    Restarting the failing Tivos doesn't have any affect. Kmttg seems to be otherwise functioning great. Any ideas why a group of them might be failing?

    Thanks in advance.
     
  8. Aug 23, 2010 #2568 of 10413
    shiffrin

    shiffrin Member

    217
    0
    Aug 23, 2000
    Lancaster, PA
    I got the file conflict message again from Windows Home Server. I opened the task manager and there were no instances of javaw.exe running. I had selected the 'show tasks for all users' box to make sure it wasn't missed. The file conflict is for auto.log.0

    Any other ideas?
     
  9. Aug 23, 2010 #2569 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Maybe you have "Network Remote Control" option disabled on those machines. The tooltip when you hover over "Tune to specified channels before a download" explains where you enable that option for S3/S4 TiVos.
     
  10. Aug 23, 2010 #2570 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    I guess you need to figure out what is locking those files as something seems to be preventing them from being changed. Are you able to manually rename the auto.log.0 and remove the .lck file? If not I think there are programs out there that can determine what process has locks on files, but I don't remember any specific ones right now. I think it's the .lck file that is preventing kmttg from creating a lock on auto.log.0, so if you are able to remove that file then that solves the issue, then the question is why is kmttg not gracefully dropping that lock (deleting the .lck file) on exit as is supposed to be happening.
     
  11. Aug 23, 2010 #2571 of 10413
    shiffrin

    shiffrin Member

    217
    0
    Aug 23, 2000
    Lancaster, PA
    I was not able to delete auto.log.o.lck since it said it was open in another program. I found 2 utilities to help identify the program that has it locked. One is called 'Process Explorer' from Microsoft and another is called wholockme from a freeware site. Both of these programs say that auto.log.0 and auto.log.0.lck are still open by java.exe

    I stopped the kmttg service and the files were unlocked immediately. I then restarted kmttg and the files remain unlocked.
     
  12. Aug 23, 2010 #2572 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    That's correct behavior. When kmttg service is started it should put a lock on it, when stopped it should release the lock. So is your problem when the service is re-started say after a reboot or something that kmttg won't start because of lock file? If that's the case that is when you need to find out what has a lock on the file still, and if nothing does then you should at least be able to remove the lock file so that kmttg service starts normally.
     
  13. Aug 23, 2010 #2573 of 10413
    shiffrin

    shiffrin Member

    217
    0
    Aug 23, 2000
    Lancaster, PA
    I leave kmttg running all the time. After a few days of running, Windows Home Server informs me that there are file conflicts and points to auto.log.0 and (sometimes) auto.log.0.lck as being open in another program. I haven't noticed any particular action that causes this problem to occur. Due to the problem, the Windows Home Server icon stays yellow and the popup on my desktop keeps showing up and gets annoying.

    At least now I have an easier way to get rid of it by stopping and starting the service.
     
  14. Aug 25, 2010 #2574 of 10413
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    While I was testing this beta I put together a simple windows command script to generate XML metadata files from TiVo files. It's very simple yet flexible. It can be run stand-alone, have a single TiVo file passed to it as a parameter as a custom kmttg script, have a single TiVo file dropped on it using Windows Explorer, have a folder of TiVo files dropped on it, etc. The reason I'm using it is to archive the original metadata from a TiVo file, so that after I've converted the TiVo file to mpeg and deleted the TiVo file I still have all of it's original metadata. Just in case sometime in the future while I still have my TiVo video library stored as mpeg files and metadata text files on my server that I need some metadata that wasn't included in the metadata text file generated by kmttg. As output it stores the xml metadata in a file in the same directory and with the same name as the .TiVo file, but with a .xml file extension instead of .TiVo.

    Example:
    TiVo file = T:\vidshares\Breakin-Loose\The Culture Clash Manifest (ep3 MAXHD 9956).TiVo
    xml file = T:\vidshares\Breakin-Loose\The Culture Clash Manifest (ep3 MAXHD 9956).xml

    The xml file can be opened and viewed in Windows Internet Explorer.

    Since I'm running Win7-64, this is the only platform I've tested it on.

    Some of the commands may require that command extensions be enabled.

    I'm just offering it in case anyone finds it usefull and will not support it since it's just a windows command script.

    Copy the code and save it to a file with a .cmd extension, I call it MakeTiVoXML.cmd.

    Modify the following lines to make it work on your PC and with your TiVo

    SET _TDCAT-EXEC=Fully qualified path of your tdcat.exe
    SET _TIVOMAK=The MAK of your TiVo

    Code:
    REM SET _TDCAT-EXEC to the fully qualified path of your tdcat.exe file
    SET _TDCAT-EXEC="C:\Users\MyUserName\Documents\Download\SOFTWARE\kmttg\tivodecode\tdcat.exe"
    
    REM if this is being used as a custom kmttg script you will have to enter your MAK below as kmttg won't prompt you for it
    SET _TIVOMAK=0123456789
    REM SET /P prompts user for input and assigns it to the variable _TIVOMAK
    REM SET /P _TIVOMAK=Enter Tivo's MAK 
    
    REM assign the fully qualified path dropped on/passed us to the variable _TARGET
    SET _TARGET=%1
    
    REM if nothing dropped on/passed us (i.e. command script was just run by double-clicking it) assign the path this command script is located in to the variable _TARGET
    IF %1.==. SET _TARGET=%~dp0
    
    REM if what was dropped on/passed us is a single tivo file then just process that single tivo file
    IF /I %~x1.==.tivo. GOTO DOFILE
    
    REM otherwise recursively process all tivo files in the _TARGET directory and it's subdirectories and exit
    FOR /R %_TARGET% %%A IN (*.tivo) DO %_TDCAT-EXEC% -m %_TIVOMAK% -o "%%~dpnA.xml" -2 "%%A"
    GOTO FINISHED
    
    :DOFILE
    REM if what was dropped on/passed us is a single tivo file then just process that single tivo file
    %_TDCAT-EXEC% -m %_TIVOMAK% -o "%~dpn1.xml" -2 %1
    
    :FINISHED
    EXIT
    
    REM tdcat syntax is tdcat.exe [-m mak] [-o outfile] [-2] tivofile
    REM %~_VARIABLE  - expands %_VARIABLE removing any surrounding quotes (")
    REM %~f_VARIABLE - expands %_VARIABLE to a fully qualified path name
    REM %~d_VARIABLE - expands %_VARIABLE to a drive letter only
    REM %~p_VARIABLE - expands %_VARIABLE to a path only
    REM %~n_VARIABLE - expands %_VARIABLE to a file name only
    REM %~x_VARIABLE - expands %_VARIABLE to a file extension only
     
  15. Aug 26, 2010 #2575 of 10413
    RickL66

    RickL66 New Member

    24
    0
    May 13, 2007
    Arvada, CO
    Hello, I've been using Tivo Desktop for awhile and came across this program. Wow, this is far better than TiVo Desktop and I wasted money on the Plus version before I found this.

    I'm currently running the v0p7l version, and I am unable to get the captions box checked. It's greyed out. How to I enable it?
     
  16. Aug 26, 2010 #2576 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    You need to install T2Sami t2extract and then point kmttg to where you installed it as described in the configuration Wiki page:
     
  17. Aug 26, 2010 #2577 of 10413
    RickL66

    RickL66 New Member

    24
    0
    May 13, 2007
    Arvada, CO
    Ah! Gotcha. I was trying to read through all pages on this thread, I guess I got overwhelmed with all the information involved. I will install it tonight. Thanks, and keep up the good work!
     
  18. Aug 28, 2010 #2578 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    v0p7m version just released. Consult Release Notes for details of all enhancements, changes and fixes. Highlight for this release is new Autotune capability to have kmttg use Network Remote capability of Series 3 & 4 TiVos to change channels on your TiVos before a download initiates. Setting up to tune to channels you don't subscribe or music channels can reduce load on your TiVos to improved download speeds. (Obviously this capability is not useful if you use suggestions and/or are recording programs while downloading). Some good fixes related to metadata file creation are also part of this release.
     
  19. Aug 28, 2010 #2579 of 10413
    PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Wow, Kevin. Nice update! I'm really liking the sound of the new autotune feature.

    One question. Does autotune check to see if you're currently recording anything on either of the tuners before it attempts to change the channels ?
     
  20. Aug 28, 2010 #2580 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    No. But attempting to change channels for a tuner that is busy recording will simply fail which is the desired behavior (if background tuner is not also recording then the channel change will happen on that tuner). There actually is a network command for "force tuning" which will force a tune to that channel, canceling recording in progress if necessary, but obviously that is not desirable for most cases.
     

Share This Page