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 11, 2008 #141 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    New version just released.

    ------------------
    v0.3c (04/11/2008)
    ------------------
    ENHANCEMENTS:
    * Added sorting capability to Now Playing List shows. By clicking on list headers you can
    now sort by earliest/latest date first, smallest/biggest file size first or
    alphabetically/reverse alphabetically by show name.

    * Added configuration option that can be enabled to delete .TiVo files automatically
    following successful decryption to .mpg
     
  2. Apr 12, 2008 #142 of 10413
    nickhaas33

    nickhaas33 New Member

    38
    0
    Dec 11, 2006
    Sorting works Great.
    Thanks very much!
    You need to take a day off now
    :)
     
  3. Apr 12, 2008 #143 of 10413
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Anthony,

    Did you have problems getting ffmpeg installed on Mac OS X or the command line working?
     
  4. Apr 12, 2008 #144 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    New version just released. I think I'll take a break on updates for now. :)
    ------------------
    v0.3d (04/12/2008)
    ------------------
    ENHANCEMENTS:
    * Added Tivo show expiration graphics as 1st column of Now Playing List. Added a CHANNEL column indicating channel number and name for the show. Just as with other column headers you can sort shows by expiration or channel # by clicking on the list header buttons.

    BUG FIX:
    * File cleanup following comskip was not working - that has been fixed.
     
  5. Apr 13, 2008 #145 of 10413
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    I had no problem getting it installed. I never got it to work, though.
     
  6. Apr 16, 2008 #146 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Got 9.3a Tivo software on my S3s today and I just confirmed that kmttg works fine as is with no changes needed.
     
  7. Apr 19, 2008 #147 of 10413
    nickhaas33

    nickhaas33 New Member

    38
    0
    Dec 11, 2006
    I know this is not a ffmpeg forum, but I really want to get this thing automated like you did for your cowan player.

    I looked at the ffmpeg documentation here:
    http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html

    I have played around with your default options, but I cannot get it to work right.
    Some of the options you are using are not even in the documentation.
    For instance -trell and -max_bframes.
    I have tried the -vcodec mpeg4 and it does not work, even in conjuction with -vtag divx or -vtag xvid.
    If you can give me some pointers that would be great (or point me to a place that has parameters and examples that work with ffmpeg).
    Thanks for such a wonderful front-end tool.
     
  8. Apr 19, 2008 #148 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    New version just released with capability of creating pyTivo compatible metadata file.
    ------------------
    v0.3e (04/19/2008)
    ------------------
    ENHANCEMENTS:
    * Added option to create a pyTivo compatible metadata file. This allows one to save the
    detailed descriptions about a show such that if you serve the show back to your Tivos
    using pyTivo server you can see the detailed information in show description.
     
  9. Apr 19, 2008 #149 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Send me (email or PM) what options you are trying that aren't working and what your target device and format are and perhaps I can help. I'm considering perhaps in a future release creating a menu of pre-defined choices for ffmpeg in the configuration GUI for the most common encodings to make this easier to start from known good templates.
     
  10. Apr 20, 2008 #150 of 10413
    satmaster

    satmaster Member

    79
    0
    Sep 11, 2004
    Louisiana
    Can you make the comskip work with TMPGEnc.

    But heres the deal since TMPGenc and VideoReDo can load a tivo file direct and edit it and output unencoded video yuo dont really need a decode program do you?

    I did use VideoReDo Plus but thast a paid program.
     
  11. May 1, 2008 #151 of 10413
    ronaldlw

    ronaldlw New Member

    21
    0
    Apr 29, 2008
    First, I love your script!! I have a couple of questions though..

    First, when trying to start from files already on my pc, is there any way to select multiple files? It seems that when in the add file dialog only one file can be selected at a time. It would be nice if the list could just automatically populate the same as when the playlist is downloaded from the tivo. I have a bunch that i need to convert and the thought of selecting them one by one is really daunting! Also, if the file is on the pc already, is all of the metadata already gone? Selecting create metadata doesn't seem to do anything if starting from a tivo file on the pc.

    Second, is there any way to put the episode number of a show in the title? most of the time with tv shows i like to name it something like: The_Simpsons_01x21.avi, so that the shows are sorted in order of original air date instead of strictly alphabetical order.

    Third, is there any way you could initiate two processes at once? Specifically i think it would be very helpful to be downloading the next file to be processed from the tivo while encoding the current file.

    Fourthly, is there any way to have the script download new shows as they finish recording, more like tivo desktop? Or at least to be able to easily select just the shows that have not been downloaded already?

    I'm running this on an xp machine btw.

    Thanks again for this great tool!

    Ron
     
  12. May 1, 2008 #152 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    I looked into that when I 1st implemented the browser. Using the native windows file browser I didn't find a way of enabling multiple files at a time. Probably what could easily be done is an "add all" button that lets you load all .mpg/.mpeg/.TiVo files in a given directory you choose with a browser.
    That's right, currently I get most of the metadata information from the TiVoVideoDetails url off the Tivos, not based on .TiVo files. There is some metadata in the .TiVo file itself, and tools such as pyTivoMetaGen exist that can extract it, but the data is more limited compared to what can be pulled from the Tivos. I haven't looked into seeing how hard it would be to do via Perl scripting but my guess is not terribly easy. The tivodecode binary has a means of dumping some of the metadata information so that may be the easiest route to generate from .TiVo files. If you have already converted to .mpg however, the metadata information is already gone.
    No, but I could easily add that as a keyword, bearing in mind that some shows won't have episode #s so the keyword would get replace with nothing.
    It certainly is possible though it adds to the complexity a little bit, but since downloads do take a long time and as long as I restrict to 1 download per Tivo at a time it would be a nice thing to do - I'll look into it.
    I've been looking into auto download capability a lot recently and even have a prototype, but hitting into some snags since it involves having to use Windows Services with Perl scripts which I'm finding out is not an easy thing to do and some things don't run properly as a Service even though they run fine as a batch script (permissions problems). So I'm not sure at this point if I can even make it work as a service. Not sure if a plain old batch mode script is useful to anyone...
     
  13. May 2, 2008 #153 of 10413
    ronaldlw

    ronaldlw New Member

    21
    0
    Apr 29, 2008
    Thanks for the quick responses! Looking forward to testing out what you come up with! Let me know if there is anything I can do to help.

    Ron
     
  14. May 2, 2008 #154 of 10413
    wombat94

    wombat94 Member

    62
    0
    Nov 18, 2007
    While a service would be ideal, a batch mode script would be a big step in the right direction. I could then just schedule it to run with the windows task scheduler. I typically have at least one machine on the network that is logged in.
     
  15. May 4, 2008 #155 of 10413
    ronaldlw

    ronaldlw New Member

    21
    0
    Apr 29, 2008
    Been using this quite a bit, man it sure helps speed up the tedious process of getting shows off the tivo and converted to xvid!

    Couple of things though, it would be nice to have the option of deleting different intermediate files, like the cut mpg and mls edl and original converted mpg files, just leaving the txt and final avi files.

    Also, it would be nice to have the txt file named correctly for the final format of the file, the way it is now i have to go back and rename the xxx.mpg.txt file to xxx.avi.txt.

    Thanks again! I think i'm going to have to learn pearl to start messing around with this myself, too fun!

    Ron
     
  16. May 4, 2008 #156 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Just to let you know that I am working towards a new release, hopefully in a few more days. There are so many changes now that I will probably release as a "experimental" release, leaving the 0.3e version for download as the stable version. Some changes already in place:
    * For windows, file browser can now select multiple files
    * episode number is now available as a keyword to build file names
    * auto downloads capability (implemented as a service in windows). There is a full GUI associated with configuration of what shows to download, and they can be by title or keyword specifications. Just as with the GUI aside from download you can also enable other actions such as metadata, decrypt etc.
    * The groundwork is set for allowing multiple jobs to run in parallel, but I probably won't release this capability yet in the experimental release.
     
  17. May 7, 2008 #157 of 10413
    ronaldlw

    ronaldlw New Member

    21
    0
    Apr 29, 2008
    just wondering how the update is coming along? Also, I was curious what tools you use to develop this app? I've been interested in learning pearl and this project might be just the motivation I've needed.. :)

    Thanks,
    Ron
     
  18. May 7, 2008 #158 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Everything I mentioned above and more I'm done with the coding and testing part... still have some work to do on updating documentation however which is much less fun. Doesn't help that I've had jury duty the last few days in addition to trying to keep up with my real job. Maybe tonight or tomorrow I will be ready to release.
    As far as development tools there is nothing special needed besides a text editor since perl is an interpreted language. i.e. the source code is the execution code with no compile necessary. Since it is quite a popular programming language it's pretty easy to find examples and help online and I've been using it for years at work which helps a lot. Running perl script with -w switch is a form of 'lint' which will point out any obvious things you may be doing wrong.
     
  19. May 7, 2008 #159 of 10413
    Prestond

    Prestond New Member

    44
    0
    Feb 4, 2008
    Hi Kevin,

    I love this program and have been using it without any problems at all (once I got the directory paths pointing correctly).

    Is there anyway to break up a broadcast into chunks of 1 hour sections (or some predetermined time duration)?

    I use the HD-DVD recording scenario (yes I am still using my HD-DVD player
    for this and my library of HD-DVD videos....I often tape them to my Betamax ;) ) would like to break up the broadcast into smaller pieces to get them to fit in the 45 minutes that can fit on a standard DVD disk when recording HD-DVD.

    Is this a limitation of the programs that are being called by kmttg?

    Thanks for a great program!!!

    Preston
     
  20. May 7, 2008 #160 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    As promised a new version has just been released with a bunch of enhancements. I'll be especially interested in feedback if the windows kmttg service installs and runs OK. I had trouble getting it to work initially myself on my Windows XP machine at home - not exactly sure what changed at some point where it just started working. Note the point below about needing srvany executable installed if you intend to use kmttg service for automatic transfers.

    Also, if you do plan to use the auto downloads capability please consult the updated documentation for more details on exactly how the windows service works and how to make changes to the startup mode if necessary.

    ------------------
    v0.4a (05/07/2008)
    ------------------
    **IMPORTANT** For windows users if you want to use auto downloads service
    capability you will need to install the srvany folder with the srvany.exe executable
    that is part of the kmttg_win32_tools.zip file.

    ENHANCEMENTS:
    * Auto downloads capability now enabled. There is now a GUI you can use to
    setup auto downloads by title or keyword matching.
    For Windows platform you can run this as a service.
    kmttg can now be run in batch modes:
    -a command line option => auto download daemon mode (loops after processing)
    -b command line option => auto download batch mode (exits after processing)
    Consult documentation for more details on this capability.
    * Multiple jobs now run in parallel where possible instead of sequentially.
    The program limits to 1 file download per Tivo so as not to overload Tivos.
    * For windows, file browser can now select multiple files at a time
    * Episode number is now available as a keyword to build file names
    * Metadata generation from .TiVo files is now supported when starting from FILE mode
     

Share This Page