1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. Nov 7, 2011 #3501 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,738
    8
    Apr 6, 2000
    SF Bay Area
    .AVI is not smaller than .MPG, its slightly larger, because .AVI is a wrapper of the .MPG. If you want it smaller, then its .MP4 you want. Size can be reduced to about 1/3 of the original.
     
  2. Nov 7, 2011 #3502 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Aha!

    And did I read somewhere that actually the included ffmpeg WILL convert to AVI as well, if you set the arguments correctly, BUT as you say why do you need to?

    I see with a couple of "Covert Affairs" files I did last night, that the resultant mp4 files worked out ok (and are much smaller whether with or w/o commercials). I think I used ff_tivo_sd AND VideoRedo worked (w/o my interference). Would ff_h264_med_rate be better?

    And txporter, that's what I am trying to understand, how does jcthorne's workflow go...? Thanks for all the help.
     
  3. Nov 8, 2011 #3503 of 10413
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    My workflow may be a bit different than some others here but, here it is:

    I use kmttg to dl and decrypt the file from tivo to an mpg file.

    I use VAP/Video Redo to run quickstream fix on the file and rename it with correct series, season and episode data. File is placed on my file server.

    I then open the files with VAP on my laptop and let VAP do the adscan. VAP launches VR to allow me to edit the cuts and save. VAP then saves the cut file to an mpg.

    I use meGUI to encode the mpeg2 files to h264/ac3 in an mp4 container.

    The reason I use so many steps is that none of these utilities can do all the steps and I cannot easily edit the commercials nor encode on my file server.

    kmttg cannot properly name the files. VAP/VR cannot cut commercials without user intervention, nor can they encode properly to mp4. I refuse to purchase an upgrade to TV Suite until it can encode ac3 audio for tivo. So I use meGUI for the encodes. Not just ones from tivo, but ones I get elsewere as well.
     
  4. Nov 8, 2011 #3504 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    A couple of quick questions come to mind:

    1. What is VAP?
    2. meGUI?

    Are these tools I don't know about....?

    Keep in mind, for our discussion purposes, I have downloaded the trial version of VideoRedo, and I don't plan on purchasing it (or the whole TV Suite), unless I see it's usefulness. I mean, as far as that goes, KMTTG can just decrypt the files for me, and I can then rename them with a diff. program, WHICH is something I want to do also. I have that problem as well. When I get out of sync with a cable series and I stop watching it, I look online at the Episode Guides, and then I'd need to rename the Episodes S2E16 (or something like that) so I can keep track of them.

    I could possibly use my Roxio 9 for this, but have not attempted to yet.

    Again, I am still at STD def video, but I will be purchasing a HD TiVo soon (I already have the cable card).

    I have been using:
    ff_tivo_sd
    ff_h264_med_rate
    hb_tivo_sd
     
  5. Nov 8, 2011 #3505 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Strictly speaking, I am experiencing a different problem this morning:

    The following error has occured:
    Then the next file that went in for processing has been running for 10 hours and 20 minutes:

    I can't figure out why... I killed it.

    But why doesn't it like VRD QSFix? Running it the wrong place?
     
  6. Nov 8, 2011 #3506 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    You're probably running old version of VRD that doesn't support video dimension filtering through COM. You can turn it off in kmttg config->VideoRedo: unselect "Enable VideoRedo QS Fix video dimension filter"

    If you do plan on editing/re-encoding files originating from TiVo series 3 or later VRD qsfix is pretty much a must otherwise you will most likey run into A/V sync issues or worse.
     
  7. Nov 8, 2011 #3507 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    I downloaded your updated version of KMTTG. What is the best way to update the program? Do a new install, OR replace files in place?
     
  8. Nov 8, 2011 #3508 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,738
    8
    Apr 6, 2000
    SF Bay Area
    I would simply replace the file kmttg.jar.
     
  9. Nov 8, 2011 #3509 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Best way is unzip over existing installation and let it overwrite all files. kmttg.jar is the main file but sometimes (as with last release) other files get updated as well.
     
  10. Nov 9, 2011 #3510 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    It (VRD) says I am running version 2.5.6.512, Is that incorrect?
     
  11. Nov 9, 2011 #3511 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Download the most recent beta version here. The full release versions are usually few and far between. A lot of work happens in the beta stages for VRD.
     
  12. Nov 9, 2011 #3512 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I don't totally understand what you are saying here. MPEG4/AVI files should really always be smaller than MPEG2/MPG files. You can get better compression out of H.264/MP4 than MPEG4/AVI files though.

    Are you thinking that he is just remuxing his MPEG2 video into AVI?

    That being said, I do feel that H.264/MP4 is a much better final container for Tivo than MPEG4/AVI since it is natively accepted by Tivo.
     
  13. Nov 9, 2011 #3513 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
  14. Nov 9, 2011 #3514 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Thank you.

    I also downloaded VAP (now that I know what it is). I am learning.

    (Man...just don't get me interested in programming <I used to be pretty good, but that was eons ago>, because I might be able to contribute there also :D, I am getting that urge).

    .........................................

    Ok, here's what I want to learn how to do:

    1. I want to learn how to batch a number of files so they can be done overnight while I am asleep, ie, let the PC do most of what I need while it's doing nothing else.

    2. I want to learn how to rename the files with episode and season # data (something like S1E16). I know I probably have to do this manually, but where? Or more precisely when? I am still confused.

    On #1 point, when I batch a bunch of files, invariably, after 2 files or so (even after I unchecked QSFix [remember, I had the wrong version]), the program gets stuck for like 10 hours+. I don't understand why.
     
  15. Nov 9, 2011 #3515 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Which one is smaller and maintains quality? That's the one I want. I do not plan on sharing these files with anyone.

    Avi.net will take an mpg file only.
    Pazera will take any mpeg and convert to anything.

    So that I can get it right in my head: When we talk about files:
    1. A .Tivo is a wrapper that TIVO puts around a program (File, etc), in this case:
    2. An .mpg file (located in the "mpg Output Directory"? Is that an MPEG-2 file? An MPEG-1? Is that the same as a DVD? Or is a DVD file what comes later? (I Thought MPEG-1 was mostly audio).
    3. In the "mpg cut directory" is the file with-out the commercials - I get that. That's still an MPEG-2?
    4. In the "Encoded Files Output Directory" is an MPEG-4 file. That's a "DVD-File" right? That's smaller than .mpg? Smaller than .tivo?

    What's wrong if I took an .mpg (aka MPEG-2) and converted it to .avi with XVID or even H264/MP4 with Pazera, but KMTTG can do that much......?

    PS. Darn, I am still confused.
     
  16. Nov 9, 2011 #3516 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    In the interest of not spamming the board, (I am looking more and more like a SPAM generator with all my posts, aren't I?)....I'll shut up after this. I am sorry.

    Ok, I've been experimenting for a week now, and thank god, I've only screwed-up a couple of files, none that I really wanted to keep, but I need to get to a process that makes sense. However, I am sure, your-all's process was more time consuming because you had to work out the bugs/kinks out of the program. SO, take my frustrations with a grain of salt and a bow on the violin.

    I'd really, REALLY would like to learn how to rename the files using VAP or whatever tool is best out there.
     
  17. Nov 9, 2011 #3517 of 10413
    danterner

    danterner Not it!

    10,610
    0
    Mar 4, 2005
    Greenacres, FL
  18. Nov 10, 2011 #3518 of 10413
    bwall23

    bwall23 New Member

    73
    0
    Jun 8, 2009
    Late to the game, but want to clarify #1
    mpg output directory is NOT TRANSCODED. It's just a plain ole mpeg2 from the TiVo (.TiVo file) with the encryption/wrapper removed. There is no transcoding/decoding/encoding done. It should be exactly the same transmission you received it as from the CableCO or OTA station, i.e. bit-for-bit what was transmitted, but with the TiVo wrapper (encryption) removed from it.
     
  19. Nov 10, 2011 #3519 of 10413
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Ok, so I almost had this figured out correctly (I pretty much knew this)...
    Forgive me for another dumb question then:

    Why are we trans-coding from MPEG-2 to MPEG-4?
    -- Better Quality? Is that possible?
    -- Smaller File? (ok, I would like that)
    -- Broader support across devices? (now I am starting to understand)
    -- and what do I lose if I was to go MPEG-2 -> AVI/XVID?
     
  20. Nov 10, 2011 #3520 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Herc,

    Been gone a few days and missed some good discussion. First of all, one of the posts awhile back was wrong about mp4, in short we are talking about container vs. encode.

    So if you take a tivo file natively off the tivo, it comes encrypted in mpeg2 format and named .tivo. kmttg then decrypts the file and changes the extension but not the mpeg2 format itself. So now you process it in kmttg. I will go more into that later, but still on container and encodes...apples and oranges per say.

    So you have a file say simpsons.mpg. Mpg is a container, think of it as a shopping bag color of blue. inside the mpg file is a format of mpeg2 -apple lets say. If you then feed the file to avi.net you will encode the file to xvid format which turns your apple into a banana since it processes it and then places it in a different shopping bag color red-the avi container .avi . (just folllow along I am going somewhere)
    Or you can take the same apple and encode it to H.264 and it turns it into a pear. Lets say you choose an mp4 file. Then your apple has been changed to a pear and is a shopping bag of green - mp4. Now you can take the same pear and put it into a yellow bag which is the matroska-container .mkv. The pear is still a pear in each, but in the mp4 bag, you can only have one audio stream and I think maybe one subtitle stream.

    In the mkv format, you can take the same pear and include several audio files, say english and directors commentary and german soundtracks and the closed captions for all of them- all in the yellow bag - mkv, but you cannot fit all that into the green bag-mp4 because it will not hold all the extra stuff.

    Someone incorrectly posted the thing about avi being bigger than mpg and mp4 and all that, which is why you are confused. The extension doesn't always refer to the encoding.

    For example, you can have an .avi container that holds xvid content, or mpeg2 content or several others, it is just the bag the file comes in.

    It is a bit more complicated because some containers only take one kind of audio stream and others can take more (AAC vs AC3 and all that) which is why some set top boxes like the wd box have problems playing shows that arent just right. They are correct for the specs but the box can only play ac3 audio and not aac or whatever. That is a whole other confusing thing.

    So simpsons.tivo is decryted by kmttg and renamed simpsons.mpg

    Simpsons.mpg in mpeg2 format. Could also be called simpsons.vob (dvd) or simpsons.avi.

    Encode to xvid- simpsons.avi
    Encode to h264 - simpsons.mkv or simpsons.mp4 even simpsons.avi but might have some problem, or now FLV-flash video

    The encoding is different than the container, which is why there is a lot of confusion.

    In general to shrink files, the order is mpg mpeg2 (which is already compressed) to xvid -avi to h264 -mkv or mp4 or even flv.

    mpg is generally bigger than xvid is generally bigger than h264.

    The containers have different strengths and weaknesses, you can read more about them on http://en.wikipedia.org/wiki/Comparison_of_container_formats and follow some other stuff there, but hopefully this makes sense. More in next post
     

Share This Page