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. Sep 21, 2013 #5801 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    No, it's not possible via RPC as far as I can tell.
     
  2. Sep 21, 2013 #5802 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Since the iPad app now supports remote management, did anyone ever discover a way to use KMTTG remotely?

    I wanted to try to use it to manage my mom's Elite. The iPad works ok, but is so much slower.
     
  3. Sep 21, 2013 #5803 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    kmttg has supported controlling TiVos via WAN for a long time - I use it away from home to interface with my TiVos at home without using remote management software. The "hard" part is you have setup router WAN-LAN port forwarding on the LAN where the TiVos reside.
     
  4. Sep 21, 2013 #5804 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Ok thanks I will look into it. I only just moved the Elite over there so I had no need for it earler.
     
  5. Sep 22, 2013 #5805 of 10413
    Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...

    One thing I've noticed with this process is that i don't get a final metadata file. I have one mpg and tivo but none with mp4. So I've been taking the mpg file and changing it to mp4.

    Ive tried this with "metadata file" set to last and all. Is there another setting that will keep the metadata flowing to the final mp4 file?
     
  6. Sep 22, 2013 #5806 of 10413
    Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Also, my tivoHD is rebooting again at about 256 recordings. Was the fix that made it work before removed when 11.0m was released or why would it start doing that again?

    Scratch this one, I read my last post again and realized it was a pytivo file. I deleted them all and now i seem to be pulling the NPL.
     
  7. Sep 22, 2013 #5807 of 10413
    onovotny

    onovotny New Member

    11
    0
    Aug 26, 2013
    I noticed some odd behavior using kmttg. I have a Roamio and a Mini. The problem is that kmttg detects the Mini as a full TiVo, so some things are duplicated. In particular, the "Season Premiers" shows everything twice...

    Can Minis be detected (by the TSN?) and treated differently? Really, the only functionality there should be the navigation (hme) and the remote control for channel changing.

    Everything else should happen to the regular TiVo.
     
  8. Sep 22, 2013 #5808 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    If you update to recent release of kmttg (like the latest) the Mini is treated differently. You can still choose to enable or disable iPad in the kmttg config-Tivos tab to decide if you want Mini to show up in Remote tabs or not. I like having Mini in Remote tab so I can check Info and also do a Net Connect.
     
  9. Sep 23, 2013 #5809 of 10413
    onovotny

    onovotny New Member

    11
    0
    Aug 26, 2013
    I'm using v1p0g, is that the latest, what should I see that's different about the Mini? It appears to be treated the same as the regular one, but I might not be looking at the right thing :)
     
  10. Sep 23, 2013 #5810 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    The main thing is that a Mini shouldn't have its own tab for Now Playing list in the GUI, and Mini is ignored by Batch and Auto Transfers mode when processing shows and for Auto Conflicts resolver. For "Remote" tabs you can choose whether to show the Mini or not via the config Tivos tab iPad setting.
    Also when kmttg retrieves consolidated ToDo lists it will only do so for non Mini units.

    "Season Premieres" tab only uses the currently selected TiVo so if you're seeing duplicated entries in there it's not because of the Mini. As a test of that disable Mini from "Remote" tab and run "Season Premieres" again. I do get some duplicated entries myself once in a while, but it's not every entry and don't know what the pattern is but it's based on what RPC search is returning.
     
  11. Sep 23, 2013 #5811 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    Last night I set a bunch of programs to download and encode and this morning I have this repeated in red a few times in the log:

    Code:
    java.lang.OutOfMemoryError: Java heap space
    	at java.awt.image.DataBufferInt.<init>(Unknown Source)
    	at java.awt.image.Raster.createPackedRaster(Unknown Source)
    	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
    	at java.awt.GraphicsConfiguration.createCompatibleImage(Unknown Source)
    	at java.awt.GraphicsConfiguration.createCompatibleImage(Unknown Source)
    	at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
    	at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
    	at sun.awt.image.VolatileSurfaceManager.displayChanged(Unknown Source)
    	at sun.awt.SunDisplayChanger.notifyListeners(Unknown Source)
    	at sun.awt.Win32GraphicsEnvironment.displayChanged(Unknown Source)
    	at sun.awt.windows.WToolkit$3.run(Unknown Source)
    	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    	at java.awt.EventQueue.access$200(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)
    Not a big deal, but thought I'd mention it.
     
  12. Sep 23, 2013 #5812 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    If you keep running into that and it's actually preventing things from running/working you may consider increasing initial and max heap space available to Java when starting kmttg. (Java folks decided they would impose their own default memory limits instead of using OS defaults).

    Specifically the relevant java options are:
    java -Xms<initial heap size> -Xmx<maximum heap size>
    By default the values are 32m & 128m respectively. So for example to change that you could run kmttg as:
    java -Xms256m -Xmx1028m -jar kmttg.jar
     
  13. Sep 23, 2013 #5813 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    Great, thanks. I'm going to try converting a bunch more overnight tonight and we'll see if it springs up again.
     
  14. Sep 24, 2013 #5814 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    I'm sure this has been answered before, but:

    In KMTTG you can limit the number of encoding cores, but HandBrake seems to ignore it. My KMTTG is set to 2 and yet HandBrake is using all 8 with a Job Limit of 1. Am I missing anything? Or is there a way to make HandBrake follow the KMTTG defined limit? I asked on the HandBrake forums, but nobody replied.
     
  15. Sep 24, 2013 #5815 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    The older versions of Hanbrake CLI did support # threads specification but at some point they got either removed or changed, so the packaged kmttg profiles no longer have them. If you figure out that there is a CLI option then the keyword to use in kmttg profile is CPU_CORES. You'll see the ffmpeg profiles using that keyword.
     
  16. Sep 24, 2013 #5816 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    I previously went through the HandBrake CLI page and didn't see anything:

    https://trac.handbrake.fr/wiki/CLIGuide

    I thought maybe you could pass it via --encopts to the actual encoder, but couldn't find anything along those lines.

    Thanks for verifying that I wasn't crazy though :)
     
  17. Sep 24, 2013 #5817 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    It looks like for an h264 encoding profile as part of the "-x" arguments adding the following works: threads=CPU_CORES
    So for example for the hb_xbox360 profile:
    Code:
    HANDBRAKE -i INPUT -t 1 -c 1 -f mp4 --large-file -e x264 -b 2000 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 1 -x threads=CPU_CORES:level=40:ref=2:mixed-refs=1:bframes=3:weightb=1:subq=9:direct=auto:b-pyramid=1:me=umh:analyse=all:no-fast-pskip=1:deblock=-2,-1 -v -o OUTPUT
    
     
  18. Sep 25, 2013 #5818 of 10413
    wuzznuubi

    wuzznuubi New Member

    118
    0
    Jan 16, 2013
    Not a direct answer to your question, but I also experienced metdata file misnaming since I use VRD to decode, QSF and repackage my TiVo downloads (downloaded using kmttg as transport stream tivo files) as .ts files. The metadata would always be named .mpg.txt instead of .ts.txt.

    No matter what I selected in kmttg for metadata it always happened.

    For quite awhile, I just renamed the metadata files from .mpg.txt to .ts.txt.

    After enough of this manual workaround, I finally created a script.

    Figured I wouldn't rock the boat since I have no complaints on kmttg, quite the contrary - don't know how I'd do without it. I simply created a script that renames them and call that script as a custom command in kmttg.

    I really love the transport stream handling that's been added to both kmttg and pytivo, VRD just adds icing to my cake!

    THANKS moyekj
     
  19. Sep 25, 2013 #5819 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    Excellent, this does work. Here's my results:

    Code:
    Test File
    --------------------
    Length: 0:45
    Filesize: 73mb
    Resolution: 1920x1080i
    Format: MPEG-2
    
    Encoding time
    --------------------
    Default with all 8 -- 1:08
    "threads=CPU_CORES" set to 2 -- 1:47
    
    Thanks so much!
     
  20. Sep 25, 2013 #5820 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Ah yes, that's a little tricky since the ts designation is made during the decrypt/qsfix task which is after metadata file creation. Next release will take this into consideration during the qsfix task though and rename .mpg.txt if it exists to .ts.txt.
     

Share This Page