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. Dec 11, 2008 #401 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    mencoder is pretty bad at introducing sync errors especially if the source mpeg has glitches. If you were to run source mpeg through VideoRedo QuickStream Fix before making the cuts with mencoder I think you may find the problem is resolved. Then again, if you have VideoRedo the cuts would be done using it instead of mencoder with kmttg.
     
  2. Dec 12, 2008 #402 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    Well, it's not a problem with the source mpeg. I ran it through QSF and the same problem occurs - the original file is about 2Gb, while the resulting output file (there are a couple commercials, but it's not _that_ much) is about 50Mb after mencoder has attempted to cut out the commercials. Only the first 5 seconds of video are left in the file, while the audio seems to be intact.
     
  3. Dec 12, 2008 #403 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    If you have VideoRedo you should set it up in kmttg (specify installation path to it) and then kmttg will use VRD to make the cuts instead of mencoder. If VRD isn't able to make cuts properly then I don't think you'll find anything else that will.
     
  4. Dec 13, 2008 #404 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    v0.5g (12/14/2008)
    ------------------
    ENHANCEMENTS:
    * Added "captions" option which uses T2Sami to extract captions from
    .TiVo or .mpg files. This creates a .srt file with same name as the
    video file from which it was derived but using .srt suffix.
    This option is only enabled for Windows machines with path to
    "t2extract.exe" program specified in the configuration.
     
  5. Dec 13, 2008 #405 of 10413
    muerte33

    muerte33 New Member

    87
    0
    Jul 4, 2008
    Moyekj,
    Do you have an encoding profile for creating Divx or Xvid files from MPG(for KMTTG)?
    The H264_High_rate took a 2gb file and made it a 6gb file on my pc.

    Thanks!
     
  6. Dec 13, 2008 #406 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    The "zen" profile (in latest release) is xvid format, though it's low bit rate and low resolution, but you could make a copy of encode\zen.enc file with a different name and adjust the settings. Something like the following modified zen profile will work:
    Code:
    FFMPEG -y -i INPUT -vcodec libxvid -acodec libmp3lame -b 2000k -ac 2 -f avi OUTPUT
    
    If you want higher or lower bitrate adjust the -b setting.

    You could also try the h256_med_rate (and perhaps adjust it's bitrate setting for your needs). Note that I designed this scheme to make it easy to copy a "template" scheme and adjust it for your needs.
     
  7. Dec 14, 2008 #407 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    I'd really rather not use VideoRedo is something like mencoder can/should work instead.

    It turns out that with some tweaking of the options sent to mencoder, I can get it to pass, successfully, the same files that were getting hacked into uselessness with the command-line options kmttg currently uses for commercial cutting.

    Any chance the command could be modified/configurable rather than hardcoded as it is today?
     
  8. Dec 14, 2008 #408 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    You can always edit kmttg.pl and adjust it as needed (line 3534 in current version).
     
  9. Dec 14, 2008 #409 of 10413
    hoyty

    hoyty Member

    118
    0
    Jan 22, 2003
    Sammamish, WA
    Can you share your command-line changes? I just tried out KMTTG for the first time tonight and I am getting what I think is a similar error.
    Code:
    >> CUTTING COMMERCIALS IN E:\TiVo\My Name Is Earl - Orphan Earl_Thu_Dec_11.mpg ...
    "E:\Temp\KMTTG\kmttg\mencoder\mencoder.exe" "E:\TiVo\My Name Is Earl - Orphan Earl_Thu_Dec_11.mpg" -edl "E:\TiVo\My Name Is Earl - Orphan Earl_Thu_Dec_11.edl" -oac copy -ovc copy -of mpeg -o "E:\Downloaded TV\My Name Is Earl - Orphan Earl_Thu_Dec_11_cut.mpg"
    E:\Downloaded TV\My Name Is Earl - Orphan Earl_Thu_Dec_11_cut.mpg size=56.30 MB elapsed=00:04:51 (1.62 Mbps)
    *ERROR* comcut failed (exit code: 5) - check above E:\Temp\KMTTG\kmttg\mencoder\mencoder.exe command
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    Limiting audio preload to 0.4s.
    Increasing audio density to 4.
    
    
    ERROR: scr 1.243, dts 0.000, pts 0.300
    I tried it both on ER and Earl, which are NBC so that may be the commonality. I am testing a CBS show now to see what happens.

    I had a few other questions, as I said I am new to KMTTG and I couldn't find these mentioned in the thread or docs.

    1. Is there a reason the newer versions of comskip or mplayer/mencoder aren't being used? Just curious on this one if the newer ones might be more efficient or robust.

    2. Can the extracted metadata be used for anything other than pyTiVo back to TiVo? I am using the files on Vista Media Center and was trying to see if I could get the metadata usable there.

    Thanks for a great tool.

    Brian
     
  10. Dec 15, 2008 #410 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    1. No reason - I just don't update the windows util zip file too often unless a real need comes up. Note that kmttg configuration allows you to give path to wherever you install newer versions so nothing stopping you from doing so. I should add that I never use comskip/comcut since I prefer to edit out commercials manually and can do it pretty quickly and much more accurately that way. I'm no fan of mencoder as most of the time it's caused me nothing but headaches. If there's a better free tool for doing cuts I'm all ears.
    2. Don't think there's any other tool other than pyTivo that can use the metadata file.
     
  11. Dec 15, 2008 #411 of 10413
    hoyty

    hoyty Member

    118
    0
    Jan 22, 2003
    Sammamish, WA
    What do you use to cut commercials and do you still automate the re-encoding?
     
  12. Dec 15, 2008 #412 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    Though I have VideoRedo I mostly use Womble Mpeg Video Wizard as I can do the cuts quicker with that software (but I do use VRD Quickstream fix option in kmttg before editing). I don't re-encode often but when I do I just go into FILES mode in kmttg to select files to re-encode, so it's not automated.
     
  13. Dec 15, 2008 #413 of 10413
    wtherrell

    wtherrell Member

    467
    1
    Dec 23, 2004
    Huntersville...
    I want to prepare other videos files in a compressed configuration to convert to be shown on Tivo. I have used pyTivo with some sucess but the resulting files are very large. Also it does it on the fly. I would like to convert, compress, and then move the files to the Tivo for downloading onto any of my 3 Tivos. Can this program do that? Or what do I need?
     
  14. Dec 15, 2008 #414 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    No, it's not suited to do the reverse (convert from some other encoding to mpeg2). All you really need for that is to use ffmpeg which incidentally is what pyTivo is using under the hood. ffmpeg is also used by kmttg to convert from mpeg2 to other formats, but it's also perfectly capable of converting other formats to mpeg2. However, note that it's a command line base utility so there is no GUI for it. Most likely there are GUIs built around it (for example there's ffmpegX for Macs) if you are not comfortable with batch scripting.
    There are many command line options to control exactly how encoding is done (including the video & audio bit rates, etc) with ffmpeg so it requires some research/experimentation to get something that works well, but it's time well spent.
     
  15. Dec 16, 2008 #415 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    1) Let me say that as a new user of this software, I am in love with it so far. I really appreciate your work on it.

    2) Would it be of any use (or maybe it's been done) to have a thread where people post these various encoding profiles and report how well it works, for what function, etc?

    I'm looking to download OTA HD shows, cut the commercials and push it back, keeping the codec to as near-original as possible... Is there a built-in profile I should pick, or does someone else have an option for me?
     
  16. Dec 16, 2008 #416 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    That's easy. After you are done cutting out commercials you're done! You can then feed it back to your Series 3 Tivos as is without further processing (no re-encoding needed as the file will already be in mpeg2 program stream format which is what the Tivo wants). I would recommend enabling the metadata option then use pyTivo to transfer it back to your Tivo (that way you can preserve show details).
     
  17. Dec 16, 2008 #417 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    Couple of things real quick.

    1. Is there anyway to add the seriesId to the meta file?
    2. It seems that it is having problems with shows that have an & in the title. Law & Order turns into Law & Order
     
  18. Dec 17, 2008 #418 of 10413
    muerte33

    muerte33 New Member

    87
    0
    Jul 4, 2008
    OK, is this the ffmpeg parameter to go divx?

    -vcodec mpeg4 -vtag DIVX

    ????
    Some players do not support Xvid, only Divx
    Thanks!
     
  19. Dec 17, 2008 #419 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    That looks right to me.
     
  20. Dec 17, 2008 #420 of 10413
    moyekj

    moyekj Well-Known Member

    11,143
    32
    Jan 23, 2006
    Mission...
    I will need to take some time to look into these. I assume for issue 2 you are talking about the title that goes into the metadata file right?
     

Share This Page