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 23, 2019 #12341 of 12561
    moyekj

    moyekj Well-Known Member

    11,909
    661
    Jan 23, 2006
    Mission...
    If you are following the long thread on this topic so far Tivo_Ted confirmed TE3 won't get pre-roll ads, so that even further solidifies for me never updating to TE4 unless forced to do so, and only if forced to, then dispensing with TiVo for good. So hopefully it means a few more years of use before moving on. Although I do get a little angry every time I have to pay my outrageous Cox bill (> $200/month for internet, cable TV with no premiums, phone) so a viable replacement may still be in the cards before TE3 may go away.
     
  2. Sep 23, 2019 #12342 of 12561
    mattack

    mattack Well-Known Member

    24,663
    542
    Apr 9, 2001
    sunnyvale
    Maybe I have mentioned this before.. I know it's a minor minor minor minor issue, but it still bugs me..

    I by default download in MPG format (not transport stream). I only download in TS if I have to (e.g. any non-broadcast, non-HD channel, for me, AFAIK)..

    If I download just the metadata (which I do nowadays esp for things like documentaries and other shows to keep track of which episodes I've seen.. but I don't want to record just new only), I get a MYTITLEFORMAT.TiVo.txt file. If I actually download a show, that file will be renamed to MYTITLEFORMAT.mpg.txt afterwards.

    Basically, it's not doing the renaming if it hasn't actually downloaded a file. I really wish the file would be named consistently regardless.

    I think you could actually simplify the code regardless.. Just essentially be
    download_metadata_file(show, TRANSPORT? USERNAME.TiVo.txt : USERNAME.mpg.txt)

    without the rename at all, and it would be regardless of whether you actually download a show or not.
     
  3. Sep 23, 2019 #12343 of 12561
    kpeters59

    kpeters59 Well-Known Member

    2,557
    517
    Jun 19, 2007
    Houston, Texas
    Well, if we're requesting 'features', maybe this would be kind of simple?

    On my wide-screen monitor, the Remote>Remote page has a lot of unused screen space.


    KMTTG_RemotePAge1.png
    And, I would like to have a few more Skip Minutes Ahead/Back options. Kind of like this:

    KMTTG_RemotePAge2.png
    Perhaps there could even be a toggle for .decimal time or seconds, too?

    Maybe they could even be persistent between restarts?

    I really like KMTTG and very much appreciate what you've created!

    Thanks,

    -Kyle
     
  4. Sep 24, 2019 #12344 of 12561
    moyekj

    moyekj Well-Known Member

    11,909
    661
    Jan 23, 2006
    Mission...
    To get .mpg.txt under Configure--Program Options make sure "metadata files" is set to either "last" or "mpegFile" and then make sure both "metadata" and "decrypt" tasks are enabled. i.e. You are getting .Tivo.txt probably because you don't have "decrypt" task enabled.
    (Once the metadata file downloads and you cancel download before it starts it will automatically cancel all subsequent tasks as well)
     
    mattack likes this.
  5. Sep 24, 2019 #12345 of 12561
    mattack

    mattack Well-Known Member

    24,663
    542
    Apr 9, 2001
    sunnyvale
    Does 'last' mean it will do .TiVo.txt when in TS mode, and .mpg.txt in mpeg (whatever the proper term is) mode?

    thanks.

    Wait, I am decrypting, since I end up with a raw mpeg file?

    I'll check at home.
     
  6. Sep 24, 2019 #12346 of 12561
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,046
    776
    Apr 6, 2000
    SF Bay Area
    Its more of the last filename when processes are done to it. A PS download would yield .mpg.txt and TS download yields .ts.txt on the metadata. These are not renamed files, its the same metadata file 'downloaded' and saved to the final names. If you have it set to (think all, or everything) you get all of them, from .Tivo.txt to mpg.txt or .ts.txt.
     
    mattack likes this.
  7. Sep 26, 2019 #12347 of 12561
    dlfl

    dlfl Cranky old novice

    8,771
    645
    Jul 6, 2006
    Dayton OH
    I am creating a VRD6-compatible version of VAP (link in signature), which also uses VBScripts to run VideoReDo COM functions. I don't use KMTTG so please pardon me if I'm raising a non-issue here.

    I'm assuming one function of KMTTG is re-encoding from downloaded videos using the mpeg2 codec to output videos encoded with H.264, correct? (If that isn't correct, then let me know and ignore the rest of this post.)

    What I've learned is that TVS6 as installed has no built-in profile that does that forced recode -- you have to create one by modifying a built-in profile, (e.g., MP4) to force the output codec to H.264. When using FileSaveAs (output_file, profile_name) for encoding, as the new KMTTG encode.vbs does, the profile_name argument must be one of the following:
    1. Name of a profile defined in the TVS6 program
    2. A string containing the XML that defines the desired profile.
    3. A path to an XML file defining the desired profile.
    Does the new KMTTG code account for this? I'm planning to provide xml files and code to support method #2 in my new VAP6 program, so the user will have pre-defined suitable profiles for mpeg2-to-H.264 re-coding.
     
  8. Sep 27, 2019 #12348 of 12561
    davidblackledge

    davidblackledge Registered lÜser

    557
    35
    Sep 9, 2008
    NM
    Obviously that picture is not what you actually want, I'm not certain what you exactly want, but I also suspect there is not a large number of people that would want the space used that way... assuming they even have space to spare on their display.

    Rule of thumb for any application's feature requests: Instead of trying to describe your own solution and expect it to be changed that way, it's always better to describe the problem to a programmer or user interface designer and let us figure out a way to solve it given our knowledge of the software's abilities. While describing your own solution is a pretty good way to express what might work for you, it's rarely going to be the optimal solution to the problem because you couldn't know the abilities and limitations of the tool or what other people's related problems might exist.​

    Describe your "pain." I'm guessing it might be: "sometimes I want to skip ahead 2 minutes, other times I want to skip ahead 30 seconds, and sometimes I need to skip back 5 minutes. I don't want to enter those different numbers every time since by then I've lost the time I was gaining by using the feature, and it doesn't support fractional minutes at all right now. I usually want to skip by X minutes but every time I launch KMTTG it doesn't default to that number even though I used that last."
    Is that close? Or is the pain actually "I hate seeing all this wasted space...here's the first thing I could think of that might be useful to use up the space."

    While we're on the subject of new features... let me know if the new "Search..." feature (on the Remote/Remote tab) that got slipped into the new release is useful to anybody... I suspect there are some difficult timing issues with it so it may not work well enough to be useful. I might instead break it into two buttons... a "Search" shortcut button and a "type text" prompt you can use at any time." Also I want to make sure it doesn't crash for anybody since the prompt is dependent on a Java feature KMTTG hasn't used before.
     
  9. Sep 27, 2019 #12349 of 12561
    kpeters59

    kpeters59 Well-Known Member

    2,557
    517
    Jun 19, 2007
    Houston, Texas
    Yeah, ok...that's pretty much what I meant, but I do envision it looking a bit like that.

    I could almost see a +button to keep adding another one.

    Mostly Tom Brady and Deshaun Watson have some very short huddles. Others, not so much... The NFL half-time is (apparently) 14 minutes, but College Football (finally) settled on 20 minutes. NFL commercials breaks are 2 minutes, but College is 3. So, a single set doesn't cover it, but the feature is VERY useful.

    Thanks for considering it!

    -Kyle
     
  10. Sep 27, 2019 #12350 of 12561
    davidblackledge

    davidblackledge Registered lÜser

    557
    35
    Sep 9, 2008
    NM
    Great examples, thanks!
    Not sure when I'll next have some time to work on KMTTG, but when I do I'll definitely look at what could be done around this idea.
     
    kpeters59 likes this.
  11. Sep 29, 2019 #12351 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    I'm a believer if it's no broke don't fix it.
    I'm currently using VRD TV Suite v5. Is there any issue if I upgrade to v6?
    What version of java should I be running. I turned off auto updates, I'm concerned some upgraded versions may not be compatible.

    Thanks.
     
  12. Sep 29, 2019 #12352 of 12561
    SamuriHL

    SamuriHL Member

    40
    10
    Jan 23, 2012
    I believe it's a very worthwhile upgrade. A lot of things have changed including h265 support. Same resolution, much smaller space. Lots of great changes under the hood in how files are created, as well. I'm a fan of VRD 6.
     
  13. Sep 29, 2019 #12353 of 12561
    davidblackledge

    davidblackledge Registered lÜser

    557
    35
    Sep 9, 2008
    NM
    For KMTTG I would not suggest upgrading past Java 8.
    Java's licensing changed for Java 9 and above. They also made a currently-incompatible-with-KMTTG change in Java 11 and above.
     
  14. Sep 29, 2019 #12354 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    Is VRD 6 fully compatible with KMTTG? Do I need to tweak any settings or scripts?
     
  15. Sep 29, 2019 #12355 of 12561
    SamuriHL

    SamuriHL Member

    40
    10
    Jan 23, 2012
    Yes, get the latest version. The scripts were already upgraded and work great. No need to do anything but upgrade KMTTG.
     
  16. Sep 29, 2019 #12356 of 12561
    lew

    lew Well-Known Member

    4,225
    74
    Mar 12, 2002
    I'm at v 8 update 211

    I remember reading something which suggested not updating. I wasn't sure if that advise is still applicable. Glad I posted before updating.
    Thanks.
     
  17. Sep 29, 2019 #12357 of 12561
    lhvetinari

    lhvetinari Si non confectus, non reficiat TCF Club

    155
    49
    Jun 24, 2019
    Chicago
    Hi,

    A small question: I know you can copy/export My Channels lists with KMTTG, but can you copy/export Favorite Channels lists? I can't seem to find it, but then again I might just not see it.

    Take care,
    Al.
     
  18. Sep 29, 2019 #12358 of 12561
    rocket999

    rocket999 New Member

    3
    4
    Sep 29, 2019
    You can hack the remote.html and remote.js files to add more skip aheads. Then you enable the kmttg web server (see web tab in configure), use a browser to connect to localhost:8181 (assuming 8181 is the web port you are using) then click on the option for the remote, you will get a web page with a remote and some buttons.

    In file Remote.js you make a copy of the function skipf and call it say, skipf2 plus the next line below it, e.g.


    function skipf2
    var offset = SKIPF2.value*1000*60.0;


    Then in remote dot html you make a copy of the line with button for skipf calling it skipf2 and change the id and class to SKIPF2 and put in a different value.

    I tried to post the actual code but keep getting blocked from posting, so you'll have to figure it out yourself. In the above function code, there's also some parens I left out so I could post.

    Also, you mentioned wanting fractional values, you could probably change the 1000*60.0 somewhat for that.

    I'm afraid I messed this post up when I tried to edit it. Keep getting a message saying I'm posting spam.
     
    Last edited: Sep 29, 2019
    mlippert, kpeters59 and ClearToLand like this.
  19. Sep 29, 2019 #12359 of 12561
    ClearToLand

    ClearToLand Old !*#$% Tinkerer!

    1,064
    157
    Jul 9, 2001
    Central Jersey
    Thanks for the incentive to investigate.

    I use the kmttg webserver Remote TiVo button on my Amazon Fire 8" Tablet (from the couch in my LR) to 'wake up' my two Roamio OTAs on TE3 in the BR from standby. Their temps drop to the lower 30s when in standby, compared to 40 when running, so I find standby beneficial (sorry to those that don't) since they're in standby much of the time (i.e. no cablecards). Prior to using the kmttg Remote, accessing the BR Roamios from the Devices on the LR Roamio involved:
    1. Select a TiVo
    2. Watch a BSC for ~15 seconds
    3. Play any entry (selected from an old-style SD GUI) for a few seconds
    4. Back out completely back to the LR Roamio Devices
    5. Re-select the same BR Roamio
    6. Now I get the HD GUI
    My only problem is that in portrait mode on the tablet, the display of the remote is cut off at the top of the Select Button ring. I can see half of the word 'Standby', the feet on the TiVo Button, and none of Live TV. When I rotate the display to landscape, the remote display drops down to where the top of the remote image is even with the Launch App: box.

    I've tried both Silk and Chrome browsers with the same result. I looked in Remote.css:
    Code:
    #REMOTE
    {
        position: fixed;
       top: -15%;
       left: -1%;
        background: url(/rc_images/remote_background.gif) no-repeat;
        width: 295px;
        height: 811px;
    but I get the impression that changing 'top: -15%' would only move the background down and then I'd have to also move each button.

    Is there a simple global mod I could use to move the remote display down? Why is it different in portrait vs landscape?

    Also, I use Streambaby and sometimes it gets 'hung up' and needs to be restarted. If it doesn't appear in Apps on the Roamio, I'll run the HD GUI Reset (TD TU PLAY PLAY) but sometimes it also needs to be re-launched from kmttg. This option is missing from the webserver remote. If/When I locate the proper string, can I just add it to the dropdown like @rocket999 suggests for the 'Time Jump' additions?

    Thanks! :)
     
  20. Sep 29, 2019 #12360 of 12561
    rocket999

    rocket999 New Member

    3
    4
    Sep 29, 2019
    edit: ClearToLand: By commenting out the Remote.css line in the html file, you can eliminate the picture of the remote itself. Then by commenting out most of the buttons, I was able to get just the standby button to show up. Then I could use a browser on my tablet and not have the remote on top of or in the way of the other buttons. That might help with your situation.

    I have android phones and tablets. On the pc, where I run kmttg, I then also run a web browser (e.g. in chrome connecting to kmttg at localhost:8181), leaving kmttg running behind or minimized. Then I use tightVNC on the pc as a server and on android I run "vnc viewer" or "bVNC free" from the play store.

    That lets me remote connect to the pc and move a small window (of phone or tablet) over the bigger window of the pc (1080p) so I can see just the few extra buttons for skipping I've added. bVNC free is better since it allows one to tap on the buttons, whereas vnc viewer is a move the pointer type of interface.

    I've tried to create some screenshots and attach them here, but I can only hope these are viewable.

    Oh, and you can use decimal values like 2.5 for skipping 2 1/2 minutes, which has been the typical commercial length the last couple of years, up from 2 minutes.

    Clipboard01.jpg Clipboard02.jpg Clipboard03.jpg
     
    Last edited: Sep 29, 2019
    kpeters59 likes this.

Share This Page