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. May 6, 2010 #2301 of 10413
    Icarus

    Icarus New Member

    360
    0
    Jun 15, 2002
    Upcountry...
    Would you consider adding an option to run all the encoders, decoders, etc (all the really cpu intensive stuff) at low priority or at least lower priority than "normal" priority? I'm assuming that there's a java api for that or it's part of the api used to start another program?

    -David
     
  2. May 6, 2010 #2302 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    I don't see a way to set process priority in Java when launching the jobs, at least not the way I implemented it. Of course you can always change process priorities manually in your OS (Task Manager for Windows).
     
  3. May 8, 2010 #2303 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    I fired up KMTTG again and forgot how much I love this program.

    A couple of questions/possible suggestions which I may have made before but I can't remember.

    Is it possible to add priority to the TiVos? I have 2 Premieres and one HD so as a result I would prefer if KMTTG can pull from the Premieres first due to transfer speed. Maybe even just add a delay in requesting the NPL from the TiVo set at a lower priority?

    I wish TiVo would add season as a field to pull from so I could include it in my filenames. It would make it so much easier to organize and then use tools like metabrowser to organize.
     
  4. May 8, 2010 #2304 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    There is no priority control and even if there was one can't control how long it takes for each query to return all entries (queries for different TiVos are initiated essentially at same time).
    For Auto Transfers you can restrict entries to specific TiVos, so if you want to pull certain shows from certain TiVos you can set that up. If you don't want to pull from a TiVo at all then you can remove it from kmttg and turn off the "Look for Tivos on network" option.
     
  5. May 9, 2010 #2305 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    I think it is more that I duplicate recordings across my TiVos but I would rather if possible pull from the Premieres first.

    Would it be possible to add an option where Run In GUI could select individual TiVos or all? This way I could RIG Premiere 1 and then Premiere 2 and after those queue then the HD?
     
  6. May 9, 2010 #2306 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I have 3 instances of kmttg running on one machine:
    • typical day to day instance that does television series with a name format:
      [mainTitle][/][EpisodeNumber][-][episodeTitle],
    • an "ad-hoc" instance that I use to download movies or special events, with a name format:
      [mainTitle][/][mainTitle]
    • and an instance that I use for my Series2 that records from my security camera with a name format:
      [year][-][monthNum][-][mday][-][wday][-][hour][.][min]

    I started out with just two instances because I wanted to name the security camera's videos differently, then thought about the third when I wanted to commercial cut a movie. Maybe you could setup an instance for your Premieres only, and a separate instance for the HD model?
     
  7. May 9, 2010 #2307 of 10413
    VideoGrabber

    VideoGrabber New Member

    114
    0
    Sep 11, 2003
    That sounds like a clever idea for customzing the naming, but don't the different instances fight with each other for access to your TiVos?
     
  8. May 9, 2010 #2308 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I haven't had any issues concerning that (yet?).

    The instance I have working with my Series2 & security camera has it's own (uniquely named) service, accomplished by altering C:\Program Files\kmttg for TivoS2\service\conf\wrapper.conf. I used Window's "services.msc" application to manually control that Service until I found where in kmttg's source that controls and queries that service in the GUI. I also don't have that instance "Look for Tivos on network", and only the S2 is defined.

    The "daily driver" instance that does TV series' doesn't have any shows defined in it's auto.ini that comes from the Series2, so at most it will do with that box is query the NPL. Nor does it have any movie/special events defined for auto-transfer, so there's no bumping into the "ad-hoc" instance.

    The "ad-hoc" instance isn't set for auto-transfer, so all of it's sets of jobs are manually started through the GUI.

    As far as the jobs that each instance may create (decrypt, qsfix, etc.), I haven't had a problem with that either. Then again, I don't know if I've started an "ad-hoc" set of jobs while the "daily driver" was busy with a set of jobs of it's own. The Series2 instance I have set to decrypt only, and it takes a very short time with only 30 minute SD videos being produced by that DVR.

    I'm definitely not a java programmer, but with a little help from moyekj concerning how to compile java sources (what tools and such to use), I've been able to apply my local MODs without having to bother him with a bunch of enhancement requests to suit my environment. :up:
     
  9. May 9, 2010 #2309 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Yeah that would probably work. I never thought about doing that.

    I think my only issue might be syncing the history file so it doesn't try to download shows already downloaded from the Premieres.
     
  10. May 9, 2010 #2310 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Do you run Windows? This should synchronize history files:

    Code:
    REM Synchronize.History.bat
    @ECHO OFF
    ::--------------------------------------------------------------::
    :: Copy both History files into a single temp file.             ::
    ::--------------------------------------------------------------::
    TYPE "%ProgramFiles%\kmttg Series3\Auto.History" >  %temp%\History.Merged
    TYPE "%ProgramFiles%\kmttg Series4\Auto.History" >> %temp%\History.Merged
    
    ::--------------------------------------------------------------::
    :: Initialize an empty temp file.                               ::
    ::--------------------------------------------------------------::
    TYPE NUL > %temp%\Merged.tmp
    
    ::--------------------------------------------------------------::
    :: Read every line in the merged History file, and see if it    ::
    :: exists in the temp file. If not, write that line to the temp ::
    :: file. If the line does exist in the temp file, discard it.   ::
    ::--------------------------------------------------------------::
    FOR /f "usebackq tokens=* delims= " %%a IN ("%temp%\History.Merged") DO (
    	FIND "%%a" < "%temp%\Merged.tmp" > NUL
    	IF ERRORLEVEL 1 ECHO %%a >> "%temp%\Merged.tmp"
    )
    
    ::--------------------------------------------------------------::
    :: Sort the duplicate free temp History file for easy reading.  ::
    ::--------------------------------------------------------------::
    SORT %temp%\Merged.tmp /O %temp%\Merged.tmp
    
    ::--------------------------------------------------------------::
    :: Replace the existing History files with new easy to read,    ::
    :: synchronized file.                                           ::
    ::--------------------------------------------------------------::
    COPY /Y %temp%\Merged.tmp "%ProgramFiles%\kmttg Series3\Auto.History"
    COPY /Y %temp%\Merged.tmp "%ProgramFiles%\kmttg Series4\Auto.History"
    
    Added as a Custom Command in kmttg should keep both History files up to date.

    Disclaimer: I have used the "FIND < temp > NUL" method to eliminate duplicate records in other files before, but I have not tried this particular batch in standalone. But I'm pretty confident it should work :)
     
  11. May 11, 2010 #2311 of 10413
    LynnL999

    LynnL999 Member

    352
    2
    Oct 7, 2002
    Irvine,...
    Hi -- I'm pretty new to this program. If I wanted to get Video Redo to encode with kmttg, do I need the whole TV Suite, or is Plus adequate?

    Thanks!
     
  12. May 11, 2010 #2312 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Plus does not have encoding capabilities, you need TV Suite for that. Or you can just stick to the free ffmpeg, handbrake, x264 encoders and go with VRD Plus for the invaluable Quick Stream Fix capability + mpeg2 video editing.
     
  13. May 13, 2010 #2313 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
  14. May 13, 2010 #2314 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
  15. May 14, 2010 #2315 of 10413
    wireman121

    wireman121 Member

    126
    0
    Nov 8, 2008
    I'm having trouble with the auto transfer when it gets to the addetect section. I am using VideoReDo, and I do have it configured properly - as the VRD QS Fix is running through the auto transfer service fine. When it trys to run Ad Detect, it just hangs. VideoReDo.exe is running, as is the csscript.exe but it never ends (I left it on overnight and nothing) usually this process takes 10 mins max. Any suggestions?

    Also - will the auto transfer still bring up the Video ReDo window to review the ad detect results before applying ad cut, or does that only work with the GUI?
     
  16. May 14, 2010 #2316 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    My guess is VRD Ad Detect is having trouble with that video. Try using comskip instead to detect commercials. i.e. Uncheck option under VideoRedo tab of configuration: "Use VideoRedo AdScan instead of comskip".

    If running auto transfers in service mode then "vrdreview" step (visual inspection of commercials) is skipped. You may want to try running auto transfers from GUI instead if you want that part of your flow.
     
  17. May 14, 2010 #2317 of 10413
    wireman121

    wireman121 Member

    126
    0
    Nov 8, 2008
    If I run ad detect on the same video from the GUI it gets through it fine, so its definately something with the service calling it - Regardless, I think what I'm looking for is to have the GUI do what the auto transfer service does on its own. I like the "Run in GUI" option, but if that would be a on/off toggle, so that when turned on (or checked in the menu) it would automatically check the tivo in the interval I programmed into the auto transfer options - and just do it all within the GUI instead of through the service. What I'm looking to have it do is automatically download, decrypt, and ad detect everything in the auto transfer list and then bring it up for review in VideoReDo so that when I get home, all I need to do it review it and then it will continue.....make sense?
     
  18. May 14, 2010 #2318 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    If you upgrade to latest version released yesterday there is a "Loop in GUI" option which does exactly what you are asking for. For reviewing detected commercials using VideoRedo make sure you enabled the option under VideoRedo tab: "Use VideoRedo GUI to review detected commercials"
     
  19. May 15, 2010 #2319 of 10413
    wireman121

    wireman121 Member

    126
    0
    Nov 8, 2008
  20. May 15, 2010 #2320 of 10413
    epstewart

    epstewart Member

    648
    0
    Mar 1, 2003
    Hi,

    I'm using kmttg v0p7k on Mac OS X 10.5.8. I use 2 TiVo HDs and 1 older Series3.

    I'm trying out 2 of the new wireless-N network adapters, 1 on the bedroom Series3 and 1 on the living room TiVo HD. (The other TiVo HD is in the basement and has a wireless-G adapter.) I have the N adapters networked via an 802.11 router.

    My questions are about the kmttg program option to download TiVo files in transport stream format.

    The reason I ask them is that I want to archive HD downloads on my Mac and use TivoToComeBack (in any of its forms, including TiVo Desktop and pyTivoX/StreamBaby) to upload and immediately view the programs. I would like, if possible, to avoid buffering pauses when I do this.

    So far, I have found no way to avoid the buffering pauses. The process is almost fast enough, but not quite.

    Elsewhere, I have read that the need to translate between program streams (PS) on the computer and transport streams (TS) on the TiVo slows things down, and that TiVo-to-TiVo multi-room viewing (MRV) avoids that by using TS exclusively.

    So I thought I might be able to do the same with TiVo-to-computer downloads, by using kmttg's option to "download TiVo files in transport stream format."

    I tried that with one of the HD movies I've been testing with. The original download some weeks ago was (I think — at one point I was trying "download TiVo files in transport stream format" with an earlier version of kmttg and gave up on it as causing my TiVo HD to stop communicating) in PS form. The new download, which seemingly worked fine, apparently used "download TiVo files in transport stream format."

    However, it produced an output file of exactly the same size as the old download, and the MediaInfo app says it is MPEG-PS. Plus, the new download uploads to the Series3 TiVo (using TiVo Desktop) at exactly the same pause-ridden rate as the old download did.

    I wonder if the new download turned out to be a PS, not an honest-to-goodness TS, and if so, why wasn't it really a PS? (I rechecked, and I definitely had "download TiVo files in transport stream format" on in kmttg config when I did the new download.)

    And while I'm on the subject ... if I ever do manage to get an honest-to-goodness TS download to my computer ... will I actually be able to upload or stream it back to any of my TiVos, using TiVo Desktop, pyTivoX, StreamBaby, or whatever other interface would do the trick?

    I thank any of you experts in advance for any help you can give.
     

Share This Page