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. Apr 8, 2009 #561 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Kevin,
    I'm thinking about throwing together a little application that monitors the KMTTG "Auto Transfers" for Macs. (Maybe even an iPhone widget) I know the "auto.log" file is a good source to monitor information about what is happening, but I have two questions:

    1. Is there a command line argument that makes this logging more verbose, to get more information about what is "Currently" happening? (Or just more information) I tried the "perl kmttg.pl -a -v" type of argument, but it doesn't appear to give me any more information in the log.
    2. Are there any other logs that tell me what is going on with the Perl script itself?

    Right now I'm simply using SSH to monitor two different instances of the auto.log file, but I'm looking at making something more elegant for Mac users that want to know what is happening... (This will be helpful for me, since I'm running this on a Mac server platform.)
     
  2. Apr 9, 2009 #562 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    adding -d argument to kmttg.pl will print a bunch of debugging info to stdout which you can re-direct to a file for monitoring (i.e. "perl kmttg.pl -a -d >/some/log/file") , but I'm not sure how useful that information would be as it's very verbose during some actions and not much so during others, plus there is no time-stamping for that output. (It focuses on areas where I may have had trouble with in the past).
     
  3. Apr 14, 2009 #563 of 10413
    starmanj

    starmanj New Member

    27
    0
    Aug 18, 2007
    Is there a way to have KMTTG maintain delete old transfers to make room for new transfers?

    I use KMTTG to fetch all new episodes of a series, but it fills up my hard drive so requires me to routinely delete old shows. It would be great to place all episodes in a folder that only allows, say, 5 episodes before it deletes older transfers...

    Thanks!
     
  4. Apr 14, 2009 #564 of 10413
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    Yes, I tried this but it errors out when it starts to encode. I am able to encode manually though.
     
  5. Apr 14, 2009 #565 of 10413
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    I used a default profile and then create my own with upper and lowercase -- still see the error. I am now attempting to run one in service mode with a default ff_ipod profile all lowercase.
     
  6. Apr 14, 2009 #566 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Are you running it on a Mac, or a PeeeCeee? If it's a Mac, then a Folder Action script would be a good solution. Maybe there's an equivalent automation tool on PeeeCeee, like a "Scheduled Task"...

    I currently have a bunch of folder actions happening on my setup right now:
    1. Edits Metadata, to take "episodeTitle" line out, and add it to the "title" line in the txt file. (to get around pyTiVo bug)
    2. Re-names the MetaData file, to end with "_cut.mpg.txt" instead of "mp4.txt". (so I can pop the file back to my TiVo, for viewing without commercials.)
    3. Moves the MetaData file to the "comcut" directory. (same reason as #2)
    4. Waits for the mp4 file to be finished writing, then zip's it, scrambles the name, then moves it to a directory of my XServe that is shared via FTP. (I can't access my file server from my office LAN when I travel, except for FTP protocol, and I also don't want the names of these TiVo shows showing up in the PIX logs if I get audited at the office...)

    Now I'm working on one that gets status of the two instances of kmttg that I have installed, and deliveres it to me via ssh while I'm traveling.
     
  7. Apr 14, 2009 #567 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Switch the name of your encoding profile to all lower case.
     
  8. Apr 14, 2009 #568 of 10413
    starmanj

    starmanj New Member

    27
    0
    Aug 18, 2007
    PeeeCeee. Not good enough at MSDOS scripting to figure this one out (if DOS scripts are even capable of doing this).
     
  9. Apr 17, 2009 #569 of 10413
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    That's exactly what it was! I switched it back to lower and upper case just to make sure I could replicate and sure enough it would error out. Hopefully this can make it in the documentation or FAQ.


    Thanks for your help.
     
  10. Apr 20, 2009 #570 of 10413
    mcharkowski

    mcharkowski Member

    48
    0
    Aug 11, 2004
    Epping, NH
    This may be a question that's already been answered, but I've done some searches and haven't been able to find it...

    Is there any way to get the encoder to include the metadata in the file for itunes compatibility, the way that Tivo Desktop does it? I much prefer the quality available with KMTTG, but I do miss having TV shows show up in iTunes with the show name, season number, description, etc. As it is now, they show up as movies.

    I have been using the Handbrake encoder so far, though I'm testing with the ffmpeg encoder as I type this to see if it's any different in this regard.

    Any ideas?
     
  11. Apr 21, 2009 #571 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    Tivo Desktop is probably adding metadata information to the mp4 files. There are tools out there to do that but I don't think ffmpeg can do it. I know Handbrake adds encoding information into mp4 files so may be possible though not sure - would have to look into it.
     
  12. Apr 21, 2009 #572 of 10413
    wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    ffmpeg added some support for this recently, but I haven't looked into it. I only know because it broke the old "-comment" functionality.
     
  13. Apr 21, 2009 #573 of 10413
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Afaik (at least on the mac) iTunes completely ignores the mov metadata atoms that determine if a show is a TV show, and who is in it etc. (On the mac we usually add those with MetaX). (sort of like the ID3 tags of MP3 files)

    For video, iTunes instead keeps its OWN metadata information outside of the file in some internal database. For iTiVo I had to make a bunch of applescript calls to modify the file's metadata in itunes AFTER it is added to the library. I'm sure there's an analogous method on windows but dont know what it is.
     
  14. Apr 21, 2009 #574 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    On the Mac, I've seen tools that do this before the file gets transferred to iTunes. I never really cared about the metaData getting into my iPod, but now that mcharkowski brought the subject up, I'm thinking of making a Folder Action (on Mac) to make a call to "AtomicParsley", to put this metaData back into the mp4 file.

    I'm told that there are ports for AtomicParsley for Windows.
     
  15. Apr 22, 2009 #575 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    I use atomic parsley in conjunction with dvrmsToolbox to convert programs (and strip commercials) to inject proper meta data into the resulting files. There's only a few good sites documenting this, (onlydarksets for one), so a google search should not be that hard.

    I love the meta data, not only for organization, but I keep lots of recorded movie files there, and it makes it easier to pick what I want to watch if I have the description. Multiple episodes of TV shows for the same reason.
     
  16. Apr 22, 2009 #576 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    For those of you running KMTTG on Macintosh, I've thrown together a Folder Action Script that will watch your "Encode Output Dir", and do the following:
    1. Wait until the mp4 file is done encoding.
    2. Read the MetaData that KMTTG put into the folder.
    3. Apply the MetaData to the mp4 file, using Atomic Parsley.

    This MetaData is helpful for iTunes to organize your TV Shows and Movies that get brought into your iPod, or other iTunes fed device. I'm willing to share this Folder Action Script, so send a PM if you would like a copy.

    Kevin,
    I don't know the Perl language, so I can't add this your KMTTG code, but it makes sense that's where it belongs. I've written this in AppleScript, (Just like English) so if you'd like to use this as a "Head Start" for a KMTTG feature, I'm sure it would be easy for a guy like you to translate it into Perl. (I'd take a crack, but I'm a Mac guy, and these other languages are a bit alien to me)
     
  17. Apr 23, 2009 #577 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    If you're willing to share it I can take a crack at a Perl + Atomic Parsley version to integrate into kmttg. P.M. or attachment here will work or email me if you wish. Thanks.
     
  18. Apr 23, 2009 #578 of 10413
    mcharkowski

    mcharkowski Member

    48
    0
    Aug 11, 2004
    Epping, NH
    This functionality would be great. iTunes definitely reads the atoms for TV shows because we see it honor the ones that TiVo Desktop writes. Atomic Parsley, the command line program that AudioNutz is using, does have a Windows port (just google for Atomic Parsley, they have a sourceforge site). You can write any of the standard meta tags with it, even cover art. There's a great GUI called MetaX that was mentioned earlier, and it has been ported to Windows also. It's basically a GUI to find all the meta information from Amazon/IMDB, but it uses Atomic Parsley to do the metadata tagging. It's a great program, but having this kind of functionality "automatized" in KMTTG would make it even slicker than the incredible slickness that it already is.
     
  19. Apr 26, 2009 #579 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    ------------------
    v0.5l (04/26/2009)
    ------------------
    ENHANCEMENTS
    * Added automatic Tivo detection which will automatically detect any Tivos
    on the LAN not already included in TIVOS list. Added option to disable
    that capability if desired. NOTE: This adds an extra file called
    tivo_beacon.pm to the installation set.

    * Added AtomicParsley configuration option. If AtomicParsley executable is
    defined in the configuration then kmttg will automatically add some meta
    data to mp4 files following the encoding step.
    NOTE: You also have to have pyTivo metadata defined/available since kmttg
    looks for information from file.mp4.txt file for AtomicParsley run.
    An AtomicParsley windows executable is now included as part of the win32
    zip package.

    * Added newer versions of ffmpeg and comskip to win32 zip package.

    * Changed -me to -me_method in ffmpeg profiles to make it compatible with
    newer versions of ffmpeg. That argument is also backwards compatible.

    * Added hb_tivo_sd & hb_tivo_hd encoding profiles. Handbrake encoding profiles that work pretty well for encoding H.264 video + AC3 audio for native Tivo playback. Only difference between them is higher bitrate for hd version.

    * Added ffmpeg ff_tivo_sd & ff_tivo_hd profiles roughly equivalent to the above handbrake recipes, but ffmpeg is generally quite a bit faster than handbrake.

    P.S. I don't have/use iTunes therefore didn't really have a good way to test if proper information is added to mp4 files using AtomicParsley. For those that have iTunes and requested this feature please give feedback.
     
  20. Apr 26, 2009 #580 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Yay!

    Bravo on the new Atomic Parsley integration!

    I'll admit that I have mixed feelings, since this new feature will require me to re-write the (Mac) folder action that I currently have running. Right now, one of my folder actions moves the MetaData file to the ".mpg Cut dir". (It does a bunch of other stuff too)

    I'll have to build some sort of delay into that process, to be sure that the MetaData file remains in the "Encode Dir" until the Atomic Parsley process is finished with the MetaData, etc...

    If I could choose where the MetaData was being written, like I can choose where every other file is being written by KMTTG, then it would solve this.
     

Share This Page