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

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

  1. Oct 3, 2019 #12421 of 12452
    lew

    lew Well-Known Member

    4,204
    73
    Mar 12, 2002
    Why don't you experiment. Use kmttg to just download the encrypted tivo program
    Open the video in VRD do the steps manually and see what works
     
  2. Oct 3, 2019 #12422 of 12452
    aaronwt

    aaronwt UHD Addict

    22,507
    838
    Jan 31, 2002
    Northern...
    I did. VideoReDo still choked on them with QSfix. When running QSFix on the two files in the VideoReDO GUI.
    No idea why VideoReDo chokes on them but the built in kmttg QSFix does not.

    What I did not do was check those files with VideoReDo Suite 5. I was only using Suite 6, since I had just purchased the upgrade. But I'll need to try them with Suite 5 tonight or tomorrow to see if it has the same results.
     
  3. Oct 3, 2019 #12423 of 12452
    SamuriHL

    SamuriHL New Member

    29
    5
    Jan 23, 2012
    Ok, you need to understand something about what VRD is doing vs what the "built in 'fix'" is doing. VRD does a very thorough cleansing of the data in the file. When you say the "skip points are way off" it's because VRD removed the broken data from the output file, and the file is shorter. The removed sections of broken video are why the skip points are off. These files really ARE broken even if the built in "fix" doesn't "choke" on them. This isn't a VRD issue. It's an issue with the files you're feeding it. Look at the VRD log for one of the shows you've qsfixed and you will see all the errors in your file.
     
  4. Oct 3, 2019 #12424 of 12452
    SamuriHL

    SamuriHL New Member

    29
    5
    Jan 23, 2012
    P.S. I have a feeling your response is going to be "but the built in stuff works." It doesn't really. Yes, you may be able to play the output, but, the files still are broken.
     
  5. Oct 3, 2019 #12425 of 12452
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,586
    673
    Apr 6, 2000
    SF Bay Area
    You should know that VRD detects breaks of at least 2 seconds of blank screen and not the actual commercials. AdDetective just marks those but does not remove them and you need to manually go through in its removal. VRD is not always able to detect them if there is <2 seconds of blank screen separations and may treat them as the show content. It may also treat parts of the actual show as ads and remove them if auto-removal is enabled.

    I always go through the videos and delete them manually, VRD just marks them using AdDetect. Sometimes I just save the project file (with the proper cuts saved) and let AdCut do its job.
     
    mlippert likes this.
  6. Oct 3, 2019 #12426 of 12452
    SamuriHL

    SamuriHL New Member

    29
    5
    Jan 23, 2012
    I don't use VRD for ad scanning. I was hoping VRD 6 would improve that situation, and maybe it has but I've not spent time building profiles yet, but so far it does not even come close to comskip for ad scanning for my videos. They added the ability to create profiles so that you can tune it per channel/show/whatever and that might improve things. But in my case I use the following workflow:

    KMTTG:
    Download TiVo file
    VRD QSFIX to decrypt and output clean TS file
    comskip scan for commercials, output vprj file for VRD
    VRD:
    Open vprj, manually massage cut points
    Save edited TS if mpeg2 else save MKV if h264.
    If h264 MKV, manually move to my NAS Plex directory
    Else Run a set of powershell scripts I wrote that moves the TS file to my HTPC (it has an RTX 2070...my laptop doth not) and run an h265 nvEnc encode to MKV VRD profile and then move the resulting MKV to my NAS Plex directory

    I do this on probably a dozen or more shows throughout the year. Works fantastic.
     
    mlippert likes this.
  7. Oct 3, 2019 #12427 of 12452
    leswar

    leswar leswar

    203
    17
    Apr 14, 2005
    Vero Beach

    Does comskip work on Comcast's encoded x264 channels? I find that videoredo will choke on them. But if I tell KMTTG to use QFFIX and have it force "mpeg output" then videoredo then can proceed. Now that Comcast has convert even our locals I have no native mpeg channels left and have to rely on my ota tivos to record the very few ota channels I do receive poorly. Then I have to deal with digital confetti.
     
  8. Oct 3, 2019 #12428 of 12452
    SamuriHL

    SamuriHL New Member

    29
    5
    Jan 23, 2012
    Ewwww. They've really pushed this "compress everything into oblivion" nonsense WAY too far. Yes, comskip works on the 720p compressed to hell and back h.264 channels. Half my shows I record are exactly that.
     
    mlippert likes this.
  9. Oct 3, 2019 #12429 of 12452
    minimeh

    minimeh Vanity Phrase Here

    323
    70
    Jun 20, 2011
    San Francisco
    mlippert and ClearToLand like this.
  10. Oct 3, 2019 #12430 of 12452
    SamuriHL

    SamuriHL New Member

    29
    5
    Jan 23, 2012
    Oh yea, that's true! I forgot because I bought it so many years ago.
     
    mlippert likes this.
  11. Oct 5, 2019 #12431 of 12452
    cwb3106

    cwb3106 Member

    50
    9
    Jan 18, 2010
    FWIW: v2.4n may have introduced a bug in the Search++ feature.

    After I upgraded to v2.4n, I noticed that the Categories field in Search++ was blank. And existing searches that used categories failed.

    Reverted to v2.4m and categories populated correctly and searches ran without errors.
     
  12. Oct 5, 2019 #12432 of 12452
    minimeh

    minimeh Vanity Phrase Here

    323
    70
    Jun 20, 2011
    San Francisco
    I just tried Search++ and saw this error
    Code:
    RPC error response:
    {
       "code": "authenticationFailed",
       "text": "error response from IT code: 'usernamePasswordError' text: 'Authentication Failed'",
       "type": "error"
    }
    
    rpc Auth error - null
    Tried a couple more times and no error but no categories either.

    [Edit] Turns out I had an outdated password set up for kmttg. Once I corrected that, I did see categories for v2.4m but still see "rpc Auth error - null" (without the JSON error response) for v2.4n.

    [Edit] I noticed that the only significant differences from v2.4m and 2.4n for Search++ was a switch from ComboBoxes to ChoiceBoxes in AdvSearch.java and that Remote.java was very much different.

    I copied the Remote.java source code from the v2.4m release to the v2.4n code branch and compiled. With that older Remote.java, v2.4n gives me no error messages for Search++ and displays the categories correctly.
     
    Last edited: Oct 5, 2019
  13. Oct 5, 2019 #12433 of 12452
    lew

    lew Well-Known Member

    4,204
    73
    Mar 12, 2002
    My auto transfers run via windows task scheduler stopped working.
    From the log
    ERROR: getConnection error for: http://192.168.1.19:80/download/Blue+Bloods.TiVo?Container=/NowPlaying&id=110560&Format=video/x-tivo-mpeg-ts
    2019_10_05_17:11:11 ERlROR: Download failed to file: C:\Users\siwel\kmttgwork\Blue Bloods - s10e02 - Naughty or Nice (Oct_04_2019, WCBSDT).TiVo

    looks
    like I'm getting the same error message when I download using kmttg GUI. I think the problem started after I upgraded to n
    Edited to add There is an issue with my MAK key. I'll have to waste hours with tivo support
     
    Last edited: Oct 6, 2019
  14. Oct 7, 2019 #12434 of 12452
    minimeh

    minimeh Vanity Phrase Here

    323
    70
    Jun 20, 2011
    San Francisco
    @moyekj and @davidblackledge :

    The problem lies in the v2.4n refactored Remote class and its inherited class TiVoRPC. Remote.Auth_web() is called before tivoName has been correctly set. This leads to an inability to search for the intended tivo name within the results returned from tivo mindserver. Then when the failure to locate the intended tivo data is reported, a null exception is thrown, which is mistakenly assumed to be an authentication error.

    I moved the private String tivoName from Remote to TiVoRPC as protected; modified the constructor of TiVoRPC to take String tivoName and set its tivoName member; removed post super-constructor initialization of tivoName. I ran kmttg through its paces and everything seems to work fine.

    Here is the patch file of the changes:
    Code:
    Index: Remote.java
    ===================================================================
    --- Remote.java    (revision 4371)
    +++ Remote.java    (working copy)
    @@ -50,16 +50,14 @@
     
     public class Remote extends TiVoRPC {
        public final Boolean success;
    -   private final String tivoName;
        private final boolean away;
       
        /** perform a socket setup and auth. all public constructors call this. */
        private Remote(String tivoName, boolean away, String IP, String mak, String programDir, int port, String cdata) {
    -      super(IP, mak, programDir, port, cdata,
    +      super(tivoName, IP, mak, programDir, port, cdata,
                 // oldSchema, debug
                 (config.rpcOld == 1), com.tivo.kmttg.util.debug.enabled);
           // super calls RemoteInit which in turn calls Auth which is overridden in this class to also call Auth_web() or bodyId_get()
    -      this.tivoName = tivoName;
           this.away = away;
         
           // record the init result in the expected public field
    Index: TiVoRPC.java
    ===================================================================
    --- TiVoRPC.java    (revision 4371)
    +++ TiVoRPC.java    (working copy)
    @@ -50,6 +50,7 @@
       
        private Boolean success = true;
       
    +   protected final String tivoName;
        protected String IP = null;
        protected int port = DEFAULT_PORT;
       
    @@ -79,7 +80,7 @@
        }
       
        public TiVoRPC(String IP, String mak, String programDir) {
    -      this(IP, mak, programDir, -1, null, false, false);
    +      this(null, IP, mak, programDir, -1, null, false, false);
        }
       
        /**
    @@ -92,7 +93,8 @@
         * @param oldSchema true if old Schema should be used (automatically gets set to true if new schema fails on first try)
         * @param debug true if debugging should be performed.
         */
    -   public TiVoRPC(String IP, String mak, String programDir, int port, String cdata, boolean oldSchema, boolean debug) {
    +   public TiVoRPC(String tivoName, String IP, String mak, String programDir, int port, String cdata, boolean oldSchema, boolean debug) {
    +      this.tivoName = tivoName;
           this.cdata = cdata;
           this.programDir = programDir;
           this.rpcOld = oldSchema;
    
     
  15. Oct 7, 2019 #12435 of 12452
    moyekj

    moyekj Well-Known Member

    11,883
    651
    Jan 23, 2006
    Mission...
    @davidblackledge I think you may have made some changes related to that recently? (I haven't touched that code in a long time). So if you could take a look at the provided patch to see if it works? BTW, I never got your Remote--Remote--Search... to work on any of my TiVos either, don't know if it works for anyone else that has tried it?
     
    kpeters59 likes this.
  16. Oct 7, 2019 #12436 of 12452
    davidblackledge

    davidblackledge Registered l√úser

    551
    35
    Sep 9, 2008
    NM
    Ah, good catch... I tried to make sure I maintained all the interactions (including some that I don't think are even used anymore), but didn't realize I missed that dependency.

    I'm looking at it and I'd like to fix a couple more things related to that code at the same time (for consistency), but your basic change is part of it, minimeh, thanks!

    Will check in the change probably tomorrow.
     
  17. Oct 9, 2019 #12437 of 12452
    True Colors

    True Colors Member

    485
    1
    Oct 18, 2006
    Mission: Impossible - 1960's TV show

    Could someone please help me.

    Several years ago, I had recorded a bunch of episodes of the old Mission: Impossible tv show and I offloaded them onto my computer.

    I am now wanting to transfer these episodes back onto my Tivo. I want them to all be grouped together into a single folder.

    SH002928 = old series ID from several years ago
    SH00002928 = new series ID from MetaGenerator 3


    I have recently transferred episodes onto my Tivo Roamio using both series ID numbers. I used pyTivo(the original style pyTivo, not the new one).

    I am guessing that the series ID number might actually be something different? I have looked around to find a current series ID number, but have not been able to locate anything. This show is available on Amazon Prime video. I do have that service enabled on my Tivo. However, when I search for that show on kmttg with streaming results included in the search, it does not find Mission: Impossible tv show.

    Ideas?

    Thanks!

    TC
     
  18. Oct 9, 2019 #12438 of 12452
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,586
    673
    Apr 6, 2000
    SF Bay Area
    You should be searching from either computer/phone and save them in your watchlist. You can also search from the Amazon prime or even Netflix has it.
     
  19. Oct 10, 2019 #12439 of 12452
    reneg

    reneg Well-Known Member

    1,050
    178
    Jun 19, 2002
    With MetaGenerator, I came up with SH0000413987 for Mission: Impossible. I found it also with kmttg 2.4n search++ with title keyword (not title) "impossible" & genre set to series.
     
  20. Oct 15, 2019 #12440 of 12452
    elmeng

    elmeng Member

    42
    0
    Mar 7, 2009
    Getting the following with macOS 10.15 and comskip

    >> DOWNLOADING/DECRYPTING TO /Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg ...
    tivolibre DirectShow compatilibity mode = false
    /Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg: size=3637.33 MB elapsed=0:06:07 (83.14 Mbps)
    ---DONE--- job=tdownload_decrypt output=/Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg
    (Renamed /Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg.qsfix to /Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg)

    >> Running comskip on /Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg ...

    Failed to start command: /Applications/kmttg_v2/comskip/comskip --ini /Applications/kmttg_v2/comskip/comskip.ini "/Applications/kmttg_v2/Working/Reliable Sources - 10-13-2019 (10_13_2019)Living Room.mpg"
    Cannot run program "/Applications/kmttg_v2/comskip/comskip": error=86, Bad CPU type in executable
    Removing job: {source=https://192.168.1.8:443/TiVoVideoDetails?id=137936 tivoName=Living Room type=comskip_review status=queued familyId=2.17}

    Was working find til I upgraded to Catalina

    Will there be a fix
    Leslie
     

Share This Page