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. Oct 15, 2008 #341 of 10413
    Tim Winders

    Tim Winders New Member

    26
    0
    Oct 5, 2007
    Damn!

    2 different versions of perl I'm using. Arrgh!

    <-- kicks himself, screaming DUMBASS!

    Back to the drawing board....

    (tired of my spam yet?)
     
  2. Oct 15, 2008 #342 of 10413
    Tim Winders

    Tim Winders New Member

    26
    0
    Oct 5, 2007
    I know I'm tired of my own spam, so I'll stop for now.

    Nothing to discover. Can't seem to get Tk working in perl. I guess it wasn't meant to be. Need to clean up my system and try again another day.

    Will have to stick with kmttg on a Windows box.

    Hopefully I helped someone (not waste their time) and if anyone gets it up and going on Mac OS X, they can post specific steps to do so...
     
  3. Oct 18, 2008 #343 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    New version released with minor enhancements and a bug fix:

    ------------------
    v0.5c (10/18/2008)
    ------------------
    ENHANCEMENTS:
    * Added [monthNum] as another keyword option for File Naming. This is
    2 digit numeric month as compared to [month] which is 3 character
    abbreviation for month.

    * Remove "Copyright Tribune Media Services, Inc." from description
    text of shows downloaded from Tivo. That text shows up in all/most
    show descriptions and is not useful to display.

    FIX:
    * After loading Now Playing List from Cache when clicking on a show
    in the list the show details were not being printed to message pane.
     
  4. Oct 20, 2008 #344 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    I've been messing around with this and would love to get it working, but I can't seem to get auto transfers working. I've got the entries in the configuration (see attachment), but it never seems to do anything. I've added the service and clicking on 'status' tells me that it is running.

    What am I doing wrong?
     

    Attached Files:

  5. Oct 20, 2008 #345 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Capability to run as windows service is still very experimental (as indicated in documentation), and in Vista doesn't work at all without extra work. In XP I did get it to run OK which is when I released the capability, but even there it was shaky.
    My 1st suggestion is to try Auto Transfers->Run in GUI and make sure it runs OK in that mode. If it's not working there either you can try enabling "Dry Run Mode (test keywords only)" to debug it further. In that mode it won't actually run anything but will spit out reasons for matching or not matching.

    Once things are setup such that "Run in GUI" is working OK then there are other methods for running in batch mode without being a service, so for example you can setup a windows scheduled job to run kmttg in batch auto transfer mode. I can give you more details about that if desired.
     
  6. Oct 20, 2008 #346 of 10413
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    Make sure that you are using an administrator account in the service.
     
  7. Oct 20, 2008 #347 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    Looks like I've got it running. I had to change it to use the 'Local System Account' instead of the account it was configured with.
     
  8. Oct 20, 2008 #348 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Glad you got it running. I should put a note somewhere in documentation about that.
     
  9. Oct 22, 2008 #349 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    Ok Now I'm having a problem where the auto transfers are not encoding.
    The .tivo is pulled from the Tivo, tivodecode outputs the .mpg and then nothing.

    This is the relevent section of the auto.log

     
  10. Oct 23, 2008 #350 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Yup looks like there's a bug in encode setup for auto mode where it doesn't grab the encoding profile name correctly. I've implemented a fix that perhaps you can try out before I make another release (I'll P.M. you).
     
  11. Oct 23, 2008 #351 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    Sure, send it my way. I also noticed a bug where the metadata file doesn't have a period between the filename and the mp4 portion (ie shownamemp4.text instead of showname.mp4.txt)

    Great program man, thanks alot.
     
  12. Oct 24, 2008 #352 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    ------------------
    v0.5d (10/23/2008)
    ------------------
    ENHANCEMENTS:
    * Added documentation on how to get kmttg running as a service in Windows Vista.

    AUTO TRANSFERS MODE FIXES:
    * Encoding profile name was not being properly obtained from auto config
    setup and hence encoding in auto transfers mode was not working.
    * metadata and encode file name suffix was missing a leading "."
     
  13. Oct 24, 2008 #353 of 10413
    dredwing

    dredwing New Member

    18
    0
    Apr 2, 2008
    The support for [/] in the filename spec (to allow subdirectories) that was added in v0.5a is a nice feature, but I just stumbled across an annoying side effect - episodes of Nip/Tuck end up in the <base_dir>\Nip\Tuck\Nip sub directory.

    Would it be difficult to still replace any slashes in the Series or Episode names the same way that colons are replaced (before building the full file spec)?

    It might also be nice to replace troublesome characters with an underscore or some other character, rather than just removing it. (The one example I'm aware of where this would have been particularly useful was the "9:02" episode of Jericho, which can end up looking like an episode number.)
     
  14. Oct 24, 2008 #354 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Hmm, at some point I was replacing forward slashes with underscores but looks like I commented that out for some reason somewhere along the line. In current build try uncommenting line 986 of kmttg.pl to see if it fixes that issue for you.
    i.e. Remove the leading "#" from the following line:
    #$file =~ s/\//_/g;
     
  15. Oct 24, 2008 #355 of 10413
    dredwing

    dredwing New Member

    18
    0
    Apr 2, 2008
    Recently, I queued up quite a few shows for download and decode, but had not first verified that there was enough disk space available. After running out of disk space, kmttg continued to work its way through the queue, and not surprisingly, the subsequent queued jobs failed, though they often succeeded at creating an empty file. Since kmttg (correctly, I think) will skip queued jobs when the target output file already exists, the empty files need to be deleted before resubmitting the tasks for failed jobs. Since I use the [/] file naming feature, this requires more effort (ok, a little more effort) than just selecting all the size zero files in a single directory.

    While this was a stupid user error, it would be nice if kmttg were to pause processing of the job queue in this situation, to avoid the creation of empty files and to allow resume of remaining items in the job queue (assuming the UI were to add a resume or restart button).

    If kmttg were to support a feature like TiVo Desktop which allows reserving a certain amount of free disk space, this would be even better. TiVo Desktop only needs to worry about available space in a single location, but it would be reasonable if kmttg were to support a single value for minimum free disk space, regardless of which target directory is specified.

    Neither of these suggestions is particularly high priority, since it is fairly easy (for the user) to avoid this stupid user trick.

    Do you prefer this forum, or the kmttg Google Code issue tracking site for requests like this?
     
  16. Oct 24, 2008 #356 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    dredwing, yes this thread is fine for issues/requests etc. as far as I'm concerned.
    I'll have to think about the check free space request. First thing that comes to mind is I don't know if there is a generic Perl way of checking available disk space for different architectures without extra modules such as Filesys :: DiskSpace (I try and minimize use of non-standard modules as much as possible). It can be a tricky thing to check for cases where shortcuts, quotas, symbolic links, etc. are being used. It does sound like a reasonable check to add however so if I find an easy enough way that works well on different Operating Systems I'll add it.
     
  17. Oct 25, 2008 #357 of 10413
    dredwing

    dredwing New Member

    18
    0
    Apr 2, 2008
    Thank you! The Nip/Tuck files are now being created as <base_dir>\Nip_Tuck\Nip_Tuck - <ep#> <Title>...
     
  18. Oct 25, 2008 #358 of 10413
    dredwing

    dredwing New Member

    18
    0
    Apr 2, 2008
    I looked around a bit, and did not see any good examples of Perl code for checking available disk space.

    One alternative for df compatibility under Windows might be to snag the df.exe program from utilities available at
    http://www.geocities.com/lc_castro/winnt.htm

    That package is licensed under GPL v2, so should be compatible with kmttg, but unfortunately, the ouput of df.exe is not in the same format as linux, so you would need a C compiler to recompile after changing the program to make the output more unix-like. (If the output isn't close to the same format as unix, it would probably be easier to just have separate code for parsing output of dir command.)

    A related feature that would be nice is if there were a display of the total (estimated) size of files selected for download.
     
  19. Oct 25, 2008 #359 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    I've got something working using "df" on unix systems and "dir" on windows systems that's probably good enough. Still got work to do to implement actual checks and add as config option.
     
  20. Oct 27, 2008 #360 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    New problem. When the service attempts to run ffmpeg it errors out. If I try using the gui it seems to work.

     

Share This Page