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

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

  1. Feb 10, 2020 #12561 of 12618
    mattack

    mattack Well-Known Member

    24,730
    550
    Apr 9, 2001
    sunnyvale
    Then can you give me a *command* to do it with a random filename?
     
  2. Feb 25, 2020 #12562 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    Hello all,

    Well, I am new here and to TiVo - just purchased a used Roamio Pro and 2 minis. Got everything transferred over to my account and it is working great, though I am not to fond of the interface, coming from over a decade of using Windows Media Center. Along with the equipment, the person gave me a program which was supposed to make my job of moving shows from the Pro to my laptop easy - TiVo Desktop Plus (with Upgrade Key), but after numerous installs and deletes, I could never get it to show any of the shows on the Pro, complaining about 'network connection was aborted by the local system' (but it did see my Pro based on the room name).

    Upon researching it, some believe it had to do with TiVo letting certificates expire so I started to look for other programs that would allow me to copy the TiVo programs to my laptop to watch with either WMC or VLC (I like the speed-up feature). I tried pyTivo and got it to work (and like the interface) but found it only downloaded shows in .tivo format - I would then need another program to convert it to .mpg. My ultimate goal is to automate this process so that at 3AM, every day, new shows would be downloaded from the Pro and onto my media server in the correct format to watch on any of the 5 PCs or 3 laptops I have. Having to use 2 programs was not desirable.

    Then I heard about kmttg and have been playing with it but I am really stumped on how to use it, thus this post. From what I read it will do what I need (auto transfer from TiVo and encode to .mpg format) but I am having a lot a trouble understanding the interface and automation aspect of using it.

    Is there a 'hand book for dummy' post on how to use it? I have stumbled around and have successfully created a couple of .mpg files on my test computer after downloading kmttg.v2.4o and installing/starting the service, but to be honest I just guessed at a lot of stuff and besides the .mpg file (ff_mobile_720p) that I created for one show, it also started to make a .Tivo file and a .mp4 file, the latter being very slow and unable to cancel using the CANCEL button. It also showed tons of programs that I never saw on the MY SHOWS screen of my PRO (so I just deleted them in kmttg).

    I have lots a questions and if this is the correct forum I will start asking, but if there is a post with exactly what to do, I can read and won't bother yous with dumb newbie questions.

    Thanks for any assistance!

    Frank in Michigan
     
  3. Feb 25, 2020 #12563 of 12618
    mattack

    mattack Well-Known Member

    24,730
    550
    Apr 9, 2001
    sunnyvale
    I may answer part of the other stuff later, but to let you know about the speed up feature -- you can do that directly on your Tivo.. That's partially why I transfer FAR fewer shows than I used to..

    Hit play-then-select on the Tivo remote and you'll go into QuickMode. That's *only* 30% faster by default. But you have a Tivo that has a hidden feature that someone (I presume a tivo employee) leaked in the last year or so.

    If you hit SELECT PLAY SELECT 7 NUMBER SELECT then the "NUMBER" you hit will be that percentage (instead of 30%).. e.g.
    select play select 7 9 select will make quick play 90% faster. Some shows I do watch 90% faster (like documentaries.. and I have been watching american idol sections that are NOT the actual singing at 90% faster.. so I get through an episode in about an hour).

    It says something like "quick play 190%" if you successfully did the code. (but it will not show you if you do the SAME percentage as it was already set to).
     
  4. Feb 25, 2020 #12564 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    Neat! Thanks for the tip.

    As for transfers, we do a lot of travel and want to watch shows while away from home (and in many cases, an internet connection). Putting them on the laptop or tablet is great for late night viewing in the tent :)
     
  5. Feb 25, 2020 #12565 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    Well, I just tried to do the speed 'change' but I cannot seem to make it work. Is it maybe only for older firmware versions? Or maybe I am doing it wrong.
    I start a show and if I press PLAY then SELECT, it toggles between on and off.

    Do I do the SELECT PLAY SELECT 7 2 SELECT when it is ALREADY in Quickmode?
     
  6. Feb 25, 2020 #12566 of 12618
    mlippert

    mlippert Active Member

    289
    58
    Apr 2, 2010
    Massachusetts
    @FrankinMichigan Maybe more later, but kmttg is awesome and will do what you want.
    To start a couple of things.
    The video files downloaded from a TiVo are always .tivo files. Those are just encrypted versions of either a .mpg (aka program stream aka ps) or a .ts (aka transport stream) media file. The video stream in an .mpg is always encoded with MPEG-2. The video stream in a .ts can be either MPEG-2 or H.264.
    Your TV stations video is sent to you from your cable company using one of those 2 encodings and which is sent for which stations varies by cable company (and location).
    If the TV stations videos are H.264 then you CAN NOT download them as a program stream, you must download them as a transport stream. If they are MPEG-2 then you can download them as either a program stream or a transport stream.

    2 terms to keep in mind transcode and transmux. The 1st re-encodes a media (video/audio) stream into some other format, the 2nd just copies the streams into a different container format. Re-encoding is a much more intensive process.

    If you want a container with an H.264 stream (say a .ts file) to be in a .mpg container you will have to transcode the H.264 to MPEG-2. If you want it in an .mp4 (which supports H.264 video streams) then you will only have to transmux the original.

    You do not need to re-encode the downloaded videos unless you want to for size or playability on some device, you only need to decrypt them.

    There are pros and cons to whether to choose PS or TS downloads (which I'm not getting into right now, I'm sure someone else will chime in).

    Since you have Windows (assuming since you mentioned WMC), I'd highly recommend looking at VideoReDo for doing at a minimum, the decrypting and QS Fixing. You will need to install part of that TiVo Desktop to enable VideoReDo to do the decrypting (there are instructions somewhere).

    I would get things working manually first and then look at setting up the auto functionality (I don't use that so someone else will have to help you there).

    I tend to download program stream for those channels I know are program stream. So I check metadata, QS Fix and decrypt select shows I want to download and click Start Jobs. I also have kmttg configured to use VideoReDo (but there are other programs it can use as well).

    I have also set my File name to be
    Code:
    [mainTitle] ["- s" season]["e" episode " - "][episodeTitle " "]["(" movieYear ") "]([month]_[mday]_[year], [channel])
    which works well for me for movies and shows when I copy them to my plex folder structure.
     
    kpeters59 likes this.
  7. Feb 25, 2020 #12567 of 12618
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,245
    825
    Apr 6, 2000
    SF Bay Area
    This does not have anything to do with KMTTG, so please ignore.
     
  8. Feb 25, 2020 #12568 of 12618
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,245
    825
    Apr 6, 2000
    SF Bay Area
    What is happening here is, It would download the show and it would be in .Tivo file. The reason the .mp4 is so slow is because it is compressing and converting show. This does not mean it is downloading any other formats of the shows, only the .Tivo files. There are other things in the JOBS window, such as Metadata, decrypt, encode, etc. and that is what is creating all those files.
     
  9. Feb 25, 2020 #12569 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    Thanks for the reply. I guess I am still confused over the difference between PS and TS. For over a decade, WMC recorded whatever I said to record, and I could just take that file and play it on my laptop's version of WMC (with the exception of programs from BBC). There was no difference and VLC played them too. Does the TiVo 'recording process' somehow change this?

    Recoding is a positive from a size/transfer standpoint to me, thus the reason in my playing around I found and changed the encoding profile to ff_mobile_720p on the 'main' screen. I also selected decrypt, Ad Cut and encode. TS, WS fix and captions are not selected. I think this is how I got the files with .ts suffixes. If this works / are the proper selections, and I get a file I can play as mentioned above, that would be great. But as I type this, I picked two shows with those settings and am seeing a bunch of files being created so I think I don't have it setup correctly...

    You mentioned using VideoReDo and also TiVo Desktop - my goal is to not use/buy any other programs.

    I did just find the Wiki for kmttg. VERY detailed. Looks like a couple of days worth of reading though, but will do that just to fully understand kmttg, but I greatly appreciate the help you have provided and what others might provide to get me up and running quickly. Another trip is 2 weeks away and need stuff to watch!

    Thank you.
     
  10. Feb 25, 2020 #12570 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    I understand that but appreciated the 'tip' as I didn't know it existed. HOWEVER, in my searching of Wiki I did find that under the REMOTE tab there is the SPS backdoor to change the speed as well as use a virtual remote. I set it up (for the Pro, not the Mini) and got it to work. But the SPS backdoor to change the speed does not seen to do anything... :-( Too bad as I would like to change the speed to just 10% faster, and I cannot seem to change it via the physical remote as he indicated...

    Thank you.
     
    kpeters59 likes this.
  11. Feb 25, 2020 #12571 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    So, if all I really want kmttg to do is download the show into a .ts file, I should only check Encode? I don't care if the ads are not removed - I can FF through them. For right now, all I want to do is get a WMC/VLC playable file...

    Thanks.
     
  12. Feb 25, 2020 #12572 of 12618
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,245
    825
    Apr 6, 2000
    SF Bay Area
    VideoReDo is a video editing software and is worth the price, especially for removing commercials.

    Just selecting Ad Cut does not remove ads (commercials) from the videos. It needs AdDetect, but its not 100%, sudden breaks into commercials will not get detected and marked for removal, in fact, what can happen is it can remove parts of the show and not ads. It would be better to verify the proposed cuts beforehand. The way ads are detected is that there should be a 2 seconds of blank screens between. Less than that, and it may not get marked.
     
    mlippert likes this.
  13. Feb 25, 2020 #12573 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    OK. As mentioned previously, I don't care to remove them - can (30 second) FF past them in WMC or swipe right in VLC. So all I need is encode then if I understand the program. Am going to try that next...

    Thanks!
     
  14. Feb 25, 2020 #12574 of 12618
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,245
    825
    Apr 6, 2000
    SF Bay Area
    No, TS and PS transfers/downloads are basically the same, just the method used is different.
    Both PS and TS would produce the .Tivo file. After they are decrypted, the PS transferred file will be a .MPG file.... the TS would produce a .TS file.
    The main reason to use TS is for shows that were from compressed channels that are h.264 and recorded as MPEG4.
     
    mlippert likes this.
  15. Feb 25, 2020 #12575 of 12618
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,245
    825
    Apr 6, 2000
    SF Bay Area
    Encoding will result in .MP4 files.
     
    FrankinMichigan likes this.
  16. Feb 25, 2020 #12576 of 12618
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,044
    5,116
    Apr 17, 2000
    Nevada
    There is nothing on the market that can automatically detect commercials 100% on US based TV recordings. I've seen shows that cut to black, for several seconds, in the middle of the show causing a commercial break detection that cuts part of the show and shows that use a cross fade directly from the show into the commercial making it look like it's all one scene. You should always verify the cuts before outputting, regardless of which software you used to do the detection.
     
    SamuriHL and mlippert like this.
  17. Feb 25, 2020 #12577 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    How do I tell if a show is PS or TS in kmttg? And if it is TS, do I uncheck encode before starting the job?

    Sorry - just not up on video formats/file types/ codexes, etc. Just old and dumb...

    Thanks
     
  18. Feb 25, 2020 #12578 of 12618
    moyekj

    moyekj Well-Known Member

    11,918
    664
    Jan 23, 2006
    Mission...
    You don't need "encode" step at all for what you are looking to do. Simply enable "decrypt" step and leave the "encode" step unchecked. The "decrypt" is what decrypts .TiVo file to generate unencrypted .ts or .mpg that you can play on your computer.
     
    mlippert and kpeters59 like this.
  19. Feb 25, 2020 #12579 of 12618
    FrankinMichigan

    FrankinMichigan New Member

    25
    2
    Feb 5, 2020
    Ahhh. Great!

    Thanks.
     
    mlippert likes this.
  20. Feb 25, 2020 #12580 of 12618
    mlippert

    mlippert Active Member

    289
    58
    Apr 2, 2010
    Massachusetts
    @FrankinMichigan I can't really speak to WMC, I've never seen or used it so I have no idea how it works/worked.

    Reading the wiki is a good idea.

    As to not using/buying other programs, some things work together, although you don't have to buy VideoReDo, I've just found it to be worth it as some of the other options run into problems more often than it does.

    As to using other programs, well you really don't have much of a choice if you're using kmttg, it uses several other programs to accomplish various tasks like decrypting, ad detection and cutting, re-encoding. If what you meant was that you didn't want to have to manually use multiple programs, that is what kmttg does for you.

    TiVo Desktop which it sounded like you have, installs a filter on Windows that can decrypt TiVo files. Because it is from TiVo it is sort of the gold standard for decrypting although there are other programs that kmttg can use which have reverse engineered the encryption.
    1. If you check metadata kmttg will write a *.txt file w/ a lot of information about the show in a format that pytivo can use when uploading back to the tivo. I like having this information file stored with my downloads, but if you don't care, don't check metadata.
    2. Every job assumes you want to download the show so what kmttg does is downloads an encrypted video fiile (either PS or TS) from your Tivo. That is the *.tivo file you get.
    3. If you check decrypt it will use some program to process that encrypted .tivo file into either a .ts or .mpg file
    4. If you check QS Fix I believe it will use some program to process the .ts or .mpg file fixing timing errors (my limited understanding of what QS Fix does). I don't see this because w/ VideoReDo it combines the decrypt and qs fix steps.
    5. If you check Ad Detect it will use some program to try to determine where ads start and stop in the last file (qs fixed file if that was checked) (BEWARE this is rough and may end up cutting out vast swaths of the show and/or leaving some ads in.)
    6. If you check Ad Cut kmttg will invoke some video editing program to cut out the sections previous identified as ads into yet another file (I think with a _cut suffix on the name)
    7. If you check captions kmttg will invoke another program to extract the closed captions into a subtitle file (usually *.srt)
    8. If you pick encode, kmttg will invoke another program to reencode the video in the method you've selected.
    The configuration settings have several options to remove prior files once they've been used to create the next stage. This can reduce the number of extra files you're seeing.
     

Share This Page