New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Jun 19, 2019 #12221 of 12256
    mlippert

    mlippert Active Member

    237
    46
    Apr 2, 2010
    Massachusetts
    Also your output file paths are a little strange note the double backslash in "C:\\All in the Family - Meet the Bunkers (04_19_2015).mpg"

    I don't think that should be a problem, but when things aren't working anything strange is suspect.
     
  2. Jun 19, 2019 #12222 of 12256
    samg6565

    samg6565 New Member

    3
    5
    Sep 26, 2017
    I have found the issue.
    First I will answer a couple of questions.

    I did not replace the MAK, I just copied the output from the bottom portion of kmttg's window.

    The double backslash is not an issue. If you double click on the output directory input box and choose a root directory in will include a backslash. That shows up as \\ in the kmttg window.

    What I have found is that when I use the FILE tab it does not use the File Naming protocol.
    I use [mainTitle][/][mainTitle] [EpisodeNumber] [episodeTitle], which creates a directory for the main title. This works great in my usual download\decrypt but not from the FILES tab.
    If I'm doing an Ad Cut with previously downloaded edl AND decrypted files, it will not use the File Naming protocol either. It defaults to the path you input in the output directory section.
    In my case had chosen C:\. On my computer, kmttg will not write to that root directory.
    I gave it a directory and it worked.

    KMTTG is an awesome program and without it my love for TIVO would be somewhat diminished. But it would be awesome if the File Naming protocol would work from the FILES tab.

    Thanks for everyone's interest, suggestions and willing to take time to help. I hope the discussion of my situation can help someone else's.
     
    kpeters59, Mikeguy, mlippert and 2 others like this.
  3. Jun 20, 2019 #12223 of 12256
    mlippert

    mlippert Active Member

    237
    46
    Apr 2, 2010
    Massachusetts
    Thanks for posting what you found out. It's always helpful to know how things got resolved.
     
    kpeters59 likes this.
  4. Jul 1, 2019 #12224 of 12256
    nitro001

    nitro001 New Member

    6
    0
    Oct 30, 2017
    Hello. I am hoping to get kmttg configured using my synology NAS, where my plex server also runs. I have installed Java, opkg, X11, have xterm running but can't get GTK so I can't get the GUI to appear for the kmttg app for initial
    configuration:
    Code:
    Error initializing QuantumRenderer: no suitable pipeline found
    java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    ....
    Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
            at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
            at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
            at java.lang.Thread.run(Thread.java:748)
    
    Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "main"
    
    I know the application is accessible once configured via the web, but that also seems to be started via GUI.

    Is there any command line arguments I can use to start kmttg from the shell and generate a config file which I can then edit in VI and another command argument to run the web server that I could place in a startup script to load on boot?

    Thanks in advance.
     
  5. Jul 6, 2019 #12225 of 12256
    minimeh

    minimeh Vanity Phrase Here

    292
    42
    Jun 20, 2011
    San Francisco
    I'm seeing an exception when importing skip points from a project created with VideoRedo 6.4.90.797. Here's the error message:
    Code:
    SkipImport vrdImport - Content is not allowed in prolog.
    [com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source),
    com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source),
    com.tivo.kmttg.rpc.SkipImport.vrdImport(SkipImport.java:123),
    com.tivo.kmttg.task.vrdreview.check(vrdreview.java:222),
    com.tivo.kmttg.main.jobData.check(jobData.java:333),
    com.tivo.kmttg.main.jobMonitor.monitor(jobMonitor.java:147),
    com.tivo.kmttg.gui.gui$5$1.run(gui.java:326),
    com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295),
    java.security.AccessController.doPrivileged(Native Method),
    com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294),
    com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95),
    com.sun.glass.ui.win.WinApplication._runLoop(Native Method),
    com.sun.glass.ui.win.WinApplication.lambda$null$152(WinApplication.java:177),
    java.lang.Thread.run(Unknown Source)]
    
    I opened the project in VideoRedo 5.4.04.771 and saved the project without any changes. Importing the v5 project succeeds. I did a file comparison of the two projects and the only substantial differences I can see is that the v6 project has prettier formatting. The v5 project uses minimal whitespace but both seem pretty much the same from an xml perspective, although obviously something is different.

    I'm using kmttg 2.4l with java version "1.8.0_212" on Windows 10. I've attached the two project files with names indicating which is which and the .vprj extension changed to .txt to allow uploading.

    [EDIT] I think I found the problem. The v6 project file begins with a byte order marker (BOM). It seems that either VideoRedo v6 needs to go back to not generating the project files with a BOM or kmttg will need to account for it when parsing the XML file.

    [EDIT] I've posted this issue to the VideoRedo v6 forum as well.
     
    Last edited: Jul 7, 2019
    mlippert likes this.
  6. Jul 7, 2019 #12226 of 12256
    moyekj

    moyekj Well-Known Member

    11,862
    578
    Jan 23, 2006
    Mission...
    I checked into source code a fix/workaround for the VRD6 UTF8-BOM format to strip out the BOM character at start of file if it exists before passing along to Java xml parser which can't deal with BOM. Note that I mostly stopped work on kmttg (in case it wasn't obvious already), but David Blackledge has been doing some updates to kmttg lately, so I'm not exactly sure what all those changes are and if it's safe to release a new version at this point.
     
    kpeters59 likes this.
  7. Jul 8, 2019 #12227 of 12256
    davidblackledge

    davidblackledge Registered lÜser

    536
    24
    Sep 9, 2008
    NM
    It's safe. I'm trying to only check in complete features. I'll give you a feature list if you like, or can post it here.
     
    kpeters59 and mlippert like this.
  8. Jul 9, 2019 #12228 of 12256
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    46,328
    3,807
    Apr 17, 2000
    Nevada
    Despite what DanR said on our forum we need that BOM in some of our own code to make the unicode characters parse properly when reading text based file, so we can't just remove it. We do have an option in VRD to read unicode XML without a BOM if it has an encoding declaration in the XML itself, so it's possible that we could maybe remove it from the project files, but we use a common text file writer class for all text file output from VRD so we'd have to explicitly turn off BOM writing for project files to do that. Not sure how easy that is to do. So if it's possible fix in kmttgs parser instead that would be ideal.

    The BOM should be something that most XML parsers and text readers can deal with. It's been around for a long time and is common for text files with UTF8/unicode characters.
     
    mlippert likes this.
  9. Jul 10, 2019 #12229 of 12256
    moyekj

    moyekj Well-Known Member

    11,862
    578
    Jan 23, 2006
    Mission...
    I already have a fix/workaround checked into source code taking the BOM out before sending to Java XML parser which doesn't allow BOM to be there. Just got to get time to work on generating new kmttg release.
     
    kpeters59 and mlippert like this.
  10. Jul 12, 2019 #12230 of 12256
    mitch1138

    mitch1138 New Member

    3
    0
    Jan 2, 2004
    Playlist Folders
    Great program. Question, the downloaded playlist used to have programs organized in folders by series (like on the TiVo), now they just show up as individual files. I looked around the WiKi and settings, but no luck. Any suggestions on how I get folders back? Thanks
     
  11. Jul 12, 2019 #12231 of 12256
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,286
    621
    Apr 6, 2000
    SF Bay Area
    Checkbox folders, right above the list window.
     
  12. Jul 13, 2019 #12232 of 12256
    mitch1138

    mitch1138 New Member

    3
    0
    Jan 2, 2004
    Thanks so much, pretty obvious in retrospect!
     
  13. Jul 13, 2019 #12233 of 12256
    philhu

    philhu User Since Day ONE!

    932
    18
    Apr 11, 2001
    Funcity, AZ
    I think it used to default to last setting. So unless you turned it off. Between sessions it stayed on

    Now it seems to reset each run
     
  14. Jul 13, 2019 #12234 of 12256
    moyekj

    moyekj Well-Known Member

    11,862
    578
    Jan 23, 2006
    Mission...
    OK, version 2.4m now released that has the VRD 6 fix and various fixes/changes/enhancements by David Blackledge:
    kmttg / Wiki / release_notes
     
    davidblackledge, minimeh and Lurker1 like this.
  15. Jul 14, 2019 #12235 of 12256
    davidblackledge

    davidblackledge Registered lÜser

    536
    24
    Sep 9, 2008
    NM
    By the way, now that the app launch list is configurable and has associated channel numbers, I'm listening if anybody has better ideas about what to have in the default list settings.
    I intend to make the list editable from configuration when I find the time, but for now it's just the file in the web folder.

    Default channels I set up as 0-x for videos (including streambaby on channel 0-5 if you have it running on the same machine) and 1-x for music.

    Netflix is channel 0-1. I know it already works as channel 3000 on the "TiVo Premiere Q" and "Suddenlink" but that changes on different providers, so I went with this sub-channel pattern instead.

    Not sure what problems there were with the Pandora flash app that had it disabled, but maybe that should be re-enabled as channel 1-1?

    You don't have to add Enterwebz.tv to your TiVo to launch its apps this way, so if there are any other apps people use other than Archive On Demand (channel 0-6), those could be added, too.
     
  16. Jul 22, 2019 #12236 of 12256
    minimeh

    minimeh Vanity Phrase Here

    292
    42
    Jun 20, 2011
    San Francisco
    @moyekj:

    Rather than patiently waiting for the next release to get the new SPS7xS support, I compiled from the latest source code. The SPS7xS commands are great!

    While I had the development environment set up, I made another small change. When in quick mode, the auto skip service intentionally suspends functioning. I know for most trick play (like fast forward and slow motion), this makes sense. But for quick mode, which is a viewing mode and not just a repositioning mode, it would be really nice to have auto skipping. The patch code below does that. I hope you will incorporate it into the code base! Thanks.
    Code:
    Index: src/com/tivo/kmttg/rpc/AutoSkip.java
    ===================================================================
    --- src/com/tivo/kmttg/rpc/AutoSkip.java    (revision 4366)
    +++ src/com/tivo/kmttg/rpc/AutoSkip.java    (working copy)
    @@ -279,7 +279,8 @@
        }*/
        
        // RPC query to get current playback position
    -   // NOTE: Returns -1 for speed != 100 to avoid any skipping during trick play
    +   // NOTE: Returns -1 for speed < 100  or speed > 190 to avoid any skipping during trick play
    +   //       but allowing skipping during quickmode
        private synchronized long getPosition() {
           debug.print("");
           if (r==null || ! monitor) return -1;
    @@ -302,9 +303,12 @@
                 // DEBUG JSONObject w = r.Command("whatsOnSearch", new JSONObject());
                 // DEBUG log.print("w=" + w.toString(3));
                 if (reply.has("speed")) {
    +               // Check if fast forward (>190) or slow motion (<100) are in play,
    +               // but allow normal (==100) or quickmode (>=110 && <=190)
                    int speed = reply.getInt("speed");
    -               if (speed != 100)
    +               if (!(speed >= 100 && speed <= 190)) {
                       return -1;
    +               }
                 }
                 return reply.getLong("position");
              } catch (JSONException e) {
    
     
    Mikeguy, kpeters59 and Lurker1 like this.
  17. Jul 22, 2019 #12237 of 12256
    moyekj

    moyekj Well-Known Member

    11,862
    578
    Jan 23, 2006
    Mission...
    OK, patch checked into source code.
     
  18. Jul 30, 2019 #12238 of 12256
    LarryR6985

    LarryR6985 New Member

    2
    0
    Jul 23, 2015
    I'm trying to install kmttg on a new computer, Windows 10. I installed the latest version of the Java Runtime Environment in the default location, which is in C:/Program Files (x86)/Java. Tivo Desktop is installed in the default location at c:/Program Files (x86)/Tivo. I installed kmttg at c:/kmttg.

    When I double click on kmttg.jar, I get the message "The system cannot find the specified path." It's not clear to me whether kmttg can't find Java, whether it can't find TiVo Desktop, or what.

    Can anyone help with the "System cannot find the specified path" error? Thanks.
     
  19. Jul 31, 2019 #12239 of 12256
    HomeUser

    HomeUser Active Member

    2,440
    8
    Jan 12, 2003
    A2 Michigan
    LarryR6985 likes this.
  20. Aug 1, 2019 #12240 of 12256
    LarryR6985

    LarryR6985 New Member

    2
    0
    Jul 23, 2015
    Thank you! Fixed it on the first try.
     

Share This Page