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 25, 2021 #12941 of 12951
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    12,907
    1,210
    Apr 6, 2000
    SF Bay Area

    Advertisements

    In windows 10, I had to put in "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe" -jar kmttg.jar
     
  2. Apr 26, 2021 #12942 of 12951
    lhvetinari

    lhvetinari Ambassador to the City of Chicago TCF Club

    582
    177
    Jun 24, 2019
    Chicago
    Bad CPU Type is an architecture error - when you launch an Intel executable from the GUI, Mac OS automatically triggers Rosetta2 to handle translation. This does not happen on the command line - so you are trying to natively run an x64 app which doesn't work. You can try to run it with "arch -x86_64 [command]". And if you haven't already installed Rosetta2, run softwareupdate --install-rosetta to get it going.
     
  3. Apr 26, 2021 #12943 of 12951
    kpeters59

    kpeters59 Well-Known Member

    3,221
    671
    Jun 19, 2007
    Houston, Texas
    Did you fully extract the .zip file?

    You'll get errors if you try to run the .jar file from inside the .zip file.

    -KP
     
  4. Apr 26, 2021 #12944 of 12951
    morac

    morac Cat God TCF Club

    15,105
    2,588
    Mar 14, 2003
    NJ
    I've already have Rosetta2 installed as I can run Intel apps. The "arch -x86_64" trick isn't working, so I'm guessing the unix executables in questions are 32 bit applications which will never work as they aren't supported at all, even through Rosetta2.

    ffmpeg worked, so I guess that was a 64 bit executable. comskip and tivodecode did not.

    I don't know what version of tivodecode was included with the tools, but I compiled the 0.2pre4 source code I found and built a native M1 version which runs.
     
  5. Apr 26, 2021 #12945 of 12951
    morac

    morac Cat God TCF Club

    15,105
    2,588
    Mar 14, 2003
    NJ

    Advertisements

    Yep, the zip was extracted, it just didn't work. Like I mentioned I compiled Kmttg from the source and it runs fine now, though I did have to comment out two Oracle specific JavaFx class references since I wasn't compiling with Oracle Java, I was using Azul Java since they have a M1 native Java JDK. That didn't appear to have any noticeable impact.
     
  6. Apr 26, 2021 #12946 of 12951
    mattack

    mattack Well-Known Member

    25,690
    677
    Apr 9, 2001
    sunnyvale
    I haven't actually used an M1 machine yet.. But just wondering..
    If you try to open it AGAIN, do you get an "open anyway" button?

    After the first attempt to open it, if you go into the Security & Privacy pref pane (in System Preferences), is there an "Open Anyway" or similar button there (where it would normally have the "Allow apps downloaded from:" section)?

    IIRC, the UI is there to allow unsigned code, it's just more hidden than it used to be (the Security pane used to have an 'anywhere' item in a previous OS.. obviously not relevant to M1).
     
  7. Apr 26, 2021 #12947 of 12951
    morac

    morac Cat God TCF Club

    15,105
    2,588
    Mar 14, 2003
    NJ
    There wasn't an open anyway option. There was something that blocked it from executing by double-clicking the jar file. That can be removed by using the xattr command to clear the protection bit, but since a jar file can also be run using the "java -jar ..." command, there's not really a need to do that.

    The part that was failing was Java wasn't recognizing that there was any executable code in the jar file. I'm not sure what the issue was exactly since I didn't try and extract the jar file. I simply rebuilt it using the ant build script.

    A Java program isn't Intel or M1 (assuming no external libraries) so there's no reason it shouldn't have worked. It's possible it didn't run because it requires Oracle Java and I wasn't using Oracle Java.
     
  8. toddk63

    toddk63 New Member

    28
    2
    Jul 29, 2014
    Any idea whats happening? It's the only recording that is doing this.

    2021_05_03_10:29:38 TOTAL auto matches for 'TiVo Bolt 1' = 1857/1857
    2021_05_03_10:29:38 NOTE: REMOTE job completed: 0:00:49
    2021_05_03_10:29:38 ---DONE--- job='REMOTE NP List' TiVo=TiVo Bolt 1
    2021_05_03_10:29:38 >> CREATING /mnt/Tivo-2TB//The Daytripper/Season 12/The Daytripper - s12e03 - Graham.mkv.txt ...
    2021_05_03_10:29:38 https://192.168.0.7:443/TiVoVideoDetails?id=26594
    2021_05_03_10:29:39 NOTE: metadata job completed: 0:00:00
    2021_05_03_10:29:39 ---DONE--- job=javametadata output=/mnt/Tivo-2TB//The Daytripper/Season 12/The Daytripper - s12e03 - Graham.mkv.txt
    2021_05_03_10:29:39 ERROR: java.io.FileNotFoundException: /mnt/Tivo-2TB/The Daytripper/Season 12/The Daytripper - s12e03 - Graham.mkv.txt (Permission denied)
    2021_05_03_10:29:51 >> DOWNLOADING/DECRYPTING TO /mnt/Tivo-2TB//The Daytripper/Season 12/The Daytripper - s12e03 - Graham.mpg ...
    2021_05_03_10:29:53 ERROR: tdownload_decrypt
    2021_05_03_10:29:53 ERROR: [java.io.FileOutputStream.open0(Native Method), java.io.FileOutputStream.open(FileOutputStream.java:270), java.io.FileOutputStream.<init>(FileOutputStream.java:213), java.io.FileOutputStream.<init>(FileOutputStream.java:101), com.tivo.kmttg.main.http.downloadPipedStream(http.java:314), com.tivo.kmttg.task.tdownload_decrypt$1Thread1.run(tdownload_decrypt.java:168), java.lang.Thread.run(Thread.java:748)]
    2021_05_03_10:29:53 ERROR: Download failed to file: /mnt/Tivo-2TB//The Daytripper/Season 12/The Daytripper - s12e03 - Graham.mpg
    2021_05_03_10:29:53 NOTE: The Daytripper - s12e03 - Graham.mpg: Download attempt # 2 scheduled in 10 seconds.
     
  9. lhvetinari

    lhvetinari Ambassador to the City of Chicago TCF Club

    582
    177
    Jun 24, 2019
    Chicago
    Can you transfer other shows to that folder? Sounds like KMTTG doesn't have the correct permissions to create files in that directory.
     
    toddk63 likes this.
  10. toddk63

    toddk63 New Member

    28
    2
    Jul 29, 2014
    Yup, that was it. Somehow permissions were not set correctly. Thanks.
     
  11. worachj

    worachj Well-Known Member

    1,493
    123
    Oct 13, 2006
    Eagan, MN
    Anyone else having problems getting SkipMode cut points for programs today? All three of my TiVo's are failing this morning. (TiVo Server problems)

    Code:
    Young Sheldon - A Black Hole
    Recorded Thu 05/06/2021 07:00 PM on 4-1=WCCODT, Duration=32 mins, EpisodeNumber=417, originalAirDate=2021-05-06
    The Coopers discuss the possibilities of black holes and alternate universes when Dr. Sturgis comes over for dinner.
    Bed Room: Scanning SkipMode cut points for 'Young Sheldon - A Black Hole'
    RPC error response:
    {
       "code": "middlemindError",
       "cause": {
          "code": "requestTimeout",
          "text": "Request timed out",
          "type": "middlemindErrorCause"
       },
       "text": "middlemindError",
       "type": "error"
    }
    Failed to retrieve SkipMode data for contentId: tivo:ct.440505177
    EDIT: Started working again when I reran it at 8:55 AM.
     
    Last edited: May 7, 2021 at 9:57 AM

Share This Page

spam firewall

Advertisements